Wednesday, 12 October 2011

C++ in Bloodshed tips & shortcuts

In Bloodshed
To compile: ctrl + F9
To run: ctrl + F10
To compile & run: F9

To get your command prompt screen to stay open..
cin.get();
Click here for More about cin.get ();

system("pause");
Click here for Why you should avoid system("pause")

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

As you are trying to test several small scripts (that related to each other) ,some ppl tend to open new source file (ctrl+N) for every small scripts. Here is something you can try, run and test all the small scripts under one source file and isolate each scripts by using the block comment.


No comments:

Post a Comment