How to run Programing C in windows 7

10 replies
Hi guys i want to use Programing C in windows 7. how can i run it in windows 7?
#programing #run #windows
  • Profile picture of the author eminc
    Hi,

    I think there should be a version of Cygwin available for Windows 7. Install cygwin+mingw+some libraries (sorry I did that long ago, so forgot what are the things required) It lets you run gcc on windows.

    Mohit
    {{ DiscussionBoard.errors[4878040].message }}
  • Profile picture of the author rainso0
    1. Install the software DOSBox ver 0.73
    2. Create a folder,for example „Turbo“ (c:\Turbo\)
    3. Download and extract TC into the Turbo folder (c:\Turbo\)
    4. Run the DOSBox 0.73 from the icon located on the desktop:
    5. Type the following commands at the command prompt [Z]: mount d c:\Turbo\ [The folder TC is present inside the folder Turbo]
    Now you should get a message which says: Drive D is mounted as a local directory c:\Turbo\
    6. Type d: to shift to d:
    7. Next follow the commands below:

    cd tc

    cd bin

    tc or tc.exe [This starts you the Turbo C++ 3.0]
    8. In the Turbo C++ goto Options>Directories> Change the source of TC to the source directory [D] ( i.e. virtual D: refers to original c:\Turbo\ . So make the path change to something like D:\TC\include and D:\TC\lib respectively )

    You can save yourself some time by having DOSBox automatically mount your folders and start TurboC++:

    For DOSBox versions older then 0.73 browse into program installation folder and open the dosbox.conf file in any text editor. For version 0.73 go to Start Menu and click on “Configuration” and then “Edit Configuration“. Then scroll down to the very end, and add the lines which you want to automatically execute when DOSBox starts.
    Automatically mount and start Turbo C++3.0 in DOSBox ver 0.73:

    Those commands will be executed automatically when DOSBox starts!

    Please note:

    Full screen: Alt and Enter

    When you exit from the DosBox [precisely when u unmount the virtual drive where Turbo C++ 3.0 has been mounted] all the files you have saved or made changes in Turbo C++ 3.0 will be copied into the source directory(The directory which contains TC folder)

    Don’t use shortcut keys to perform operations in TC because they might be a shortcut key for DOSBOX also . Eg : Ctrl+F9 will exit DOSBOX rather running the code .


    Try

    To use Turbo C++ IDE in windows 7 or in Vista; For those who wants to learn C/C++ just uninstall your "Graphics driver "
    For that Computers->properties->device manager->Display Adapters->graphics driver version u have uninstall that...And after log off Run your "C:\\TC\\BIN\\TC.exe".it will open in full screen...



    Just Load the files in C:\TC ( Hard disk c: drive)
    It is the default location for TC.

    Enter these lines in the Dos Box options file. (Start menu – Dos box – Options – DOSBox 0.74 Options) That opens in notepad.

    Scroll down in the notepad file – After these lines

    “[autoexec]
    # Lines in this section will be run at startup.
    # You can put your MOUNT lines here.”
    type as below :
    ——————

    mount c c:\
    c:
    cd tc
    cd bin
    tc

    —————-
    Alt + Enter for fullscreen, Alt + x to exit TC. Type exit to close Dos Box.

    Click on Run in the menu – Don’t use Ctrl + F9 to run program. (It will close Dos Box). All directories are set by default location.

    Software to run C programs on Windows 7

    Copy the source code to Visual C++ ( Comes with Visual Studios 6.0 , 2005 , 2008 , 2010 etc. ) and compile .... The exe created would be compatible with your OS .

    Windows is not like linux which has C/C++ compiler provided with the OS. You need to get your own.

    Try Visual Studio Express. It's free, it's from MSFT and it's good. You'll be able to compile and create executable files.

    In the File menu, select Create a new project. Depending on what your CPP file is about, a Win 32 -> Console Application is the simpliest you can do.

    Add your CPP file and hit the build command. You'll probably have tweaking with include files to get it to compile


    Install Dev C++

    or Code::Blocks

    both of which uses the MinGW 32-bit development environment environment for building applications.

    Both of these tools are a little bit old, and neither is great for developing Windows applications, but for learning C/C++ they should do just fine.
    {{ DiscussionBoard.errors[4884609].message }}
    • Originally Posted by rainso0 View Post

      1. Install the software DOSBox ver 0.73
      2. Create a folder,for example „Turbo" (c:Turbo)
      3. Download and extract TC into the Turbo folder (c:Turbo)
      4. Run the DOSBox 0.73 from the icon located on the desktop:
      5. Type the following commands at the command prompt [Z]: mount d c:Turbo [The folder TC is present inside the folder Turbo]
      Now you should get a message which says: Drive D is mounted as a local directory c:Turbo
      6. Type d: to shift to d:
      7. Next follow the commands below:

      cd tc

      cd bin

      tc or tc.exe [This starts you the Turbo C++ 3.0]
      8. In the Turbo C++ goto Options>Directories> Change the source of TC to the source directory [D] ( i.e. virtual D: refers to original c:Turbo . So make the path change to something like D:TCinclude and D:TClib respectively )

      You can save yourself some time by having DOSBox automatically mount your folders and start TurboC++:

      For DOSBox versions older then 0.73 browse into program installation folder and open the dosbox.conf file in any text editor. For version 0.73 go to Start Menu and click on "Configuration" and then "Edit Configuration". Then scroll down to the very end, and add the lines which you want to automatically execute when DOSBox starts.
      Automatically mount and start Turbo C++3.0 in DOSBox ver 0.73:

      Those commands will be executed automatically when DOSBox starts!

      Please note:

      Full screen: Alt and Enter

      When you exit from the DosBox [precisely when u unmount the virtual drive where Turbo C++ 3.0 has been mounted] all the files you have saved or made changes in Turbo C++ 3.0 will be copied into the source directory(The directory which contains TC folder)

      Don't use shortcut keys to perform operations in TC because they might be a shortcut key for DOSBOX also . Eg : Ctrl+F9 will exit DOSBOX rather running the code .


      Try

      To use Turbo C++ IDE in windows 7 or in Vista; For those who wants to learn C/C++ just uninstall your "Graphics driver "
      For that Computers->properties->device manager->Display Adapters->graphics driver version u have uninstall that...And after log off Run your "C:\TC\BIN\TC.exe".it will open in full screen...



      Just Load the files in C:TC ( Hard disk c: drive)
      It is the default location for TC.

      Enter these lines in the Dos Box options file. (Start menu - Dos box - Options - DOSBox 0.74 Options) That opens in notepad.

      Scroll down in the notepad file - After these lines

      "[autoexec]
      # Lines in this section will be run at startup.
      # You can put your MOUNT lines here."
      type as below :
      ------------

      mount c c:
      c:
      cd tc
      cd bin
      tc

      -----------
      Alt + Enter for fullscreen, Alt + x to exit TC. Type exit to close Dos Box.

      Click on Run in the menu - Don't use Ctrl + F9 to run program. (It will close Dos Box). All directories are set by default location.

      Software to run C programs on Windows 7

      Copy the source code to Visual C++ ( Comes with Visual Studios 6.0 , 2005 , 2008 , 2010 etc. ) and compile .... The exe created would be compatible with your OS .

      Windows is not like linux which has C/C++ compiler provided with the OS. You need to get your own.

      Try Visual Studio Express. It's free, it's from MSFT and it's good. You'll be able to compile and create executable files.

      In the File menu, select Create a new project. Depending on what your CPP file is about, a Win 32 -> Console Application is the simpliest you can do.

      Add your CPP file and hit the build command. You'll probably have tweaking with include files to get it to compile


      Install Dev C++

      or Code::Blocks

      both of which uses the MinGW 32-bit development environment environment for building applications.

      Both of these tools are a little bit old, and neither is great for developing Windows applications, but for learning C/C++ they should do just fine.
      This is very helpful. Thanks!
      Signature
      {{ DiscussionBoard.errors[6311459].message }}
  • Profile picture of the author DavidWincent
    There is a gcc compiler on windows. First you have to install DOSBox software. Create a folder with name Turbo and extract the files in this folder. In DOS enter commands "cd tc" and "cd bin". Then type "tc" to start your turbo C.
    Signature
    Webmaster Studio -A premier web design and internet marketing company in New York.
    {{ DiscussionBoard.errors[4891176].message }}
  • Profile picture of the author wndrshare
    Copy the source code to Visual C++ ( Comes with Visual Studios 6.0 , 2005 , 2008 , 2010 etc. ) and compile .... The exe created would be compatible with your OS .
    {{ DiscussionBoard.errors[4898322].message }}
    • Profile picture of the author iamhere007
      Thanks guys. it's working.... many many thanks.
      {{ DiscussionBoard.errors[4924899].message }}
  • Profile picture of the author abdurrahman
    to run the c program u shuld have to use ctl+f9,f8
    {{ DiscussionBoard.errors[6312549].message }}
  • Profile picture of the author porcupine73
    I've used Mingw c and c++ on Windows 7, it works great and is free.
    {{ DiscussionBoard.errors[6314111].message }}
  • Profile picture of the author BlackWar
    Banned
    Download portable application of C program compiler.
    It works nice.
    {{ DiscussionBoard.errors[6315658].message }}
  • Profile picture of the author mmrumii
    I use C++ for cause I can do c program on there.
    Without any trouble. you can use it.
    {{ DiscussionBoard.errors[6317015].message }}

Trending Topics