
C++
Att1cusss
被子里面喊冲锋!!!
展开
-
c++文件读取一行数据
#include<iostream> #include<fstream> using namespace std; int main() { ifstream fin("retail.dat"); string temp; char buf[1000]; //用于截取子字符串的指针 char* p; //缓冲区读入一行 while (fin.getline(buf, 1000)) { //第一次将缓冲区中的字符串用空格分隔,并返回第一个子串 p = strtok原创 2021-04-12 10:01:34 · 3951 阅读 · 2 评论 -
C++表格类
控制台打表输出原创 2021-04-01 16:06:31 · 3318 阅读 · 1 评论