#include
#include
using namespace std;
extern "C" int ConvertComment(FILE *inputfile, FILE *outputfile);
#define UL unsigned long
typedef enum
{
NO_COMMENT_STATE,
C_COMMENT_STATE,
CPP_COMMENT_ST...
分类:
其他好文 时间:
2015-06-19 15:25:23
阅读次数:
130
利用有限状态机实现输入文件中代码不同状态的转换,将结果显示在输出文件中#include
using namespace std;
extern "C" int ConvertComment(FILE *inputfile, FILE *outputfile);
int main()
{ /*定义输入和输出文件*/ FILE *fpIn = fopen("...
分类:
编程语言 时间:
2015-06-15 14:42:52
阅读次数:
133
jQueryForm表单美化插件jqTransform,非常实用的jQuery插件,自动把你整个Form表单进行美化处理,包括SELECT下拉框、文本框、单癣复选框、按钮等,当然不支持inputfile文件选择框,这个可以参照我们之前的inputfile选择框美化教程进行改造,在浏览器兼容方面,兼容ie6+,safari2..
分类:
Web程序 时间:
2015-04-12 19:28:49
阅读次数:
144
class InputFile { private BufferedReader in ; // constructor InputFile(String fname) throws Exception{ try { in = new BufferedReader(new FileRead...
分类:
其他好文 时间:
2015-03-17 00:43:29
阅读次数:
145
Assume ifle and ofile is the string object storing the names of input and output files' names.string ifile = "inputFile.txt";string ofile = "outputFil...
分类:
其他好文 时间:
2015-01-27 23:14:54
阅读次数:
343
IntelliSense: incomplete type is not allowedifstream inputFile;Need to add this:#include
分类:
其他好文 时间:
2014-12-30 18:36:48
阅读次数:
682
将非Unicode编码字符转化为Unicode编码的字符,即国际化。
语法:native2ascii [options] [inputfile [outputfile]]
描述:如果outputfile没有指定,标准输出将用于结果输出;如果inputfile没有指定,标准输入设备将用于输入。
参数
-reverse
使用该参数将Unicode编码字符转换为本地编码...
分类:
编程语言 时间:
2014-12-13 17:56:12
阅读次数:
414
效果:/*inputfile美化及上传本地预览,兼容IE6-8,FIrefox,Chrome(需在服务端,本地无效)*/inputfile美化+添加图片add.png*******************************************************************...
分类:
Web程序 时间:
2014-12-03 12:06:09
阅读次数:
217
本文转载:http://www.cnblogs.com/downmoon/archive/2009/02/05/1384931.html1、AspnetUpload 地址:http://www.aspnetupload.net/ 最早接触的上传控件。带进度条,能与系统自带的InputFile控件共用...
分类:
Web程序 时间:
2014-11-25 00:01:13
阅读次数:
232
import sys脚本名:sys.argv[0]参数1:sys.argv[1]参数2:sys.argv[2]命令行选项:1.通过-i -o选项来区别参数是输入文件还是输出文件.>>> python convert.py -i inputfile -o outputfile2.当不知道convert...
分类:
编程语言 时间:
2014-09-17 23:13:22
阅读次数:
233