Programming course GCC C-programming basic.

1) GCC-compiler (MinGW-w64) install to PC-computer
- MingGW-w64 Download
- Wait until counter is back to zero and save file to your local folder in example Desktop
- Execute file mingw-w64-install.exe
- Press [Next] button ja default settings
- Download is ready when you can press [Close]-button (close program)

2) Open CMD-prompt
- From [MinGW-w64 Project]-folder select: [Run Terminal]



3) Example 1: Hello World
- Copy file to c:\Temp-folder (If folder is missing, please create c:\temp folder by file explorer)
- Execute command in CMD-propt: cd / and command: cd temp
- In folder C:\Temp execute command: gcc esim1.c
- (if there is errors in program code now there is lot of text) normally no extra lines
- Execute compiled program with command: a.exe (default name for program)

4) Example 2: (Hello World in Finnish) Tervehdys Maailma
- Copy file to c:\Temp-folder
- In folder C:\Temp execute command: gcc esim2.c -o esim2.exe
- Execute compiled program with command: esim2.exe

5) Esimerkki 3: Calculation example
- Copy file to c:\Temp-folder
- In folder C:\Temp execute command: gcc esim3.c -o esim3.exe
- Execute compiled program with command: esim3.exe

6) Esimerkki 4: Calculation example with function call
- Copy file to c:\Temp-folder
- In folder C:\Temp execute command: gcc esim4.c -o esim4.exe
- Execute compiled program with command: esim4.exe

7) Happy programming!