[ create a new paste ] login | about

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

C++, pasted on Oct 18:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include<iostream>
#include <conio.h>

using namespace std;
class xyz
{
	static int i;
	public:
		xyz()
		{
			cout<<"\ni== "<<i;
			cout<<"i== \n"<<i++;
		}
};
int xyz::i=20;
int main()
{
xyz;
return 0;
}


Output:
1
2
3
4
Line 18: error: conio.h: No such file or directory
In function 'int main()':
Line 18: error: declaration does not declare anything
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: