Notice
Recent Posts
Recent Comments
250x250
목록주식게임 (1)
Creative Code
[c++]주식 자동 거래
#include #include #include #include #include using namespace std; int main() { int buy = 0; //주식 구매수량 long long buy_price = 0; // 구매한 주식의 가치 long long sum; //현금보유량 + 주식의가치(총가치) srand((unsigned int)time(NULL)); cout > Money; long long save = Money; bool check = false; cout > before_price; sum = Money + (long long)buy * (long long)(buy_price); cout
혼자 만든 Code
2022. 7. 3. 21:43