上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 29 下一页
摘要: #include <iostream>#include <fstream>#include <sstream>using namespace std; int main() { ifstream in("a.txt"); // 打开foo.txt stringstream ss; ss << in. 阅读全文
posted @ 2021-08-25 13:51 江南王小帅 阅读(99) 评论(0) 推荐(0)
摘要: string CopyCMD = "copy MAC.bin "; char CMD_CHAR[100]; CopyCMD.append(Mac + ".bin"); // s1 = "123abc" strcpy_s(CMD_CHAR, CopyCMD.c_str());//strncpy(buf 阅读全文
posted @ 2021-08-20 16:21 江南王小帅 阅读(190) 评论(0) 推荐(0)
摘要: #include<cstring>#include<cstdio>#include<iostream>#include <atlstr.h>using namespace std;int main(){FILE *fp_statfile = fopen("123.txt", "a+");CStrin 阅读全文
posted @ 2021-08-09 12:02 江南王小帅 阅读(450) 评论(0) 推荐(0)
摘要: Dim fso, regex, strSet fso = CreateObject("Scripting.FileSystemObject")Set regex = CreateObject("VBScript.RegExp")str = fso.OpenTextFile("XML_Atmel_SN 阅读全文
posted @ 2021-08-04 15:21 江南王小帅 阅读(332) 评论(0) 推荐(0)
摘要: #ifndef GLOBAL_H_CSX #define GLOBAL_H_CSX #include <string> #include <QString> using namespace std; extern QString g_layout; inline QString s2q(const 阅读全文
posted @ 2021-07-23 15:06 江南王小帅 阅读(400) 评论(0) 推荐(0)
摘要: //mainwindow.cpp文件,主界面实现 #include "mainwindow.h" #include "ui_mainwindow.h" #include <qdebug.h> #include <qprocess.h> MainWindowMainWindow(QWidget *pa 阅读全文
posted @ 2021-07-12 11:45 江南王小帅 阅读(694) 评论(0) 推荐(0)
摘要: Qt 官方开发环境使用的动态链接库方式,在发布生成的exe程序时,需要复制一大堆 dll,如果自己去复制dll,很可能丢三落四,导致exe在别的电脑里无法正常运行。因此 Qt 官方开发环境里自带了一个工具:windeployqt.exe。 集成开发环境 QtCreator 目前生成图形界面程序 ex 阅读全文
posted @ 2021-07-09 13:25 江南王小帅 阅读(1676) 评论(0) 推荐(1)
摘要: #include<cstring> #include<cstdio> #include<iostream> #include <atlstr.h> using namespace std; int main() { FILE *fp_statfile = fopen("123.txt", "a+") 阅读全文
posted @ 2021-07-08 09:56 江南王小帅 阅读(2025) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; int main() { //声明指针数组 const char *colors[] = { "red","blue","yellow","green" }; //指向指针的指针变量 const char **pt; / 阅读全文
posted @ 2021-07-06 14:29 江南王小帅 阅读(121) 评论(0) 推荐(0)
摘要: C、C++中没有提供直接获取数组长度的函数,对于存放字符串的字符数组提供了一个strlen函数获取长度,那么对于其他类型的数组如何获取他们的长度呢?其中一种方法是使用sizeof(array) / sizeof(array[0]), 在C语言中习惯上在使用时都把它定义成一个宏,比如#define G 阅读全文
posted @ 2021-07-06 14:17 江南王小帅 阅读(6509) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 29 下一页