-
7
pages
-
English
-
Documents
Description
| Main |< Build, Run & Debug C Program 2 | C main() and printf() functions 2 >| Site Index | Download | C LAB WORKSHEET 4C main() and printf() functions 1 Items in this page: 1. Be familiar with the compiler – more on project options.2. main() function – the need of main() as C/C++ execution point.3. Tutorial references are: C/C++ intro & brief history, C/C++ data type 1, C/C++ data type 2, C/C++ data type 3 and C/C++ statement, expression & operator 1, C/C++ statement, expression & operator 2 and C/C++ statement, expression & operator 2. More printf() and its family examples can be found in C formatted input/output. A complete story of main() is in C and C++ main() story. If you have gone through Module 1 and 2, the main() function is needed for the execution point of C/C++ programs. That means compiler start the program execution at main() function. A complete story about the main() function is given in Module Y. In your C/C++ program also, there are other functions that you already familiar with such as printf(). You can see then, C/C++ programs just consist of functions with main() as the execution point.1. Create a new empty Win32 console application project named mymain and add a C++ source file named mymainsrc as done in previous lab practice. Make sure you set this project to be compiled as C code. Type the following codes.#include void main(void){ }2. Then add more codes. You can omit the comments.#include ...
-
Publié par
-
Langue
English