上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 29 下一页
摘要: #include<stdio.h> //联合体union union Data{ int i; float f; char ch; }; int main(int argc, const char *argv[]){ union Data data1; data1.i = 1; data1.f = 阅读全文
posted @ 2021-09-07 10:22 江南王小帅 阅读(342) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<string>struct Student{ int num; char name[20]; char sex; int age; float score; char address[30];}; int main() { // 利用指针对结构体 阅读全文
posted @ 2021-09-07 08:47 江南王小帅 阅读(33) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<string> struct Student{ int num; char name[20]; char sex; int age; float score; char address[30];}; //结构体传带指针的参数 void Print 阅读全文
posted @ 2021-09-07 08:44 江南王小帅 阅读(787) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<string>struct Student{ int num; char name[20]; char sex; int age; float score; char address[30];}; int main() { { struct St 阅读全文
posted @ 2021-09-07 08:42 江南王小帅 阅读(54) 评论(0) 推荐(0)
摘要: bool existsFile(string FileName) { fstream temp(FileName); bool ret = temp.good(); temp.close(); return ret;} 阅读全文
posted @ 2021-08-30 10:02 江南王小帅 阅读(38) 评论(0) 推荐(0)
摘要: //检测当前是否有csv文件生成 string Comd = "if exist .\Log\\" + Barcode + "_report.csv (del .\Log\\" + Barcode + "_report.csv)"; system(Comd.c_str()); 阅读全文
posted @ 2021-08-27 16:14 江南王小帅 阅读(54) 评论(0) 推荐(0)
摘要: #include <iostream> #include <Windows.h> using namespace std; int main() { char MAC[215] = "www.baidu"; char DPK[100] = "ping "; strcat(DPK,MAC); cout 阅读全文
posted @ 2021-08-25 16:50 江南王小帅 阅读(22) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int main() { cout << "hello world!" << endl; system("Telnet 192.168.1.1"); system("pause"); return 0; } 阅读全文
posted @ 2021-08-25 16:50 江南王小帅 阅读(40) 评论(0) 推荐(0)
摘要: #include <fstream>#include <iostream>using namespace std; int main(){ ifstream fin("hello.txt"); if (!fin) { cout << "can not open this file" << endl; 阅读全文
posted @ 2021-08-25 16:48 江南王小帅 阅读(40) 评论(0) 推荐(0)
摘要: *实现替换文件中指定的内容 Created by cryking 2012.02.12 */#include<iostream>#include<fstream>#include<string.h>#include<stdlib.h> #include<windows.h> using namesp 阅读全文
posted @ 2021-08-25 16:45 江南王小帅 阅读(45) 评论(0) 推荐(0)
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 29 下一页