No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
6 Posted Topics
Re: modify getScores like this: int getScores(double scores[] ) { cout << "Please enter up to 10 scores, followed by -1.\n"; int value = 1; int count = 0; while(value >= 0) { cin >> value; if(value >= 0) { if(count < MAX_SCORES) { scores[count] = value; count++; } } } … | |
Re: please copy here the content of Chrono.h and Chrono.cpp. Also, if your function add_day is in a separate file, include it as well | |
Re: replace lines 43-60 with this: //finds and displays the odd numbers. t=Queue; while(t!=NULL) { if(t->info%2!=0) cout<<t->info<<'\t'; t=t->next; } cout<<endl; //finds and displays the even numbers. t=Queue; int EvenCounter=0; while(t!=NULL) { if(t->info%2==0) cout<<t->info<<'\t'; t=t->next; } cout<<endl; | |
Re: @Ancient Dragon: > How do you get 32, 42 and 52 from that data? These are 3^2, 4^2, 5^2. How are you going to solve it if you can't get it? | |
Re: my sugession: change the variable type for "ran" to int, and it will magically start to work. Basiaclly, you can't check the value of a double variable like you do (ran==1), because ran will never be 1 (it will be something like 1.0000000000000012 depending on your harware environment). Also, have … | |
Re: Change this bit: [CODE=c] int main() { DayOfYear dYear; //Set days of each month into an array const int MonthDays[] = {31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365}; //Set the name of each month into an array const string MonthName[] = {"January", "February", "March", "April", … |
The End.