CMPT 212
Fall 1997
|
Read chapters 1 and 2 from C++ Primer Plus (2nd ed.), by Stephen Prata. |
If we used /* */ for "normal" comments, we could have this error:
char c;
cin >> c;
int i;
cin >> i;
char c = 'W';
cout << c;
int i = 56;
cout << i;
char c;
int i;
cin >> c >> i;
char c = 'W';
int i = 56;
cout << c << i;
Return to lecture notes index |
|
This page is maintained by simpson@cs.sfu.ca. | Last updated on 5 Sep 1997. |