I just finished my first C++ program; it is the Hello World program with a twist. Is it just me or is C++ better than JAVA? It could very well be the difference in the author of the books. The author of the JAVA programming book, Joyce Farrell, is boring me to tears - if I didn't have to use it for a class I would regret the purchase of this text. She is making everything overly complicated when it really doesn't have to be. Some of the terms I already know, and she can make me confused about those as I read. The author of my C++ book, Michael Dawson, keeps the text pretty upbeat and engaging. It makes me actually want to learn more. Too bad, my class doesn't make one of his books a requirement.
Anyways, I am using the free bloodshed software, DEV C++ to write, save, compile and run the programs that I will be writing. You can download it here: http://www.bloodshed.net/devcpp.html
I opened a blank source file and input the following and saved it as a .cpp file:
//Game Over
//My first C++ program
#include<iostream>
int main( )
{
std::cout << "Game Over!" << std:endl;
return o;
}
I complied it and there were no errors detected. Then I went on to make a batch file so that the program let me have enough time to actually view it.
![]() |
| Hello World Program W/ a twist |
![]() |
| C++ Source Code for the Hello World Program |


No comments:
Post a Comment