play with softwares

ALL KIND OF SOFTWARE STUFF

USING C++ IN WINDOWS 7 AND 8

Since windows 7 or 8 and even vista don't support full screen mode for command prompt it creates difficulty for programmers using turbo c++ .
here are some easy solutions-

DEV C++
You can download the latest version of dev c++  .I myself use dev c++ 5.3.0.3 which works absolutely fine with windows 8.It also supports standard template library (STL) which makes programming a lot easier by including algorithms and classes like vector and string and also these features are not supported by turbo c++.

TURBO C++

However if you are well acquainted with Turboc++  and not ever used namespaces then you might get
stuck while using Dev c++ .So you can still use Turboc++ with DOSBOX . You can download it from here .But it also has some issues like after running your program for first time your mouse cursor will stop working which is sometimes very irritating.






CODE::BLOCKS

Setting up it can be little annoying in the beginning (so I am giving a full step by step tutorial )  but after setting up you will find it very easy to use even for any type of programming you can use it.
You can download code blocks for different operating systems from here ( be careful to download the file with mingw-setup )

INSTALLING CODE::BLOCKS
  • Run the downloaded setup
  • click next several times to follow default installation( I will assume default installation while setting up code::blocks ) 

  • You may also change the default directory above 
  • And click on finish when code block installation completes 
SETTING UP CODE::BLOCKS
The following window will come up when you start code::blocks

Click on create a new project 
following window appears

Click on "Console Application" and press "Go" button.
Code::Blocks will then prompt you with where you'd like to save the console application: 
I'd recommend you put it in its own folder, as it may create several files
 (this is especially true if you create other types of projects). 
You will need to give your project a name, anything will be fine. 
click next
Click on finish
You can now open the main.cpp file on the left:

 (You may need to expand the contents of the "Sources" folder if you don't see main.cpp.)

At this point, you will have your main.cpp file, which you can modify if you like. For now, it just says "Hello World!", so we can run it as is. Hit F9, which will first compile it and then run it.
You now have a running program! You can simply edit main.cpp and then hit F9 to compile it and run it again