Search:

Type: Posts; User: Dr_Regulus

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    1,791

    assuming the input for scanf is 01234567, you...

    assuming the input for scanf is 01234567, you would want result[0] = 2 * 0? from the code you posted, you would get result[0] = 2 * 48, 48 being the ascii value for '0', so i think you want:...
  2. double number; cin >> number; (number ==...

    double number;
    cin >> number;
    (number == (int)number); //will be true if number is an int, otherwise it will be false.
Results 1 to 2 of 2