Can anyone tell me how to get started on this assignment?
The greatest common divisor of two positive intergers is the largest interger that divides the numbers exactly. We can write a recursive...
Type: Posts; User: RVDFan85
Can anyone tell me how to get started on this assignment?
The greatest common divisor of two positive intergers is the largest interger that divides the numbers exactly. We can write a recursive...
Here is what I have so far in the int main function.. why doesn't time1.compare() work as well??
int main()
{ Time Time1(3, 56);
Time Time2;
Time1.write();
cout...
Could someone help get me started on this assignment? Thanks...
You’re working for a company that wants to take client contact information as it is entered by a salesperson from a stack of...
what do I add to the int main function?
I've got it working now, but when I compile it, nothing comes up..... just a blank screen...
Here's my code for this assignment, but I can not get it quite right...
#include "Time.h"
#include <iostream>
using namespace std;
Time::Time(int m, int s)
{
set( m , s);
}
lowercase if, got it.. It's giving me some weird errors when I try to compile, such as "string is not identified in this scope", for the std::list<string> Undone and it also says that there is a...
Erase??
What would be the syntax or format of the erase command?
#include "list.h"
#include <iostream>
using namespace std;
int main()
That'll be easy. The lists are currently empty until the user inputs the string to be added.
class List
{
protected:
std::list<string> Undone;
std::list<string> Partially Done;
std::list<sting> Done;
public:
If( usercommand= Add Item)
cout << "Enter Item to...
Sorry... here's the assignment, and the code I have so far... (which isn't much)
Write a program using the List class from this chapter that implements a To-do list. The items in the list will be...
How would I create three empty lists in a program titled Undone, Partially Done, and Done?
CST 206 Programming Problem 4 pg. 579
Design, implement, and test a class that represents an amount of time in minutes and seconds. The class should provide a constructor that sets the time to a...
I have a file with first and last names and phone numbers. Now, I need to writte a program that gets a name from a user, and if the name is in the file, display the corresponding number, but if the...
ok... so based on that code, how do I get the final time and subtract it from 80 to get the time remaining on the CD..
Thanks again for the help. I get frustrated and try to get the assignment done, so I guess I overlook some of the more simpiler things..
I am only getting one error now. it says that there is a syntax error before string constant. here is the line of code it is referring to..
cout << setw(14) << "Number" << setw(8) << "Minutes"...
I've ggot the loop
while (inData)
{
songmin = baseValue / 60
songsec = baseValue % 60
totalmin = songmin
totalsec = songsec
inData >> baseValue;
How do I get the total time?? I can not do time1+time2+time3 etc. because I do not iknow how many values will be in the file..
Here's the full problem: Here's the assignment: You are burning music CD's for a party. You've arranged a list of songs in the order you want to play them. However, you would like to maximize...