| View previous topic :: View next topic |
| Author |
Message |
manc Grandmaster Cheater
Reputation: 1
Joined: 16 Jun 2006 Posts: 551
|
Posted: Fri Jul 04, 2008 8:07 pm Post subject: [C++] Suggestions for small programs |
|
|
I finished learning the basic syntax of the C++ language and I would like some recommendations as to what kinds of little programs I should try to make first. It shouldn't be anything overly complicated, but not just a "Hello World" type thing either.
_________________
|
|
| Back to top |
|
 |
MegaForum Grandmaster Cheater
Reputation: 0
Joined: 20 Aug 2007 Posts: 558
|
Posted: Fri Jul 04, 2008 8:12 pm Post subject: |
|
|
Try making a simple game Are you learning visual C++ or just C++?
I'm learning visuall and i would practice with GUI. Try making a simple game =o. Tic-tac toe and make the computer apponinent pick random spots :p
|
|
| Back to top |
|
 |
manc Grandmaster Cheater
Reputation: 1
Joined: 16 Jun 2006 Posts: 551
|
Posted: Fri Jul 04, 2008 8:15 pm Post subject: |
|
|
Just C++.
_________________
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8588 Location: 127.0.0.1
|
Posted: Fri Jul 04, 2008 8:17 pm Post subject: |
|
|
While I can't really give you a program suggestion as I have hard times thinking of things to make myself, I would suggest that if you want to do something to test your skills, make something that uses a little bit of everything you have learned so far. Try to use everything you have learned to make sure you are fully understanding things and such.
_________________
- Retired. |
|
| Back to top |
|
 |
MegaForum Grandmaster Cheater
Reputation: 0
Joined: 20 Aug 2007 Posts: 558
|
Posted: Fri Jul 04, 2008 8:17 pm Post subject: |
|
|
Win32 app?
|
|
| Back to top |
|
 |
HalfPrime Grandmaster Cheater
Reputation: 0
Joined: 12 Mar 2008 Posts: 532 Location: Right there...On your monitor
|
Posted: Fri Jul 04, 2008 8:20 pm Post subject: |
|
|
Guess the number is usually pretty popular. Maybe a reflex tester, too.
_________________
|
|
| Back to top |
|
 |
manc Grandmaster Cheater
Reputation: 1
Joined: 16 Jun 2006 Posts: 551
|
Posted: Fri Jul 04, 2008 8:24 pm Post subject: |
|
|
Hmm I'd like to make something that "talks" to you. Like, "How is your day going?" and then based on the response, say something back ( to practice if,else if, else loops). However, I'd have to limit the responses down to 3 or so choices like 1. OK 2. BAD 3. GOOD . Would this be a good idea?
| HalfPrime wrote: | | Guess the number is usually pretty popular. Maybe a reflex tester, too. |
I like those, I'll definitely try them -Thanks.
_________________
|
|
| Back to top |
|
 |
nwongfeiying Grandmaster Cheater
Reputation: 2
Joined: 25 Jun 2007 Posts: 695
|
Posted: Sat Jul 05, 2008 12:55 am Post subject: |
|
|
It sounds like you're off to a good start on making your first console application.
And you said that you wanted to make the program to test your ability to use IF's. I would say that the example that you described with the "1. OK, 2. Bad, etc" would work better with case switches rather than IF's.
How do you attempt to attempt? Your signature confuses me.
|
|
| Back to top |
|
 |
manc Grandmaster Cheater
Reputation: 1
Joined: 16 Jun 2006 Posts: 551
|
Posted: Sat Jul 05, 2008 4:49 am Post subject: |
|
|
| nwongfeiying wrote: | It sounds like you're off to a good start on making your first console application.
And you said that you wanted to make the program to test your ability to use IF's. I would say that the example that you described with the "1. OK, 2. Bad, etc" would work better with case switches rather than IF's.
How do you attempt to attempt? Your signature confuses me. |
I'll look into case switches, thanks. And yeah, I dont know about my sig either, dont worry about it lol.
_________________
|
|
| Back to top |
|
 |
shuyinx2 Advanced Cheater
Reputation: 0
Joined: 25 Jun 2006 Posts: 66
|
Posted: Sat Jul 05, 2008 6:18 am Post subject: |
|
|
er. dude where u lean C++ at ? school or website?
if u don mind tell me where to learn .
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8588 Location: 127.0.0.1
|
Posted: Sat Jul 05, 2008 8:43 am Post subject: |
|
|
| shuyinx2 wrote: | er. dude where u lean C++ at ? school or website?
if u don mind tell me where to learn . |
Check the stickies, there are a ton of links in them for tutorials and such for learning.
_________________
- Retired. |
|
| Back to top |
|
 |
lul30 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 197
|
Posted: Sat Jul 05, 2008 9:18 am Post subject: |
|
|
Sounds neet a program that interacts with you.
Like Mr.nwongfeiying said there 2 ways of choosing , the if else then (if statement) and the case and i find working with case the best on C# but if statement on C++. Sort out for yourself what you want to use and whats the easyest for you.
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Sat Jul 05, 2008 9:19 am Post subject: |
|
|
Convert numbers (0~999) to actual words, if the input is 534 the output would be Five hundred thirty four.
Try doing it in the shortest way you can.
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Sat Jul 05, 2008 11:26 am Post subject: |
|
|
Do something that you have no idea how to do. Then brainstorm how it would work and figure out the API to do it...As an intro to win32 i usually say go with a process lister. The api is Process32First and Process32Next. Use these in a loop and output the process to the console / a listbox if you do win32 GUI yet
_________________
|
|
| Back to top |
|
 |
manc Grandmaster Cheater
Reputation: 1
Joined: 16 Jun 2006 Posts: 551
|
Posted: Sat Jul 05, 2008 3:00 pm Post subject: |
|
|
Thanks everyone for the suggestions, I'm loving them. Here is exactly what Ive learned so far from the course at www.cplusplus.com:
So yeah, you can base any suggestions off that.
_________________
|
|
| Back to top |
|
 |
|