Search Results

Showing results 1 to 7 of 7
Search took 0.01 seconds.
Search: Posts Made By: FC Jamison ; Forum: C++ and child forums
Forum: C++ Sep 20th, 2006
Replies: 14
Views: 2,824
Posted By FC Jamison
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
Posted By FC Jamison
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
Posted By FC Jamison
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
Posted By FC Jamison
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
Posted By FC Jamison
Here is the definition of algorithm...

http://en.wikipedia.org/wiki/Algorithm
Forum: C++ Sep 17th, 2006
Replies: 11
Views: 2,431
Posted By FC Jamison
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
Posted By FC Jamison
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
Showing results 1 to 7 of 7

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC