Tuesday, 1 September 2020

How to install C (Best software and compiler)

How to install C  (Top software and run the c or c++ language )

1. There are many compilers available for c and c++. You need to download any one. Here, we are going to use Turbo C++. It will work for both C and C++. To install the Turbo C software, you need to follow following steps.

  1. Download Turbo C++
  2. Create turboc directory inside c drive and extract the tc3.zip inside c:\turboc
  3. Double click on install.exe file
  4. Click on the tc application file located inside c:\TC\BIN to write the c program
2. How to install codeblocks

       
  1.download

     Goto http://www.codeblocks.org/downloads. Click "Download the binary release". Select your operating        platform (e.g., Windows 2000/XP/Vista/7). Download the installer with GCC Compiler,                                     e.g., codeblocks- 13.12mingw-setup.exe (98 MB) (which includes MinGW's GNU GCC compiler and           GNU GDB debugger).

    2: Install

     Run the downloaded installer. Accept the default options.

   Verify the Compiler's and Debugger's Path: (For CodeBlocks 13.12 For Windows) Goto "Settings"          menu ⇒ "Compiler..." ⇒ In "Selected Compiler", choose "GNU GCC Compiler" ⇒ Select tab "Toolchain                     Executables" ⇒ Check the "Compiler's Installation Directory". It shall be set to the "MinGW" sub-directory of the  CodeBlocks installation directory, for example, suppose that CodeBlocks is installed in "c:\Program Files\codeblocks", set it to "c:\Program Files\codeblocks\MinGW".

Similarly, check the debugger's path. Goto "Settings" menu ⇒ "Debugger..." ⇒ Expand "GDB/CDB debugger" ⇒ Select "Default" ⇒ In "Executable path", provide the full-path name of "gdb.exe", for example, "c:\Program Files\codeblocks\MinGW\bin\gdb.exe". 

Debugging C/C++ program in codeblocks

  1. Step 0: Write a C++ Program. ...
  2. Step 1: Set an Initial Breakpoint. ...
  3. Step 2: Start Debugging. ...
  4. Step 3: Single-Step and Watch the Variables and Outputs. ...
  5. Step 4: Breakpoint, Run-To-Cursor, Continue and Stop.

3. online compiler and debugger for C/C++

   click to Link write now-


No comments:

Post a Comment

Variables in C

What is variables:- A  variable  is nothing but a name given to a storage area that our programs can manipulate. Each  variable in C  has a ...