Results 1 to 3 of 3

Thread: Dev c++ compiler problem

  1. #1

    Thread Starter
    Lively Member Rickie's Avatar
    Join Date
    Mar 2002
    Location
    Hull, England
    Posts
    83

    Unhappy Dev c++ compiler problem

    i'm using dev c++ compiler, I was just trying out some c code, just to display text on a screen, the compiler doesn't show this program. This is my code......

    /* basic program */
    #include <stdio.h>
    main()
    {
    printf ("text to be displayed");
    }

    any ideas?

  2. #2
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    London
    Posts
    290
    "the compiler doesn't show this program"

    Not sure what you are complaing about. Is the program compiling, and you are getting no output? If so, try adding a \n to the end of your string.

    Possibly also alter main so that it returns an Int.

  3. #3
    NightSt@lker
    Guest
    i think you have to include a couple of lines near the end of main :

    Code:
    printf("Press any key to continue\n");
    getch();

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width