Follow these steps very carefully
Step1: Open Your favourite web browser and type http://tdm-gcc.tdragon.net/download .
Step2: Download tdm-gcc-5.1.0-3.exe for windows 32-bit operating system. or download
tdm64-gcc-5.1.0-2.exe for windows 64-bit operating system.
Stemp3: Install the downloaded program.
Step4:Write your C or C++ program in any text editor and save it with extension .c or .cpp
Step5: Open command prompt and set the path where you save your C or C++ program using cd command.
Step6: type gcc -o filename filename.c
ex. gcc -o x x.c here x is the filename and press enter.
Step7:If your program have no any error then an .exe file would be generate and run the program with following command.
type filename
ex. x here x is the file name.
Wao...
ReplyDeletethanx bro
DeleteThis comment has been removed by the author.
ReplyDelete