Monday, May 2, 2011

Compile and run C and C++ programs through DOS


Most of the Windows 7 users complain about Turbo c++ not running in full screen mode.
Today I present you with a small solution i found a few days before while going through the files in TC folder.There is a file named tcc.exe,which is the TurboC compiler.
Now,for smart programming

  • Download
  • Set the environment variable for easy access to the compiler

    • Go to Control Panel\All Control Panel Items\System
    • Advanced System settings=>Environment variable=>Path
    • click edit=>Enter C:\TC\BIN
    • now,you can save your programs in C drive on any folder

  • use "cd" command to change to that directory
  • use tcc nameOfTheProgram.c or nameOfTheProgram.cpp to compile.
  • After that just type nameOfTheProgram to run that program.




ENJOY PROGRAMMING WITHOUT THAT BORING OLD SCREEN!!

No comments:

Post a Comment