The .H (header) file is more of a code organisation means to make your code readable and easily maintained. Logically, declarations and definitions are placed in the header file to allow an easy glance over the codes. All implementation codes shall go to the CPP file (with same corresponding name)

The ASCII table shows that A - Z has ASCII code of 65 - 90. On the other hand a - z has ASCII code of 97 - 122

You could manipulate the text as 'char' using ASCII code. For example, in the Caesar cipher, B (66) would be E (69) after encryption. Its just as simple as adding 3 to the ASCII code and you'll get the correct 'char'. To decrypt, simply minus 3 from the ASCII code and you'll get the decrypted value.
NOTE: do remember to wrap around. E.g. Z comes after A when decrypting

Hope this shed some light to you.

Ancient Dragon commented: exactly :) +34

If all you want is to select the maximum and minimum, only one iteration is sufficient.

  1. First assign the first element of array as min and max.
    While iterating,
  2. compare if the current value is less than min. If yes, replace the min value
  3. compare if the current value is greater than max. If yes, replace the max value
    end of iteration

You're done.

mvmalderen commented: Yes. +8

In your find function, add a line to return -1 after the for loop. This will indicate ID not found/invalid ID. Then in line 23 after you get the value for variable [B]place[/B], add this checking:
[CODE]if (place == -1)
{
infile >> id;
continue;
}[/CODE]
This will skip the addition of total hours and go to the next ID in your work data file.

bbrradd commented: ty for the help +4

Why not think about the logic. Do not worry too much about the syntax and things. Try to present your logic here and I believe many of us here are more than happy to give you guidance in turning the logic into codes.

A little piece of advice: [B]do put all your variable declarations at the beginning of the function[/B]
It helps a lot in terms of readability and program maintenance in future.

Ancient Dragon commented: Agree +28

Use the built-in function sizeof() to get the size of your class in bytes.
[CODE]// prints out the size of 'myClass' in number of bytes
cout << sizeof(myClass)[/CODE]