摘要: #include <iostream> using namespace std; int main(){ //声明Bool变量 bool flag1 = false; bool flag2 = true; //输出bool变量 cout << "False:" << false << endl; c 阅读全文
posted @ 2021-06-29 15:55 江南王小帅 阅读(157) 评论(0) 推荐(0)
摘要: #include <iostream> #define PI 3.1416 using namespace std; int main() { int i = 100; #if 1 cout << "i = " << i << endl; #endif #ifdef PI cout << "1 PI 阅读全文
posted @ 2021-06-29 15:42 江南王小帅 阅读(21) 评论(0) 推荐(0)
摘要: // Project18.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include<iostream> using namespace std; int main() { char Tab = '\t'; //水平制表符 cout << 1 << Tab << 阅读全文
posted @ 2021-06-29 15:16 江南王小帅 阅读(180) 评论(0) 推荐(0)
摘要: void ShowChar(string str) { for (int i = 0; i < str.length(); ++i) { printf("str[%d] = %c\n", i + 1,str[i]); }} 阅读全文
posted @ 2021-06-28 09:25 江南王小帅 阅读(88) 评论(0) 推荐(0)
摘要: #pragma once#include <iostream>#include <string>#include <Windows.h>#include <fstream>#include <signal.h>#include <io.h>#include <vector>using namespa 阅读全文
posted @ 2021-06-28 09:15 江南王小帅 阅读(70) 评论(0) 推荐(0)
摘要: void abc() { //config.ini 内容->qsprbin=C:\Program Files (x86)\QUALCOMM\QDART\bin\QSPR.exe ifstream OpenIni; OpenIni.open("config.ini", iosin | iosbinar 阅读全文
posted @ 2021-06-25 16:58 江南王小帅 阅读(72) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include #include <direct.h> #include <io.h> using namespace std; int main() { char MAC[256] = "123"; char file_01[256]; sprintf_s( 阅读全文
posted @ 2021-06-24 09:43 江南王小帅 阅读(89) 评论(0) 推荐(0)
摘要: #include <stdio.h> ##include <stdlib.h> ##include <time.h> int main() { int n = 60; int i = 0; int t; //printf("等待的时间:"); //scanf_s("%d", &n); t = tim 阅读全文
posted @ 2021-06-24 09:39 江南王小帅 阅读(51) 评论(0) 推荐(0)
摘要: #include using namespace std; int main() { ifstream fin("abc.txt"); ofstream fout("xyz.txt",ios::app); char data; if (!fin || !fout) return 0; while ( 阅读全文
posted @ 2021-06-24 09:36 江南王小帅 阅读(329) 评论(0) 推荐(0)
摘要: #include <iostream> #include <sstream> //使用stringstream需要引入这个头文件 using namespace std; //模板函数:将string类型变量转换为常用的数值类型(此方法具有普遍适用性) template <class Type>Ty 阅读全文
posted @ 2021-06-24 09:34 江南王小帅 阅读(249) 评论(0) 推荐(0)