newb... I guess.
Moderator: Coders of Rage
-
- Chaos Rift Newbie
- Posts: 34
- Joined: Sun Aug 31, 2008 8:44 pm
newb... I guess.
Okay, like I said in the other thread... I'm new to C ( as in about a week or two new) and was wondering what would be a couple of good practice projects to work one.... anyone?
- cypher1554R
- Chaos Rift Demigod
- Posts: 1124
- Joined: Sun Jun 22, 2008 5:06 pm
-
- Chaos Rift Newbie
- Posts: 34
- Joined: Sun Aug 31, 2008 8:44 pm
- JS Lemming
- Game Developer
- Posts: 2383
- Joined: Fri May 21, 2004 4:09 pm
- Location: C:\CON\CON
Here's some my teacher assigns the class:
* Fibonacci sequence using recursion
* Factorial using recursion
* base 10 to binary converter
* base 10 to hexadecimal converter
* Fibonacci sequence using loops
* Tic-tac-toe
* Hangman
* Fish simulator.
* English->piglatin converter.
If you give me a certain field you're trying to hit, i could make up and 'assign' ya an application using said field.
Example, ask me for an app requiring inheritance, I'd tell ya the fish one. Too lazy to type more atm, will upon request. Also, look online, shitloads. Are you more into games, or computer science type applications?
* Fibonacci sequence using recursion
* Factorial using recursion
* base 10 to binary converter
* base 10 to hexadecimal converter
* Fibonacci sequence using loops
* Tic-tac-toe
* Hangman
* Fish simulator.
Click here to see the hidden message (It might contain spoilers)
* English->piglatin converter.
If you give me a certain field you're trying to hit, i could make up and 'assign' ya an application using said field.
Example, ask me for an app requiring inheritance, I'd tell ya the fish one. Too lazy to type more atm, will upon request. Also, look online, shitloads. Are you more into games, or computer science type applications?
<qpHalcy0n> decided to paint the office, now i'm high and my hands hurt
-
- Chaos Rift Newbie
- Posts: 34
- Joined: Sun Aug 31, 2008 8:44 pm
Aight, try this:
Make me a number guessing game. Have the computer generate a random number between 1 and 100. Then have it ask you for your guess. If you guess too high, make it tell you "guessed too high." If you guessed too low, make it tell you "guessed too low." If you guess the number correctly, make it say "YOU WIN!". Make it count the number of times you guess. If you do it incorrectly more than 5 times, make it say "YOU LOSE!!!"
Make me a number guessing game. Have the computer generate a random number between 1 and 100. Then have it ask you for your guess. If you guess too high, make it tell you "guessed too high." If you guessed too low, make it tell you "guessed too low." If you guess the number correctly, make it say "YOU WIN!". Make it count the number of times you guess. If you do it incorrectly more than 5 times, make it say "YOU LOSE!!!"
<qpHalcy0n> decided to paint the office, now i'm high and my hands hurt
-
- Chaos Rift Newbie
- Posts: 34
- Joined: Sun Aug 31, 2008 8:44 pm
Okay sounds easy enough. Only difficulty I think I may have is the limit on the guesses. Want me to post the final code here when I get it working or what? also...... could use a bit other help in the other thread I started...... wanted to try to keep that as a seperate topic since it's...... its own subject.