[ create a new paste ] login | about

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

C, pasted on Feb 21:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
int main(int argc, char** argv)
{
std::ifstream myfile(argv[0]);

char temp;
char file[1000];
int index =0;
while(myfile>> temp)
{
file[index] = temp;
index ++;
}


}


Output:
1
2
3
4
5
In function 'main':
Line 3: error: expected expression before ':' token
Line 8: error: 'myfile' undeclared (first use in this function)
Line 8: error: (Each undeclared identifier is reported only once
Line 8: error: for each function it appears in.)


Create a new paste based on this one


Comments: