Description: 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 Search:
File list (Check if you may need any files):
to_c_style_comment.tar