Notes: Learning C++
Tutorials and OverViews
References
Syntax Notes
-
Classes and the double colon :: notation
void CRectangle::set_values (int a, int b) { x = a; y = b; } -
#include directive:#include "path-spec" #include <path-spec> -
template:
template <class myType> myType GetMax (myType a, myType b) { return (a>b?a:b); }............int x,y; GetMax <int> (x,y); -
std::sort<vector<int>::iterator>(v.begin(), v.end()); - using namespace std then you don't have to put std:: throughout your code.
0 Comments