Search:

Type: Posts; User: jeffcoulter

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    18,774

    #include int main() { int...

    #include <iostream.h>
    int main()
    {

    int month, day;

    cout << "Enter a month (use a 1 for Jan, ect.): ";
    cin >> month;
    cout << "Enter a day of the month: ";
    cin >> day;
  2. Replies
    6
    Views
    18,774

    (C++) How to detect decimal points?

    Using an If statement how could I go about detecting a decimal enter by the user?


    Basically I am writing a program that prompts the user to enter the month and date and I want to be able to...
  3. (C++) How would you go about rounding numbers?

    Ok Basically when I am run the program it will add both numbers 1.67 + 1.32 and give the result 3.00. Clearly, the sum of the displayed numbers should be 2.99 and not 3.00. The problem is that...
Results 1 to 3 of 3