본문 바로가기

Programming

(126)
[C++] 동적 바인딩의 순수 추상 함수(Stack, Queue Memory 스택, 큐 메모리) 동적바인딩 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 #include "stdafx.h" #include using namespace std; /* 동적 메모리 이용 Stack/Queue stack 특성 filo = 퍼스트 ,인 ,라스트, 아웃..
[C++]접근지정자 public, protected, private 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 123 124 125 126 12..
[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 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 123 124 125 126 12..
[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 61 62 63 64 65 66 67 68 69 70 71 72 73 74 #include using namespace std; void input(char *name, int *score, int num); void oper(int *score, int num, float *avr); void output(char *name, int *score, int num, float *avr); int main..
[C++]setw란??? setW란? 출력 작업에 사용할 필드 너비를 설정 회원처럼 행동 함폭(입력 스트림 또는 출력 스트림에 삽입 / 추출 할 수 있음) 조작자로 삽입 / 추출되는 스트림에서 n 을 인수로 사용하여 호출. 이 조작자는 헤더에 선언 // setw example #include // std::cout, std::endl #include // std::setw int main () { std::cout
[JAVA, 자바]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 package pack02; import java.util.*; public class StringCalculator { public static void main(String[] args) { LinkedList numList = new LinkedList(); //숫자관련 LinkedList opList = new LinkedList(); //연산자 관련 Scanner sc = new Scanner(System.in); String s = sc.nextLine()..