摘要: #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)
摘要: #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)