ComputerProgramming3.The Nuts and Bolts of C++Learningthe C++language3.TheNutsandBoltsofC++
3. The Nuts and Bolts of C++ Computer Programming Learning the C++ language 3. The Nuts and Bolts of C++
ComputerProgramming3.The Nuts and Bolts of C++Whatyouhave learned last week? Built (compiling and linking) a simple C++program under the Visual Studio environment.Source code,object code,and executable codeEncounteredsyntax errorsCompile-time errorsareuseful.Run-timeerrorsDebuggingprocess-Debugging all kinds of errors
3. The Nuts and Bolts of C++ Computer Programming What you have learned last week? ⚫ Built (compiling and linking) a simple C++ program under the Visual Studio environment. − Source code, object code, and executable code ⚫ Encountered syntax errors. − Compile-time errors are useful. − Run-time errors ⚫ Debugging process − Debugging all kinds of errors
ComputerProgramming3.The Nuts and Bolts of C++What you have learned last week?Executed the program in the“console mode.Manycommand-line applications areknownasconsoleapplicationsInstalledVisualStudioatyourownPCReading
3. The Nuts and Bolts of C++ Computer Programming What you have learned last week? ⚫ Executed the program in the “console mode.” − Many command-line applications are known as console applications. ⚫ Installed Visual Studio at your own PC. ⚫ Reading
ComputerProgramming3. The Nuts and Bolts of C++3.1RevisitHelloWorld
3. The Nuts and Bolts of C++ Computer Programming 3.1 Revisit HelloWorld
ComputerProgramming3.The Nuts and Bolts of C++Asimpleprogram#include <iostream>int main()std::cout << "Hello World!"<< std::endl;return O;
3. The Nuts and Bolts of C++ Computer Programming A simple program #include <iostream> int main() { std::cout << "Hello World!" << std::endl; return 0; }