... ///:~
Incrementer now contains a CountedPtr object, which manages a Count. In main( ), the
CountedPtr objects are passed into the two Incrementer objects by value, so the copy-
constructor is called, ... <vector>
#include <cstdlib>
#include <ctime>
using namespace ZThread;
using namespace std;
class Count : public Cancelable {
FastMutex lock;
int count;
bool paused...
... ne(wchar_t c1 st, wchar_t c2 nd) {
return towupper (c1 st) != towupper (c2 nd);
}
static bool lt(wchar_t c1 st, wchar_t c2 nd) {
return towupper (c1 st) < towupper (c2 nd);
}
static int compare(const ... max; //Track largest number
int current; // Current non-contained number
// Used in notContained()
// Find the next number not contained in the array
int notContained() {...
... divides<int>()):
1 0 0 4 2 0 2 1 0 1
After testBinary(x, y, r, limit<int>()):
0 8 18 0 0 6 3 4 25 17
After testUnary(x, r, negate<int>()):
-4 -8 -1 8 -3 6 -2 2 -6 -2 9 -1 9 -2 5 -4 7
After testBinary(x, ... objects. They are
admittedly simple, but you can use them to compose more complicated function objects.
Consequently, in many instance...
... of words used in a document
#include <algorithm>
#include <cctype>
#include <cstring>
#include <fstream>
#include <iostream>
#include <iterator>
#include <set>
#include ... a vector as a stack; modified Stack1.cpp
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
i...
... types.
Comment
//: C0 8:Recycle.cpp
// A Trash Recycler
#include <cstdlib>
#include <ctime>
395 z 516
};
class Right : virtual public Top {
int z;
protected:
void specialPrint(ostream& ... destructor calls:
Comment
//: C0 8:ConstructorOrder.cpp
// Order of constructor calls
#include <iostream>
#include <typeinfo>
[106]
398 z 516
m is initialized, then its...