Search:

Type: Posts; User: Charlie Lesoine

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    3,073

    Sorry I still don't know what to do... ...

    Sorry I still don't know what to do...

    doublevar is a double not a char:



    scanf(" %c %lf", &charvar, &doublevar);
  2. Replies
    5
    Views
    3,073

    I read the page you linked, but I am still not...

    I read the page you linked, but I am still not sure how to alter my code. I am a beginner...
  3. Replies
    5
    Views
    3,073

    How to continue if no user input

    If I have a scanf like this:



    scanf(" %c %lf", &charvar, &doublevar);


    How do I get the program to continue if the user only inputs the one char and no double character? For example if...
Results 1 to 3 of 3