Technote87 [C++] & 연산자의 구분 #include int main(void) { int val = 10; int *pVal = &val; // 주소 값을 얻기 위해 & 연산자 사용 int &rVal = val; // 레퍼런스 선언을 위해 & 연산자 사용 return 0 ; } 2009. 9. 16. [C++] Bool 형을 이용한 True 와 False #include using std::cin; using std::cout; using std::endl; bool ISPositive(int i) { if(i 2009. 9. 16. [C++] Banking System #include using namespace::std; const int NAME_LEN = 20; typedef struct _Account { int id; int balance; char name[NAME_LEN]; }Account; Account pArray[100]; int index=0; void PrintMenu(); void MakeAccount(); void Deposit(); void Withdraw(); void Inquire(); enum{MAKE=1,DEPOSIT, WITHDRAW, INQUIRE,EXIT}; int main(void) { int choice; while(1) { PrintMenu(); cout choice; switch(choice) { case MAKE: Mak.. 2009. 9. 16. [C++] using namespace std; #include using namespace std; int main(void) { cout 2009. 9. 16. 이전 1 ··· 5 6 7 8 9 10 11 ··· 22 다음