CSC201 topic(basic_structure)
CSC201 topic(basic_structure)
Basic Structure of
Programming Languages
https://netbeans.org/kb/docs/cnd/quickstart.html
Structure of a program
The best way to learn a programming
language is by writing programs.
Hello World program to illustrate all
the fundamental components C++
which simply prints "Hello World" to
your computer screen.
Structure of a program
Source: http://www.cplusplus.com/doc/tutorial/program_structure/
C++ code for this program. The result when the program is
executed by a computer.
a line that defines a function (in this case, the main function).
all in a single line, and this would have had exactly the same
meaning as the preceding code.