[ create a new paste ] login | about

Link: http://codepad.org/9JxpwM65    [ raw code | output | fork ]

C++, pasted on Apr 15:
1
2
3
4
5
6
7
8
9
10
11
12
13
int main() {

std::queue<int> q;
int x = 1;
q.push(x);
x = 2;
q.push(x);

std::cout << q.front() << std::endl;
q.pop();
std::cout << q.front() << std::endl;

}


Output:
1
2
1
2


Create a new paste based on this one


Comments: