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...
Type: Posts; User: carolsue2
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...
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...
: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...
Thank you. I got it figured out. I had to place ( quantitySold = aCount ) where I had just aCount.
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...
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...
No, I hadn't even thought about that. I have changed that line to this:
<< "Enter <ctrl-z> to end input." << endl;
Thank you 7stud. I can see that it is time for me to put this away for today.
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...
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;
...
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;...
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.
// 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; //...
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>...