How to Code/Compile and Run C/C++ in Windows 7 & Windows 8

C++ Image : Run Compile C/C++ in WIndows 7 WIndows 8
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.

Codeblock.com Screen shot download tab: Intelligent Computing



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.

Screenshot of Codeblock to download for windows


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.

Screen shot of New project codeblock


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,

Screen shot of default Compiler selection


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.

Screen shot of Code in codeblock


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.

Windows 7/Windows 8 Running C/C++ application


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.
Unknown

Unknown

12 comments :

  1. softbi.blogspot.comJune 5, 2013 at 11:40 PM

    Nice i think i found something from this post.

    ReplyDelete
  2. yeah, you can check more post related to Programming and Latest post too.

    ReplyDelete
  3. Thank 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
  4. 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

    ReplyDelete
  5. Turbo C is the main reason of all these.

    www.spectra.com

    ReplyDelete
  6. Turbo C is not the only answer, get to know GNU and lots more C/C++ compiler on Google

    ReplyDelete
  7. hey.....will this work on windows 8 too?????/

    ReplyDelete
  8. Yeah 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.

    Download and Enjoy

    ReplyDelete
  9. 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

    ReplyDelete
  10. may be there would be some runtime error and eliminate those error,
    if you are facing problem with all programs, just use the chkdsk for disk checking your drive whre you stored those binary.

    ReplyDelete
  11. bhadhri vishal KannanOctober 4, 2013 at 5:20 PM

    Does this work for Networking in C too?? please reply for this....

    ReplyDelete
  12. yeah, you can even have plugins in it for various compilers

    ReplyDelete

Powered by Blogger.