Go Back   Forums > Community Chatterbox > Tech Corner > Programming
Memberlist Forum Rules Today's Posts
Search Forums:
Click here to use Advanced Search

Reply
 
Thread Tools Display Modes
Old 19-02-2005, 10:32 PM   #1
Ioncannon
Abandonia Homie

 
Join Date: Mar 2004
Location: Mississauga, Canada
Posts: 558
Send a message via MSN to Ioncannon
Default

Yay I made my first program (besides hello world or exercieses) in c++. Its a multiplication program. Enter two numbers and it tells you the answer. Nothing special but I am proud of it (since it is my first program) . Here is a link if you want to try the program:

angelfire.com/ak5/opc/multi.zip
(copy and paste)

I will add onto it as I know my knowledge grows.
Ioncannon is offline                         Send a private message to Ioncannon
Reply With Quote
Old 19-02-2005, 10:35 PM   #2
Havell
Home Sweet Abandonia

 
Join Date: Jun 2004
Location: Norwich, England
Posts: 1,325
Default

Very interesting! k: Any chance of you releasing the source code? It would be quite interesting to see how much code a program like that needs.
Havell is offline                         Send a private message to Havell
Reply With Quote
Old 19-02-2005, 11:15 PM   #3
Braindead
Abandonia Homie

 
Join Date: Jun 2004
Location: ,
Posts: 663
Send a message via ICQ to Braindead Send a message via MSN to Braindead
Default

cool, how much does it cost to register this program

Braindead is offline                         Send a private message to Braindead
Reply With Quote
Old 20-02-2005, 12:05 AM   #4
Ioncannon
Abandonia Homie

 
Join Date: Mar 2004
Location: Mississauga, Canada
Posts: 558
Send a message via MSN to Ioncannon
Default

50 cents
Ioncannon is offline                         Send a private message to Ioncannon
Reply With Quote
Old 20-02-2005, 01:03 AM   #5
dragonLancer
Super Freak

 
Join Date: Feb 2005
Location: ,
Posts: 188
Send a message via MSN to dragonLancer
Default

my newest program is a extreamly short text game where you input name # and smaller # to get a short storie! nothing much but hey like he said i pround of myself LOL btw are you using a book, I am its called "beginning C++ game Programming" :guns:



------------DragonLancer
__________________
----------------------------------------------------------

If anyone wants me I'll be in the Angry Dome!!!

----------------------------------------------------------
dragonLancer is offline                         Send a private message to dragonLancer
Reply With Quote
Old 20-02-2005, 01:58 AM   #6
Ioncannon
Abandonia Homie

 
Join Date: Mar 2004
Location: Mississauga, Canada
Posts: 558
Send a message via MSN to Ioncannon
Default

cool. I am using Jesse Liberty's: Teach yourself C++ in 21 days. Also my dad helps me a bit (he is a professional). BTW this is the code is used:
Code:
#include <iostream>
#include <conio.h>
using namespace std;

int multiply (int a, int b)
{	
	return (a * b);
}
int main()
{
	int a = 0;
	int b = 0;
	int c = 0;


 *cout << "===================================================\n";
	cout << "|^_^Welcome to Filip's Multiplication Program!!^_^|\n";
	cout << "===================================================\n";
	cout << "\nPlease enter a number to be multiplied\n";
	cout << "Number to be multiplied is ==> ";
	cin >> a;
	cout << "\nPlease enter a number to multiply it by\n";
	cout << "Number to multiply by is ==> ";
	cin >> b;
	c = multiply(a, b);
	cout << "\nThe answer is ==> " << c << "\n\n";
	cout << "Press any key to exit the program.\n";
	_getch();
	return 0;
}
spacing is screwed up do to copy/paste
Ioncannon is offline                         Send a private message to Ioncannon
Reply With Quote
Old 20-02-2005, 02:01 AM   #7
Ioncannon
Abandonia Homie

 
Join Date: Mar 2004
Location: Mississauga, Canada
Posts: 558
Send a message via MSN to Ioncannon
Default

oh and you know what the smallest program possible?

Code:
int main() 
{
}
Ioncannon is offline                         Send a private message to Ioncannon
Reply With Quote
Old 20-02-2005, 05:22 AM   #8
Kon-Tiki
[BANNED]

 
Join Date: Sep 2004
Location: Dentergem, Belgium
Posts: 1,811
Default

Cool work k: Next step: making a small textbased RPG in which you create a character, then battle random monsters (list of five monsters'll do the trick )
Kon-Tiki is offline                         Send a private message to Kon-Tiki
Reply With Quote
Old 20-02-2005, 05:26 AM   #9
taikara
Abandonia Homie

 
Join Date: Jan 2005
Location: Shella, Kenya
Posts: 710
Default

My favorite program I did while learning was an artificial psychologist, using switches.

whee.

I asked it questions for hours.

Like:

Me: Am I crazy?
Dr: Yes, that does sound like an interesting theory.

taikara is offline                         Send a private message to taikara
Reply With Quote
Old 20-02-2005, 05:34 AM   #10
Kon-Tiki
[BANNED]

 
Join Date: Sep 2004
Location: Dentergem, Belgium
Posts: 1,811
Default

Mine was a toilet simulator. It first asked whether you're male or female, then what you'd do. If you'd poo while standing, you'd get a message 'bout it dropping down into your pants. If you're a guy and you're peeing while not moving the seat up, you'd get a message 'bout that. As a female, you'd get some message 'bout it running down your legs. Biggest difference was that males could pee while standing and females could menstruate. Sick little thing, and nobody wants to give it back for a Windows remake with pics. Still was a good coding exercise; a good laugh and is quite notorious under my friends.
Kon-Tiki is offline                         Send a private message to Kon-Tiki
Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Program for download sh-tfish Old Suggestions 19 04-05-2009 09:19 AM
Dos Program pup Troubleshooting 4 30-06-2006 12:36 PM
An Old Dos Program JimmyJ Trash Can 12 21-06-2006 10:49 AM
Document Program Help nimicitor Tech Corner 3 20-10-2005 09:51 PM
Looking For A Good P2p Program MrBackAlleySka Tech Corner 17 07-09-2005 07:49 PM


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump
 


The current time is 03:55 PM (GMT)

 
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.