All pastes #432917 Raw Edit

Tick_Data Class

public cpp v1 · immutable
·published 2007-04-10 14:37 UTC
rendered paste body
#include <iostream>#include <vector>using namespace std;class A {public:        bool *var;void f (bool *var) { this->var = var;}void f2 () {   this->var = false;}};int main () {bool var = true;cout << var << endl;A obj;obj.f(&var);obj.f2();cout << var << endl;return 0;}