... 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() {...
... destructor calls:
Comment
//: C0 8:ConstructorOrder.cpp
// Order of constructor calls
#include <iostream>
#include <typeinfo>
[1 06]
398 z 5 16
m is initialized, then its constructor prints ... types.
Comment
//: C0 8:Recycle.cpp
// A Trash Recycler
#include <cstdlib>
#include <ctime>
395 z 5 16
};
class Right : virtual public Top {
int z;
protected:
void sp...
... ///:~
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...