unable 2 execute a programme in c++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rashthreat
    New Member
    • Mar 2009
    • 2

    unable 2 execute a programme in c++

    im unable 2 run programme in c++
    when i try 2 execute it the output doesn't appears i hv reinstalled it again but the programme still persist.
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by rashthreat
    im unable 2 run programme in c++
    when i try 2 execute it the output doesn't appears i hv reinstalled it again but the programme still persist.
    My crystal ball says that you've done something wrong; does that help?

    kind regards,

    Jos (moderator)

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      How are you executing the program? From inside a tool like Visual Studio.NET or directly from the command line?

      Do, by chance, notice a brief black flash right after you start the program?

      Comment

      • rashthreat
        New Member
        • Mar 2009
        • 2

        #4
        Originally posted by weaknessforcats
        How are you executing the program? From inside a tool like Visual Studio.NET or directly from the command line?

        Do, by chance, notice a brief black flash right after you start the program?
        actually im using turbo c3 and im executing the programe directly from the command line.when i compile it no errors are displayed but when i try to run it the black screen on which we see the output doesnt appears and the programme is terminated.coul d u please help me??

        Comment

        • weaknessforcats
          Recognized Expert Expert
          • Mar 2007
          • 9214

          #5
          Do you have a pause at the end of main()? You know, like a scanf so the program waits on input?

          Also, how are you executing the program? From turboC or from the command line?

          Comment

          • newb16
            Contributor
            • Jul 2008
            • 687

            #6
            alt+f5 - show user screen

            Comment

            • weaknessforcats
              Recognized Expert Expert
              • Mar 2007
              • 9214

              #7
              Try it from the command line specifying the full path to your executable.

              Comment

              • JosAH
                Recognized Expert MVP
                • Mar 2007
                • 11453

                #8
                Originally posted by rashthreat
                actually im using turbo c3 and im executing the programe directly from the command line.when i compile it no errors are displayed but when i try to run it the black screen on which we see the output doesnt appears and the programme is terminated.coul d u please help me??
                You did link your compiled code did you?

                kind regards,

                Jos

                Comment

                Working...