Search:

Type: Posts; User: PlusA2T

Search: Search took 0.01 seconds.

  1. Thread: About scanf

    by PlusA2T
    Replies
    15
    Views
    5,523

    Got it! Thanks!

    Got it! Thanks!
  2. Thread: About scanf

    by PlusA2T
    Replies
    15
    Views
    5,523

    Still no so understand...Why do the function...

    Still no so understand...Why do the function "getchar()" make it works! It means I have to catch the "\n" myself? (But seems that scanf will ignore?)
    Lastly, My code here:

    //
    // BMIC.c
    // ...
  3. Thread: About scanf

    by PlusA2T
    Replies
    15
    Views
    5,523

    Not so understand that.. Do it means scanf() is...

    Not so understand that..
    Do it means scanf() is hard to do this? and where can I found lots of reference of C(like PHP: php.net)? (Not C++ or C#)
    Only let user input float and if not then yell user...
  4. Thread: About scanf

    by PlusA2T
    Replies
    15
    Views
    5,523

    #include #include int...

    #include<stdio.h>
    #include<stdlib.h>


    int main(void)
    {
    float height = 0, weight = 0, BMI = 0;
    int OK = 0;
    printf("Welcome to BMI calculator.\nPlease type your height first(in...
  5. Thread: About scanf

    by PlusA2T
    Replies
    15
    Views
    5,523

    But why do the complier don't run my script?

    But why do the complier don't run my script?
  6. Thread: About scanf

    by PlusA2T
    Replies
    15
    Views
    5,523

    zero.. EVEN haven't print any msg at first time...

    zero..
    EVEN haven't print any msg at first time it step in else{}!
  7. Thread: About scanf

    by PlusA2T
    Replies
    15
    Views
    5,523

    About scanf

    This is a BMI Calculator..That's no problem when using correctly.(Typing correct number)
    But, if I'm a bad guy and typing some letters…It would show “Don't trick me, Again(in Meters):” repeatedly...
Results 1 to 7 of 7