Steps:
1.visit google
2. search code blocks
3. select downloads
4.select download the binary release
5.Select OS windows
6.Select codeblocks-mingw-setup.exe
7.click on source forge.net for download
8.after download open setup file.
9.click
next
I agree
next,
next or change path,
no(bcz we don't want to run right now)
next,
finish
10.go to downloaded path
C:\Program Files (x86)\CodeBlocks\MinGW\bin
copy this path in which all c and cpp files are there.
11.Right click on my computer
Properties
advanace system settings
select environment variable
select path
click on edit button
leave content as it is type semicolon and paste copied path.
i.e.
C:\Program Files (x86)\CodeBlocks\MinGW\bin
12.click ok three times.
13.Open command prompt
A. For C :
type start notepad hello.cpp
hello world
B. For CPP :
type start notepad hello.cpp
hello world
1.visit google
2. search code blocks
3. select downloads
4.select download the binary release
5.Select OS windows
6.Select codeblocks-mingw-setup.exe
7.click on source forge.net for download
8.after download open setup file.
9.click
next
I agree
next,
next or change path,
no(bcz we don't want to run right now)
next,
finish
10.go to downloaded path
C:\Program Files (x86)\CodeBlocks\MinGW\bin
copy this path in which all c and cpp files are there.
11.Right click on my computer
Properties
advanace system settings
select environment variable
select path
click on edit button
leave content as it is type semicolon and paste copied path.
i.e.
C:\Program Files (x86)\CodeBlocks\MinGW\bin
12.click ok three times.
13.Open command prompt
A. For C :
type start notepad hello.cpp
- #include<stdio.h>
- void main()
- {
- printf("hello world");
- }
- gcc -o test hello.cpp
- test
hello world
B. For CPP :
type start notepad hello.cpp
- #include<iostream>
- using namespace std;
- int main()
- {
- cout<<"hello world";
- return 0;
- }
- g++ -o test hello.cpp
- test
hello world
Comments
Post a Comment