Results 1 to 4 of 4

Thread: C++ commands not working

  1. #1
    Join Date
    Jan 2009
    Posts
    44

    C++ commands not working

    Hey guys...!

    I have been studying c++ for a while after finishing c language. But i have a problem. I don'y know if it is the compiler problem or something else help me out guys! i cannot run printf and scanf commands... I don't know how to make it working...!
    Help guys!

  2. #2
    Join Date
    Jan 2009
    Posts
    710

    Re: C++ commands not working

    Hey!
    I don't have much idea about programming but i know little as i learnt in college... If you are using Turbo C++, Make sure you select proper directories from options and directory. Directories have to be set for include files [header files], library files [lib] and output directory and so on...!
    All the best!

  3. #3
    Join Date
    Jan 2009
    Posts
    44

    Re: C++ commands not working

    Hi!
    I installed Turbo C++ to its default location and did not change its folder. I also configured the directories but going in the following menu : Options-> Directories. But still nothing help...! If it was a directories problem all the programs and commands shouldn't work right?

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Re: C++ commands not working

    Hey!
    I guess you have lost your mind mr alkesh! are you sure you learning C++ and not C? Because printf and scanf commands don't work in C++. They are the command of C language. In C++ you have to use 'cin' instead of 'scanf' and 'cout' instead of 'printf'. Hope now you can run your program!
    All the best anyways...!

Similar Threads

  1. Replies: 4
    Last Post: 24-12-2011, 03:43 AM
  2. amx commands not working on dedicated server
    By Chaska in forum Video Games
    Replies: 3
    Last Post: 06-04-2011, 09:10 AM
  3. No commands available in TFS
    By In2TheBlues in forum Software Development
    Replies: 3
    Last Post: 13-07-2009, 11:13 PM
  4. Need Basic Dos commands for Commands prompt
    By JangoRap in forum Operating Systems
    Replies: 5
    Last Post: 29-06-2009, 12:07 PM
  5. Dos Commands not working from cmd Prompt
    By Tarun in forum Vista Help
    Replies: 11
    Last Post: 16-10-2008, 11:53 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,424,148.43621 seconds with 16 queries