11.07.2015 Views

tYSR20

tYSR20

tYSR20

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 1Writing Your First C++ ProgramIn This Chapter Finding out about C++ Installing Dev-CPP from the accompanying CD-ROM Creating your first C++ program Executing your programOkay, so here we are: No one here but just you and me. Nothing left to dobut get started. Might as well lay out a few fundamental concepts.A computer is an amazingly fast but incredibly stupid machine. A computercan do anything you tell it (within reason), but it does exactly what it’s told —nothing more and nothing less.Perhaps unfortunately for us, computers don’t understand any reasonablehuman language — they don’t speak English either. Okay, I know what you’regoing to say: “I’ve seen computers that could understand English.” What youreally saw was a computer executing a program that could meaningfully understandEnglish. (I’m still a little unclear on this computer-understanding-languageconcept, but then I don’t know that my son understands my advice, either, soI’ll let it slide.)Computers understand a language variously known as computer language ormachine language. It’s possible but extremely difficult for humans to speakmachine language. Therefore, computers and humans have agreed to sort ofmeet in the middle, using intermediate languages such as C++. Humans canspeak C++ (sort of), and C++ is converted into machine language for the computerto understand.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!