- Download the software MinGW.
- Run the MinGw installer , then this window will appear
- Select the Use pre-packaged repository catalogs , then next , it will take take time & require a internet connections to downloads files.
- Now set the environment variable Right Click on Computer -> Properties -> Advance System Settings -> Environment Variables -> System Variable -> edit the Path variable to C:\MinGW\bin; -> ok
- Now download & install the gcc & g++ packages if not install in previous download
mingw-get install gcc (for C)
after that
mingw-get install g++ (for C++)
7. Congrats gcc & g++ is now insatlled . Use any editor to write the programs .
8. To compile the program open cmd & type :
for C : gcc filename.c
for C++: g++ filename.cpp
9 . After compiling it will make a "a.exe" file in the current dir. So simply type
c:>a.exe it shows the output.
10. You can make the output file at the time of compiling
for C: gcc filename.c -o filename.exe
for C++: g++ filename.cpp -o filename.exe
Please comment
nice work dude:)
ReplyDeletegrt
ReplyDelete