Search:

Type: Posts; User: carolsue2

Search: Search took 0.00 seconds.

  1. Continuous loop or counter problem or both?

    I have coded a "guess the number" program. When the user inputs his guess, the program is supposed to tell him: "Excellent! Would you like to play again (y or n)?" or "Too Low. Try again." or "Too...
  2. Replies
    4
    Views
    1,561

    My program causes my compiler to crash

    I am coding a "guess the number" program and I hope someone can tell me what I have done wrong with my program. When I compile this program I do not get any errors or warning. It prints the intro...
  3. Thread: error C2664

    by carolsue2
    Replies
    1
    Views
    1,360

    error C2664

    :confused: I have this code that I am trying to compile and I keep getting an error C2664 message. I am not sure what to do with the code that it is pointing to. (This is just part of the program...
  4. Replies
    5
    Views
    8,336

    Thank you. I got it figured out. I had to place...

    Thank you. I got it figured out. I had to place ( quantitySold = aCount ) where I had just aCount.
  5. Replies
    5
    Views
    8,336

    I changed the code to this:

    I changed the code to this:


    << "\nProduct 1: " << " aCount " << "@ " << " $" << "2.98 " << " =" << " $" << ( aCount * 2.98 )

    It ouputs everything right except for the aCount. It prints out...
  6. Replies
    5
    Views
    8,336

    Can't get output to display dollar sign

    I am still working on my mail order program. I have got the program to the point where it needs to output the amounts with a dollar sign. When I code '$' in I can not figure out where to put it so...
  7. Replies
    2
    Views
    762

    No, I hadn't even thought about that. I have...

    No, I hadn't even thought about that. I have changed that line to this:


    << "Enter <ctrl-z> to end input." << endl;
  8. Replies
    2
    Views
    1,185

    Thank you 7stud. I can see that it is time for...

    Thank you 7stud. I can see that it is time for me to put this away for today.
  9. Replies
    2
    Views
    1,185

    Using mathematical symbols

    I am writing a mail order house program that has five products, at 5 different prices and I need to be able to input the product number and the quantity sold in one day. I have the program done to...
  10. Replies
    2
    Views
    762

    Help with syntax error

    I am trying to write a program using switch. I keep getting a syntax error at line 19.



    cout << "Enter the letter grades." << endl;
    << "Enter the EOF character to end input." << endl;
    ...
  11. Replies
    4
    Views
    1,335

    Problem ending loop

    I have written a program for updating a customer's account balance and am having a problem ending the looping part of it.

    Here is my source code:


    #include <iostream>

    using std::cout;...
  12. Replies
    5
    Views
    2,969

    Thank you Tonto. Such a simple solution. I have...

    Thank you Tonto. Such a simple solution. I have looked at and re-written this program a dozen times today and never noticed that I was putting the symbol in the wrong way.
  13. Replies
    5
    Views
    2,969

    // Lab Exercise 1 // Sum, Average, Max and Min...

    // Lab Exercise 1
    // Sum, Average, Max and Min
    // By Sue Claycamp
    #include <iostream>

    using std::cout; // Program uses cout
    using std::cin; // Program uses cin
    using std::endl; //...
  14. Replies
    5
    Views
    2,969

    Error message C2676

    I am trying to write a small, simple program for a class that I am taking. I keep getting this error code: " error C2676: binary '>>' : 'class std::basic_ostream<char,struct std::char_traits<char>...
Results 1 to 14 of 14