Hello world!

이대섭2006.08.13
조회26
just for fun. 고등학생 10 PRINT "HELLO WORLD" 20 END 대학 1학년 program Hello(input, output) begin writeln('Hello World') end. 대학 4학년 (defun hello (print (cons 'Hello (list 'World)))) 초보 전문가 #include void main(void) { char *message[] = {"Hello ", "World"}; int i; for(i = 0; i < 2; ++i) printf("%s", message[i]); printf("\n"); } 능숙한 전문가 #include #include class string { private: int size; char *ptr; public: string() : size(0), ptr(new char('\0')) {} string(const string &s) : size(s.size) { ptr = new char[size + 1]; strcpy(ptr, s.ptr); } ~string() { delete [] ptr; } friend ostream &operator