S: 2500 X :50 Y :30 Z :20
C: 2500 X :50 Y :30 Z :20
Strategy S : 33 40 27 7500
Strategy C : 50 30 20 7500
s50 30 20 2500
c50 30 20 2500
Please enter stock prices: To Quit Enter Ctrl D
Please enter stock prices:To Quit Enter Ctrl D
S 50 30 20 2500
C 50 30 20 2500
Pls specify input file.
char * string = new char[100];
if (cin.getline(string, 100)) {
cout << "\nEnter stock prices: Ctrl D To Quit\n";
while (cin.getline(inputline, 100, '\n')) {
char inputline[100];
strtok()
, you're doing it wrong.
100 | 200 | 300 | 400 | 500 | 600 | |
---|---|---|---|---|---|---|
0 | 1 | 1 | 1 | |||
10 | 1 | 1 | ||||
20 | ||||||
30 | 1 | |||||
40 | 1 | 1 | ||||
50 | 1 | |||||
60 | 2 | 1 | ||||
70 | 2 | 2 | 1 | |||
80 | 1 | 2 | 1 | |||
90 | 1 | 1 | ||||
Totals | 1 | 4 | 5 | 6 | 4 | 3 |
000 | 100 | 200 | |
---|---|---|---|
0 | 2 | ||
10 | |||
20 | 3 | 1 | |
30 | 3 | 3 | |
40 | |||
50 | 1 | ||
60 | 3 | ||
70 | 1 | ||
80 | 1 | 3 | |
90 | 2 | ||
Totals | 1 | 16 | 6 |
File Counts | Count | Average Lines/File | Avg Semicolons per File |
---|---|---|---|
1 | 8 | 315 | 146 |
2 | 1 | 197 | 84 |
3 | 6 | 160 | 61 |
4 | 0 | ||
5 | 3 | 81 | 35 |
6 | 1 | 84 | 27 |
7 | 3 | 81 | 29 |
8 | 0 | ||
9 | 0 | ||
10 | 0 | ||
11 | 1 | 61 | 18 |
total | pages per procedure | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
procs | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
1 | 1 | |||||||||||||
3 | 2 | 1 | ||||||||||||
3 | 2 | 1 | ||||||||||||
4 | 2 | 1 | 1 | |||||||||||
4 | 2 | 1 | 1 | |||||||||||
4 | 2 | 1 | 1 | |||||||||||
5 | 4 | 1 | ||||||||||||
6 | 3 | 1 | 2 | |||||||||||
6 | 5 | 1 | ||||||||||||
7 | 6 | 1 | ||||||||||||
8 | 4 | 1 | 2 | 1 | ||||||||||
10 | 6 | 2 | 1 | 1 | ||||||||||
12 | 10 | 2 | ||||||||||||
12 | 8 | 4 | ||||||||||||
13 | 11 | 1 | 1 | |||||||||||
17 | 16 | 1 | ||||||||||||
18 | 16 | 2 | ||||||||||||
18 | 17 | 1 | ||||||||||||
24 | 20 | 4 | ||||||||||||
24 | 20 | 4 | ||||||||||||
24 | 23 | 1 | ||||||||||||
29 | 27 | 2 | ||||||||||||
48 | 48 | |||||||||||||
This page last modified on 12 February 2002.