#include using namespace std; /*bool accept() { cout << "Do you want to continue? (y or n)?\n"; char x = 0; cin >> x; if (x == 'y') return true; return false; char y = 0; } bool accept2() { cout << "Do you want to continue? (y or n)?\n"; char x = 0; cin >> x; switch(x) { case 'y': return true; case 'n': return false; default: cout << "I take that as a no"; return false; } } bool accept3() { int tries = 1; while(tries < 4){ cout << "Do you want to continue? (y or n)?"; char x = 0; cin >> x; switch(x) { case 'y': return true; case 'n': return false; default: cout << "I take that as a no"; tries = tries+1; return false; } } cout << "I take that as a no"; return false; } int func() { int v1[10]; int v2[10]; for (int i=0; i<10; ++i) v1[i]=v2[i]; }*/ namespace stack { void push(char); char pop(); } int main() { stack::push('c'); if(stack::pop() != 'c') error("imposiple"); }