4.7 Coding


4.7 Coding

After a project has been created, it is then ready to be developed, run, and tested. The project is developed by coding-the actual process of writing instructions in C++. While these instructions are being written, nothing is being run. That occurs when the developer presses the Execute or Run button. The details of coding in C++ are the subject matter for later chapters, but a sample C++ program is provided below. When typed into the editor and run, the result will appear as shown in Figure 4.10.

      #include <iostream>      int main()      {          char key = 0;          std::cout << "hello world\n";          std::cin >> key;          return 0;      } 

image from book
Figure 4.10




Introduction to Game Programming with C++
Introduction to Game Programming with C++ (Wordware Game Developers Library)
ISBN: 1598220322
EAN: 2147483647
Year: 2007
Pages: 225
Authors: Alan Thorn

Similar book on Amazon
Beginning C++ Through Game Programming
Beginning C++ Through Game Programming
Beginning Game Programming
Beginning Game Programming
The Ultimate Guide to Video Game Writing and Design
The Ultimate Guide to Video Game Writing and Design

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net