- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
4 Posted Topics
[QUOTE=Ketsuekiame;1223224]You could make it OO I guess? Something that simple doesn't really need it though but if you want to do it as an exercise, try creating classes for the types of rabbits.[/QUOTE] I totally agree with that. C++ take its power from its OO paradigm. Other than that, it's …
You can also use modular arithmetic and division for that purpose after getting the input as integer. I mean, think about first iteration you can take x%10 which will give you last number the user entered, after that if you divide the number by 10 then the last number will …
Hey, I'm sure that many people here will be slacker about opening your attached source code. Instead, you should try to embed you code into your message :) -hakan
Hey, You may also consider using Standard I/O of C. It's just simple that; with fopen() open a file, with fprintf() write to the file and with fclose() close the file when you're done. Check out the link: [url]http://www.cppreference.com/wiki/c/io/start[/url] -hakan
The End.
hnizamoglu