C language is one of the best programming language to
start your coding experience, but it’s scary to use Turbo C/C++ on Window 7
onwards, learn how to start coding compiling C/C++ program in Windows 7 or
Windows 8 without Turbo C++.
Hi everyone,
welcome back! Today I am about to help you how to get started with your C/C++
programming in Windows 7/Windows 8 operating system. Windows 7 doesn’t support
turbo C++ compiler as XP do, sometime when it do, it’s painful how to write
code in small Windowed interface where barely anything visible on normal
screen.
How to Code and Compile C/C++ program in Windows 7 or Windows 8
All you need to
start coding is to download Codeblock,
free IDE for GCC Compiler for Windows XP/vista/7 and Windows 8, along with
this; you can use this on Various Linux distribution as well as on Apple’s Mac
OS.
Visit
Codebloack.com and select Download tab and click on Download binary release,
choose operating system as Windows and select the latest version available for
download.
Once you downloaded
and installed on your system, run the Codeblock
on it.
Start with C/C++ project in Windows 7/Windows 8 with codeblock
Once you’ve
installed, and Run, on the very first screen, you need to select the compiler
select GNU/GCC as default compiler. Now select the New Project.
On the next Screen,
select the console application and click next.
Select the language
you want, C/C++ and click next.
Selecting the Compiler GNU/GCC
From the next
screen let the compiler selected GNU/GCC and click next,
Name your project
and Select the location to save it,
Once you click
next, and Finish it.
There you’ll notice
a left side navigation bar having your project name, ‘Hello_world’ in my
example image,
Click on source and
there you’ll find a file main, double click on it and on right, you’ll see a
sample C/C++ program for hello world.
On the toolbar, you
may find three options,
1. Built: For
compiling and making the executing file.
2. Run: Run the
existing build C/C++ program.
3. Build and Run:
This is time saver, on new coded program, click build and run and there you go.
So once you have
sample program, select the Build and run and you can notice a command window
showing the output of your Hello world program.
Similarly you can
make the changes or create new file, write source code, built it and run,
that’s all.
Bonus for Intelligent Computing Reader
Get Free C++
Tutorial video on TheNewBoston.org
Share this post
with your friends and let them know about this amazing and free method to get
started with. I appreciate your time, comment below and let us know if anything
in your mind.
Nice i think i found something from this post.
ReplyDeleteyeah, you can check more post related to Programming and Latest post too.
ReplyDeleteThank you so much! I almost killed myself trying to figure out ways on how to run C++ on Windows 7... Hehehe.... Hope to see more good reads on your site!
ReplyDelete:-)
heheh :) its my pleasure to share this information with you. you can ofcorse visit more content on our site and stay in touch on Intelligent Computing's facebook page
ReplyDeleteTurbo C is the main reason of all these.
ReplyDeletewww.spectra.com
Turbo C is not the only answer, get to know GNU and lots more C/C++ compiler on Google
ReplyDeletehey.....will this work on windows 8 too?????/
ReplyDeleteYeah Avinash, it will work on Windows 7 Windows 8 and Windows 8.1 as well, reason being Windows 8 is based on Windows 7 Structure.
ReplyDeleteDownload and Enjoy
My program compiles and it says it's going to execute it but it never actually shows the cmd window that executes it. It then proceeds to terminate the program after around 4 seconds according to the build window. Please help
ReplyDeletemay be there would be some runtime error and eliminate those error,
ReplyDeleteif you are facing problem with all programs, just use the chkdsk for disk checking your drive whre you stored those binary.
Does this work for Networking in C too?? please reply for this....
ReplyDeleteyeah, you can even have plugins in it for various compilers
ReplyDelete