|
-
February 18th, 2012, 05:27 PM
#11
Re: C++/C conversion to just C
 Originally Posted by chucker
Below is a program that generates random Addition for Subtraction problems depending on the user's choice. The user is prompted to input an answer and then it keeps your score. If you want to quit you just press zero. This is pretty much my first C program ever, I read the first eight chaps of my C/c++ book
What book teaches C/C++?
C and C++ are two separate languages -- either the book teaches C++, or the book teaches C. I know of no book that teaches both languages, and it would be foolhardy (IMO) to have such a book due to the differences in the languages, what is considered legal/illegal syntax, programming paradigms, etc. Such a book, if it exists, would only confuse the programmer trying to learn one language over the other.
Second, since the assignment sounds straightforward, pretend your C++ program doesn't exist. Write it from scratch using 'C'.
Regards,
Paul McKenzie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|