labs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
labs [2017/02/28 17:34] – aboelaze | labs [2017/03/23 18:00] – aboelaze | ||
---|---|---|---|
Line 83: | Line 83: | ||
Here is {{: | Here is {{: | ||
+ | |||
+ | <fc red> | ||
Due midnight Sunday March 5 | Due midnight Sunday March 5 | ||
- | Now few pointers: | + | **Now few pointers:** |
- | You will read from the standard input, the number k followed by names. If you use scanf to read K, then use fgets t read names (it might contain spaces, so you can not use scanf easily), you will have a problem getting rid of the newline after the number k. | + | |
+ | You will read from the standard input, the number k followed by names. If you use scanf to read K, then use fgets to read names (it might contain spaces, so you can not use scanf easily), you will have a problem getting rid of the newline after the number k. | ||
I would suggest to use fgets t read both, then use sscanf to read k from the string you read. | I would suggest to use fgets t read both, then use sscanf to read k from the string you read. | ||
Line 98: | Line 101: | ||
sscanf(s, " | sscanf(s, " | ||
+ | |||
+ | **records file** | ||
+ | |||
+ | {{: | ||
+ | |||
+ | **Input and output files** | ||
+ | |||
+ | {{: | ||
+ | |||
+ | **This is not input output samples, but will help you to be with testing** | ||
+ | |||
+ | This is a hash table with k=7 {{: | ||
+ | |||
+ | Here is for k=10 {{: | ||
+ | |||
+ | **Here is a solution for lab 6** {{: | ||
+ | |||
+ | |||
+ | ===== LAB 7 ===== | ||
+ | |||
+ | Here is {{: | ||
+ | |||
+ | **<fc red> The lab is due March 19 </ | ||
+ | |||
+ | |||
+ | |||
+ | ===== LAB 8 ===== | ||
+ | |||
+ | here is | ||
+ | |||
+ | Due last day of classes | ||
+ | |||
+ | |||
+ | |||
+ | |||
labs.txt · Last modified: 2017/03/23 18:01 by aboelaze