
c++
六翼炽天使vibi
幻想不动脑也能想出题解!
展开
-
c++读一个txt文件
void readFile() { ifstream myfile("sample.txt"); string temp; if (!myfile.is_open()) { cout << "未成功打开文件" << endl; } while(getline(myfile,temp)) { cout<< temp; } myfile.close();原创 2020-05-28 23:57:38 · 146 阅读 · 0 评论 -
逆波澜式计算器
栈的应用:逆波澜式计算器 // Section 2.3 //03.2 计算器 #include<iostream> #include"Stack_double.cpp" using namespace std; char get_command() { char command; bool waiting = true; cout << "Select command and press <Enter>:"; while (waiting)原创 2020-05-27 00:02:37 · 145 阅读 · 0 评论 -
c++中string转成int
加入头文件 #include<stdlib.h> string astring; int INT; INT =atoi(astring.c_str());原创 2020-05-26 21:58:28 · 325 阅读 · 0 评论