Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_pre.php on line 387

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_pre.php on line 387

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 337

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 339

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 341

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 343
just started c+

Results 1 to 3 of 3

Thread: just started c+

  1. #1
    Junior Member
    Join Date
    Apr 2008
    Posts
    4

    just started c+

    Code:
    #include <stdio.h>
    //variables
    int a;
    int b;
    int c;
    //main program
    int main()
    {
    printf("enter first number");
    scanf("%d",&a);
    printf("enter the second number");
    scanf("%d", &b);
    c=a+b;
    printf("%d+%d=%d\n", a, b, c);
    if(c < 10)
    printf("value is less than ten");
    else if (c == 0)
    printf("value is 0");
    return 0;
    }
    but it wont do my last statements, for example it asks me to enter second number but then it closes....any ideas

  2. #2
    VIP FreckleS's Avatar
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    2,125

    Re: just started c+

    before return

    system("PAUSE");
    "The pain you feel today, will be the strength you feel tomorrow"

  3. #3
    Veteran Member
    Join Date
    Apr 2006
    Location
    Canada
    Posts
    748

    Re: just started c+

    or #include <conio.h> and before the return call getch()
    Code:
    <chaplja|> i'm taking over nixcoders
    <Smileman`> cool

Similar Threads

  1. [HELP] I cant get h3he's hack started!
    By kevin in forum Call of Duty 4 Cheats
    Replies: 7
    Last Post: March 7th, 2010, 19:27
  2. whitelight getting started
    By pawelz91 in forum WhiteLight
    Replies: 1
    Last Post: November 21st, 2009, 15:58
  3. Just started clan!
    By [TCC]SkullChrusr in forum Clans
    Replies: 0
    Last Post: February 15th, 2009, 15:06
  4. Okay, big problem started showing up
    By p00pin in forum ETH32
    Replies: 11
    Last Post: April 10th, 2008, 18:21
  5. Getting started: HTTP ET downloads
    By rosssicky in forum Enemy Territory Cheats
    Replies: 7
    Last Post: August 17th, 2007, 16:05

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
  •