| [ Buddhism ] in KIDS 글 쓴 이(By): parsec (먼소류) 날 짜 (Date): 1997년12월12일(금) 08시34분29초 ROK 제 목(Title): 뤼]윗글 RE to Orion님... #include <iostream.h> Class String{ private: char *str; protected: String(){str = new char*; strcpy(str,"");} ~String(){delete str;} void operator =(char *nstr) { strcpy(str, nstr); } ostream& operator<<(ostream& os, String){return (os<<str);} istream& operator>>(istream& is, String){return (is>>str);} } void main(void) { String Synthese(String s1, String s2); String 신테제, 구테제; cout << "Enter New These:"; cin >> 신테제; cout << "Enter Old These:"; cin >> 구테제; String These = 신테제; String Antithese = 구테제; String Result = Synthese(These, Antithese); Printf("%s",Result); } String Synthese(String s1, String s2) { // define your synthese function... } 설마 코드를 다 읽으시진 않았겠죠? 불교 보드엔 저도 이런 장난치기 싫지만 농담이 들어왔으니 장단이라도 맞춰줘야겠지요? |