You Can Help Me!

This is a discussion on You Can Help Me! within the A Brief History of Cprogramming.com forums, part of the Community Boards category; it is still not showing the output, code: #include <stdio.h> void main(void) { int num; printf("checking.."); scanf("%d",&num); fflush(stdout); getchar(); // ...

  1. #16
    eat my shorts!
    Join Date
    Apr 2002
    Posts
    294

    Angry STILL NOT WORKING!!!!

    it is still not showing the output, code:

    #include <stdio.h>
    void main(void)
    {
    int num;
    printf("checking..");
    scanf("%d",&num);
    fflush(stdout);
    getchar(); // to stop the program until entered
    }


    could some1 tell me how to write code in visual 6.0, cant seem to find it(all i find is form argg!)
    Last edited by dayknight; 04-25-2002 at 06:12 PM.

  2. #17
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    First off, please use code tags.
    Secondly, main returns int, not void.

    Code:
    #include <stdio.h>
    
    int main()
    {
        int num;
        printf("checking..");
        scanf("%d",&num);
        fflush(stdout);
        getchar();
        return(0);
    }
    This code compiles and runs fine in VC++ 6. Are you getting an
    error or is the program just not doing what you mean for it to do?

  3. #18
    eat my shorts!
    Join Date
    Apr 2002
    Posts
    294
    i have visual stdio 6.0 ent. does it have visual c++ (i cant find it)
    Last edited by dayknight; 04-26-2002 at 07:36 PM.

  4. #19
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    put the fflush(stdout) after printf() but before scanf()!

    secondly in MSVC naming a file .cpp means its wannabe ANSI C++ code and will be compiled so, if its a .c then its wannabe ANSI C
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  5. #20
    eat my shorts!
    Join Date
    Apr 2002
    Posts
    294

    forget bout those paid compierls

    i got the dev c++ is way easier n better(i guess)
    stupid bornad and MICROSOFT(i will teach em whos better, bunch of lamers dont even know wat we want!)


    Get rdy for a new compiler CALLED "DAYKNIGHT C++"
    err!

    1 more thing, how many posts till that stupid "junior" is removed from my name(doesnt look good on me )

  6. #21
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    >i got the dev c++ is way easier n better(i guess)

    hopefully!

    >i will teach em whos better, bunch of lamers dont even know wat we want!

    do, and no they dont.

    >Get rdy for a new compiler CALLED "DAYKNIGHT C++"
    err!

    with a rich feature set and FULL ANSI compliance?

    >1 more thing, how many posts till that stupid "junior" is removed from my name(doesnt look good on me

    1 more

    congratulations your a member!
    Last edited by no-one; 04-26-2002 at 09:06 PM.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  7. #22
    eat my shorts!
    Join Date
    Apr 2002
    Posts
    294

    Talking

    it was gona be removed, as i complained these crazy mods.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21