Forum: C++ Feb 22nd, 2009 |
| Replies: 1 Views: 199 This is what I'm suppose to do:
"Create a while loop to read in the corporate sales data from the pgm3.dat file and create a report listing data for each division as well as some of the summary... |
Forum: C++ Jan 25th, 2009 |
| Replies: 1 Views: 297 I have to create a program that reads data from a file about census info specifically a last name and the frequency of which last name appeared in census. I have to call a function to read in the... |
Forum: C++ Dec 8th, 2008 |
| Replies: 6 Views: 950 The professor has not taught us "class Card"; so I'm not really sure what you're talking about, |
Forum: C++ Dec 7th, 2008 |
| Replies: 6 Views: 950 The user has to enter in the number of cards they want to play which is suppose to be N. Are you saying I need to set a limit like 23?
I keep going back and forth as to whether or not the suit array... |
Forum: C++ Dec 7th, 2008 |
| Replies: 6 Views: 950 For a class assignment we need to make a C++ program in putty of the game war. It has to have 7 functions; it's suppose to use a time() function and srand() function in the dealRandomCard() function.... |
Forum: C++ Dec 5th, 2008 |
| Replies: 4 Views: 300 You need to include a string command. |
Forum: C++ Nov 16th, 2008 |
| Replies: 5 Views: 389 Okay I got it to work halfway. I had to put the cout statement inside the last } because of an "error: expected constructor, destructor, or type conversion before '<<' token". Don't know what that... |
Forum: C++ Nov 16th, 2008 |
| Replies: 5 Views: 389 I need a function and that code produced alot of errors when I tried to make it a function or add it into the main. |
Forum: C++ Nov 16th, 2008 |
| Replies: 5 Views: 389 I'm having some problems with a program that invovles arrays. I have a program that is suppose to read data from a file fish.txt about fisherman. The a function is suppose to print the number of fish... |
Forum: C++ Nov 11th, 2008 |
| Replies: 4 Views: 319 .............. Can't believe I missed that...
Thanks, SSR |
Forum: C++ Nov 11th, 2008 |
| Replies: 4 Views: 319 I have to create a program for a Jewerly Store, that is a markup application that accepts the name of an item (string), the quantity, and the wholesale cost. The markup is based on the name of the... |
Forum: C++ Oct 28th, 2008 |
| Replies: 3 Views: 356 For my homework I have to create a program with functions and nexted while loops. I have got most of the program written but it's not executing how I want it to. The program is setup as a football... |
Forum: C++ Oct 23rd, 2008 |
| Replies: 3 Views: 451 This does what I want but it's not in a function. How would I go about putting it in a function?
#include <iostream>
using namespace std;
int main ()
{
int score;
cout << "What is... |
Forum: C++ Oct 23rd, 2008 |
| Replies: 3 Views: 451 This is my assignment: Write a program to helps health care staff keep track of a patient's cholesterol level. It needs to have a main function that calls another function, and the function must be... |
Forum: C++ Oct 7th, 2008 |
| Replies: 5 Views: 510 I tried it and it does work like you said. I think I didn't explain myself very well though.
if (topfloor<1) then it needs to display invalid and not show the total of the room, occupied, and empty... |
Forum: C++ Oct 6th, 2008 |
| Replies: 5 Views: 510 Actually I don't think that worked because it started to ask about the number of occupied rooms which isn't what I want. if topfloor<1 then I want it to fall through the loop and not execute any of... |
Forum: C++ Oct 6th, 2008 |
| Replies: 5 Views: 510 I am having a hard time with my homework and I was wondering if someone could help.
I have to create a program that uses a while loop to ask questions about a hotel. It first ask the number of... |