数据调试
来源:互联网 发布:网络发包工具 编辑:程序博客网 时间:2024/05/29 10:57
#include<iostream>using namespace std;int main(int argc, char** argv){int NumArgs = (argc - 1) / 2;int m;int n;if (argc < 14){for (int i = 0; i < NumArgs; i++){if (strcmp(argv[2 * i + 1], "-N") == 0){n = atoi(argv[2 * i + 2]);}else if (strcmp(argv[2 * i + 1], "-M") == 0){m = atoi(argv[2 * i + 2]);}else{cout << "Error" << endl;}}}cout << m << endl;cout << n << endl; system("pause");}#include<iostream>#include<stdio.h>using namespace std;static struct{ int m; int n;}profile;static bool read_profile(void){ int ch; FILE *fin = fopen("profile1.txt", "r"); /*Read Profile*/ while ((ch = getc(fin)) != ':') {} fscanf(fin, "%d", &profile.m);//1 while ((ch = getc(fin)) != ':') {} fscanf(fin, "%d", &profile.n);//2 fclose(fin); return true;}int main(){ read_profile(); cout << profile.m << endl; cout << profile.n << endl; system("pause");}
阅读全文
0 0
- 调试数据
- 数据调试
- 数据断点调试
- 数据断点调试技巧
- 调试json数据
- 网络数据获取 调试
- ObjectBox[十三] 数据调试
- 调试实战之数据断点
- 输出调试数据 代码段
- GDB调试时查看数据
- App调试:页面、数据接口
- stm32调试-- 获取内存数据
- stm32调试-- 获取内存数据
- 内存变量被覆盖的调试(数据断点调试)
- SIM300用UDP发送数据调试小结
- 利用数据断点进行程序调试
- 利用数据断点进行程序调试
- silverlight 无法启动调试 数据无效
- Python 3.x MySQL 功能封装
- python中经典错误
- openlayer3 判断一个点是否在闭合图形里
- S3C2440存储控制器和MMU浅析
- Android存储系统
- 数据调试
- 仿网易新闻客户端(一)
- 迭代升级的H5游戏
- codingcat 工作记录
- REDIS与MEMCACHED、mongoDB 的区别 对比
- Python 爬虫IP代理
- 开发者所需要知道的 iOS 11 SDK 新特性
- unity IK初步应用 让游戏物体眼镜对准摄像头
- Scrapy之settings设置篇