[C++][1차원 포인터를 활용한 성적관리 프로그램] C++1차원 포인터 1차원 포인터를 활용한 성적관리 프로그램 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 #include using namespace std; typedef struct _student { char name[10]; int kor, eng, math; int total; float avg; } Studen.. C++ 7년 전
[C++][string만들기] C++ 나만의 STRING 만들기 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 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122.. C++ 7년 전
[JAVA][instanceof 보자] the space coding ◈ instanceof instanceof 연산자는 프로그램 실행시 참조 데이터형을 검사하기 위해 사용되는 연산자 입니다. 자세 한건 코드에 주석 달아 났으니 참고 해주시면 되겠습니다.(예제도 있습니다.) 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 package Day7; import java.nio.channels.DatagramChannel; class God{ } class Angel extends God { } class Devil exte.. C++ 7년 전
C++setw()=함수 the space coding setw()=함수 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 setw()=함수 1.setw()는 c++함수이다. 2.setw()#include에 공표되어있는 함수이다. 3.setw()는 데이터가 출력 된 화면을 지정한 수만큼 폭을 정렬해준다. #include #include using namespace std; int main() { char a[16] = { "kimSunYoung" };//배열 //cout.setf(ios::right);//우측 정렬 //cout.setf(ios::left);// 좌측 절렬 cout C++ 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년 전
스 택 Q the space coding ◈스 택 Q 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 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 #include using namespace std; class Me.. C++ 7년 전
◈ 오버로딩이 불가능한 연산자의 종류 the space coding 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 ◈ 오버로딩이 불가능한 연산자의 종류 오버로딩이 불가능한 연산자의 종류 . //맴버 접근자연산자 .* //맴버 포인터 자연산자 :: //범위 지정 연산자 ?: //조건 연산자(3항 연산자) sizeof //바이트 단위 크기 계산 typeid RTTI // 관련 연산자 static_cast //형변환 연산자 dynamic_cast //형변환 연산자 const_cast //형변환 연산자 reinterpret_cast //형변환 연산자 cs C++ 7년 전