[ fromfile: cppintro-questions.xml id: cppintro-questions ]
What is a stream? What kinds of streams are there?
Give one reason to use an ostrstream.
What is the main difference between getline and the >> operator?
What is the type of each expression?
3.14
'D'
“d”
6
6.2f
“something stringey”
false
In Example 1.27, identify the type and value of each “thing”:
Example 1.27. src/types/types.cpp
#include <QTextStream> int main() { QTextStream cout(stdout); int i = 5; int j=6; int* p = &i;int& r=i; int& rpr=(*p); i = 10; p = &j;
rpr = 7;
r = 8;
cout << "i=" << i << " j=" << j << endl;
return 0; }
What is the difference between a pointer and a reference?
Why does main(int argc, char* argv[]) sometimes have parameters? What
are they used for?
| Generated: $Date: 2009-09-08 12:15:32 -0400 (Tue, 08 Sep 2009) $ | © 2009 Alan Ezust and Paul Ezust. |