[ create a new paste ] login | about

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

C, pasted on Oct 6:
1
2
3
4
5
6
7
8
9
10
11
/* File HelloProgram.java 
*/ 

import acm.grpahics.*; 
import acm.program.*; 

public class HelloProgram extends GraphicsProgram {
	public void run() { 
		add(new GLabel ("hello, world") 100, 75); 
	}
}


Output:
1
2
3
Line 5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'acm'
Line 6: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'acm'
Line 8: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'class'


Create a new paste based on this one


Comments: