printf的另类用法
2012-11-13 15:16
246 查看
真的没想到它竟然可以这么用
注意使用上面的“>”符号,否则导出相应的.h文件,该文件内容是printf函数导出的
具体步骤:
1.创建一个工程,编译上述代码===如Important.exe
2.输入Cmd进入控制台程序
3.进入相应的盘符,否则导出的文件找不到
4.将编译exe拖入控制台中,后加入“>123.h”,同级目录下看到该文件
5.查看文件
// important.cpp : Defines the entry point for the console application. // /************************************************************************/ /* 使用方法:在CMD命令处理行进入debug目录下, /* 执行Important.exe > ***.h 在同目录下生成***.h头文件 /************************************************************************/ #include "stdafx.h" #include <Windows.h> #include <iostream> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { printf("English:{\n"); for (int index = 0; index < 1000; ++index) { printf(" 0x%04x ===== %04d\n", index, index); } printf("}End\n"); return 0; }
注意使用上面的“>”符号,否则导出相应的.h文件,该文件内容是printf函数导出的
具体步骤:
1.创建一个工程,编译上述代码===如Important.exe
2.输入Cmd进入控制台程序
3.进入相应的盘符,否则导出的文件找不到
4.将编译exe拖入控制台中,后加入“>123.h”,同级目录下看到该文件
5.查看文件
相关文章推荐
- printf的另类用法
- scanf和printf的另类用法
- 自己创建包含复杂查询的快速刷新的物化视图(物化视图日志的另类用法)
- printf格式化字符串用法
- Copy命令另类用法
- Java中printf()的用法
- C语言结构体数组同时赋值的另类用法
- GPSTracker的另类用法
- 转:printf()和sprintf()函数的区别和用法
- cmd运行命令的10个另类用法
- 硬盘分区表的修复(Ubuntu安装盘的另类用法)
- Linux shell中的printf的详细用法
- 几个常用I/O函数用法(printf,fprintf等)
- printf特殊用法
- img的onload的另类用法
- printf基本用法
- 深入了解printf的用法和各类变形之区别
- button 另类用法!**添加**
- Remote PC另类用法:远程控制
- 至顶网推荐-Rpm另类用法加固Linux安全