- scintillamfc 一个可以提供语法高亮显示的编辑器
- daima 用最小生成树的方法来求解最短的送货路径
- TrafficCommand 建立交通网络图的存储结构 解决单源最短路径问题(Dijkstra算法) 实现两个城市之间的最短路径的问题 用MFC实现可视化菜单界面
- GUILayout_v1p13 This toolbox provides tools to create sophisticated MATLAB graphical user interfaces that resize gracefully. The classes supplied can be used in combination to produce virtually any user interface layout.
- mianshi C语言工程师面试总结
- 蓝色的51无忧英语招聘平台网站模板
文件名称:to_c_style_comment.tar
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.38kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
将C++的单行注释改成C语言的注释.
在Windows 下用VC2005环境写程序的时候, 有C语言写的程序, 但是用了C++的注释, 也能成功编译连接运行. 但发现也有很多编译器不支持C++的单行注释. 又不想手机地改所有的代码. 所以写了一个程序来自动将C++的单行注释替换成C语言的注释格式.
压缩包中有两个文件. 其中 to_c_style_comment.c 中的我程序文件.
cpptest.c 只是一个测试文件. 是一个包含C++单行注释的c源程序, 仅供测试用.
编译方法:
gcc -o to_c_style_comment to_c_style_comment.c
测试方法:
./to_c_style_comment cpptest.c
或
./to_c_style_comment cpptest.c outputfile
-This program is to convert C++ one-line comment into a C language style comment. Under Windows, I was coding under the VC2005 environmental in C , but I inserted so many C++ one-line comments in my source code, (It works under such environment). But I found that there are many compilers does not support C++, a single line comment now. And I don t want to correct my code by hand, so wrote a program replace the C++ one-line comments with C-style comments. The compressed package consists with two files: to_c_style_comment.c is my program files. cpptest.c just a test file.( for test purposes only).
gcc-o to_c_style_comment to_c_style_comment.c test method:./to_c_style_comment cpptest.c or./to_c_style_comment cpptest.c outputfile
在Windows 下用VC2005环境写程序的时候, 有C语言写的程序, 但是用了C++的注释, 也能成功编译连接运行. 但发现也有很多编译器不支持C++的单行注释. 又不想手机地改所有的代码. 所以写了一个程序来自动将C++的单行注释替换成C语言的注释格式.
压缩包中有两个文件. 其中 to_c_style_comment.c 中的我程序文件.
cpptest.c 只是一个测试文件. 是一个包含C++单行注释的c源程序, 仅供测试用.
编译方法:
gcc -o to_c_style_comment to_c_style_comment.c
测试方法:
./to_c_style_comment cpptest.c
或
./to_c_style_comment cpptest.c outputfile
-This program is to convert C++ one-line comment into a C language style comment. Under Windows, I was coding under the VC2005 environmental in C , but I inserted so many C++ one-line comments in my source code, (It works under such environment). But I found that there are many compilers does not support C++, a single line comment now. And I don t want to correct my code by hand, so wrote a program replace the C++ one-line comments with C-style comments. The compressed package consists with two files: to_c_style_comment.c is my program files. cpptest.c just a test file.( for test purposes only).
gcc-o to_c_style_comment to_c_style_comment.c test method:./to_c_style_comment cpptest.c or./to_c_style_comment cpptest.c outputfile
(系统自动生成,下载前可以参看下载内容)
下载文件列表
to_c_style_comment/
to_c_style_comment/to_c_style_comment.c
to_c_style_comment/cpptest.c
to_c_style_comment/to_c_style_comment.c
to_c_style_comment/cpptest.c
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
