ifstream for Input Stream for a File. Also remember that ifstream in
in.open("oldfile.txt");
This takes as Parameter old string that means quotations. Which means that
string s = "oldfile.txt";
in.open(s) will give us an error
To fix this problem use s.c_str() function instead of s as the parameter, This
converts it into the old string
Some Discussions about Object Oriented Programming. The Next Big Thing.
Scanner Class was discussed. In Visual C++ while creating a new object there is
no need for the new operator.
What are Container Classes?
CS106B Vector class has a built in Better Array
Bounds Checking
Add, Insert, remove
Memory Managemet, knows its size
Vector Class as a template. Vector decribes what it is storing using a place holder. Example:
template
class Vector {
public:
addObject ( ElemType value);
}
No comments:
Post a Comment