목록C++ (3)
Dailelog

#include #include class GravitySource { sf::Vector2f pos; float strength; sf::CircleShape s; public: GravitySource(float pos_x, float pos_y, float strength) { pos.x = pos_x; pos.y = pos_y; this->strength = strength; s.setPosition(pos); s.setFillColor(sf::Color::Red); s.setRadius(15); //반지름 } void render(sf::RenderWindow& wind) { wind.draw(s); } sf::Vector2f get_pos() { return pos; } float get_st..

#include #include using namespace std; const int NAME_LEN = 20; void ShowMenu(); //메뉴출력 void MakeAccount(); //계좌개설을 위한 함수 void DepositMoney(); //입금 void WithdrawMoney(); //출금 void ShowAllAccInfo(); //잔액조회 enum {MAKE = 1, DEPOSIT, WITHDRAW, INQUIRE, EXIT}; typedef struct { int accID; //계좌 번호 int balance; //잔액 char cusName[NAME_LEN]; //고객 이름 }Account; Account accArr[100]; //Account 저장을 위한 배열 int a..