有一点错,自己想办法改!
//**********************************************************************************************
#include <stdio.h>
#include<windows.h>
#include <mmsystem.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
//**********************************************************************************************
void main()
{
FILE fp;
char filename[50],buf[1024],file[1024],function_start[1024],function_end[1024],a[255],tem=NULL;
int i,j,k,t=0,max=0,flag=0,tag1=0,tag2=0,linelength;
int cometline=0,blankline=0,line,cometBegin,func_number=0,arr[255]; //注释、空行、总行、函数行
system(“color f0”);
printf(“请输入你要验证的文件:”);
scanf("%s",&filename);
if ((fp = fopen(filename,“r”)) == NULL ) //打开文件
{
printf(“嘿嘿,打不开这个文件,你莫不是给了个假文件…\
C语言:源程序简单分析器-代码
最新推荐文章于 2023-01-03 21:44:08 发布
//**********************************************************************************************#include <stdio.h>#include<windows.h>#include <mmsystem.h>#include <stdlib.h>...
摘要由CSDN通过智能技术生成