Forum: C++ Sep 20th, 2006 |
| Replies: 14 Views: 2,824 True...the data types and sizes shown are typical on Windows systems, and the sizes and ranges may be different on other operating systems...
You can determine the size of an integer using... |
Forum: C++ Sep 20th, 2006 |
| Replies: 14 Views: 2,824 This is because of the size limitations of data types.
an int is only 4 bytes...and has a range from -2,147,483,648 to 2,147,483,647
A double uses 8 bytes (and some floating point algorithm... |
Forum: C++ Sep 18th, 2006 |
| Replies: 6 Views: 1,471 Ah..I just saw the bottom part...the minute hour thing is kind of tricky
convert your start and end time to minutes...so that all of your calculations are done in minutes...
the final step... |
Forum: C++ Sep 18th, 2006 |
| Replies: 6 Views: 1,471 Logically...you have a start time and an end time stored in variables.
create a third variable to hold the total time (start time - end time)
multiply the total time by 0.75 (totalTime*0.75)... |
Forum: C++ Sep 17th, 2006 |
| Replies: 2 Views: 3,804 Here is the definition of algorithm...
http://en.wikipedia.org/wiki/Algorithm |
Forum: C++ Sep 17th, 2006 |
| Replies: 11 Views: 2,431 Here's the big glaring error I see in your code...
string string;
You can't use "string" as a variable name. |
Forum: C++ Sep 17th, 2006 |
| Replies: 11 Views: 2,431 Ha.! I remember my C++ instructor promising not to give us a bad grade on an assignment if we promised not to use global variables...lol |