My c++/c program is not running, but it is getting complied.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • r281
    New Member
    • Aug 2010
    • 5

    My c++/c program is not running, but it is getting complied.

    My C++ program is not running but its getting compiled. please suggest what to do?
  • donbock
    Recognized Expert Top Contributor
    • Mar 2008
    • 2427

    #2
    How do you know your program isn't running?
    That is, please describe the symptoms.

    Comment

    • r281
      New Member
      • Aug 2010
      • 5

      #3
      its getting compiled, but when i am choosing run option, nothing is happening. no message,no error,nothing.

      Comment

      • donbock
        Recognized Expert Top Contributor
        • Mar 2008
        • 2427

        #4
        Perhaps your program doesn't do anything palpable -- that is, there is no input or output. I suggest you add a first line to your main function that prints something:
        Code:
        #include <stdio.h>
        ...
        printf("Hello\n");
        Note the newline at the end of the string, it is important.

        Comment

        • r281
          New Member
          • Aug 2010
          • 5

          #5
          firstly,thank you for paying attention to my problem.
          I am writing the same syntax,just to demonstrate, but its not giving "Hello" as output

          Comment

          • donbock
            Recognized Expert Top Contributor
            • Mar 2008
            • 2427

            #6
            Are you sure there aren't any build errors or warnings?

            Comment

            • r281
              New Member
              • Aug 2010
              • 5

              #7
              I am using windows7 os. It does not supports fullscreen mode,but I had run some programs previously.I dont understand why its not running now.Dose using Windows7 is making any difference in compilation or running of a prog?

              Comment

              • newb16
                Contributor
                • Jul 2008
                • 687

                #8
                As there are programs that compatible with Vista but not with Windows 7, the answer is yes. (may be useful - http://social.technet.microsoft.com/...4-59b9745d1ec0 )

                Comment

                • QaNAvour
                  New Member
                  • Aug 2010
                  • 1

                  #9
                  if you're using Borland IDE follow,

                  "Project->Build All Projects"

                  Comment

                  Working...