목록BCA (78)
VioletaBabel
12345678910111213class Unit{ public: virtual void a() {cout
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138//CNumber.cpp#include "CNumber.h" CNumber::CNumber(){} CNumber::~CNumber(){} CNumber CNumber..
수업 전 몸풀기문제 : 가위바위보 하나 빼기1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192#include#include#includeusing namespace std;void out(int i);void check(int c, int p);int main(){//0 = 가위, 1 = 바위, 2 = 보, 가위바위보 하나 빼기 게임 srand(time(NULL)); int iP[2], iC[2], com = -1, think[3];//iP는 플..
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182#includeusing namespace std;struct Tree{ int value; Tree* pL; Tree* pR;};void Add(Tree* pNode, Tree* pNew);void Pr(Tree* pD);void Quit(Tree* pD);int main(){//이진트리(입력과 출력만 만들기) // pNewData는 트리의 추가될 노드, pHead는 트리의 헤드 노드 Tree *pNewData, *pHead = ..
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798#includeusing namespace std;struct Data{ int value; Data* pNext;};int main(){ Data *pHead = NULL, *pTemp, *pTemp2; int com = 0; bool in = 0; while (1) { cout com; if (com == 1) { cout com; Data *pNewData = new D..
123456789#includeusing namespace std;int main(){ //변수의 메모리 주소 출력 int a; a = 5; cout
12345678910#includeusing namespace std;int main(){ //a와 b를 입력받아 b줄에 a만큼 *을 출력 int a, b; cin >> a >> b; for (int i = 0; i++