[HTML][기능 넣어주기] the space coding HTML 결과 코드에 주석 달아 놨으니까 확인해 주시면 되겠습니다. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 String function previewString(){ //id를 불러와서 인식 var objResult = document.getElementById("result.. HTML 7년 전
[JAVA][래퍼클래스] the space coding wrapper class 자바는 기본형(primitive type), 참조형(reference type) 으로 나누어 집니다.. 그래서 오늘은 참조형(reference type) wrapper class에 대하여 정리를 해볼까 한다. 기본형 래퍼클래스 생정자 boolean Boolean Boolean(boolean value) Boolean(String s) char Character Character(char value) byte Byte Byte(byte value) Byte(String s) short Short Short(short value) Short(String s) int Integer Integer(int value) Integer(String s) long.. JAVA 7년 전
[C++]깊은 대입연산자함수 the space coding [C++]깊은 대입연산자함수 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 #include using namespace std; class A { int *p; public: A() { p=new int; *p=0; } ~A(){ delete p; } A(const A &aa) { p=new int; *p = *aa.p; } A& operator=(const A &aa) { if(this == &aa) return *t.. C++ 7년 전
[C++] operator 함수 the space coding [C++] operator 함수 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 #include using namespace std; class A { int a; public: A(int a = 100000){ this->a = a; } void setA(int a){ this->a =a ;} int getA()const{ return a; } friend ostream& operator C++ 7년 전