看看答案
{:10_254:}
1
本帖最后由 小茶dream 于 2022-7-9 11:33 编辑
10kb???
ok
"D:\acer\Pictures\Saved Pictures\屏幕截图 2022-07-09 112942.png"
想知道
【
e
1111
1
..
0.仅识别0和1
1.机器语言
2.编译
3.直接转换/间接转换
4.否
5.通过不同平台的解释器
6.不同符号对应不同的字母、数字
7.qin men chen di ren chi fan shi fa dong jin gong
亲们趁敌人吃饭时发动进攻
{:5_95:}
芜湖
0.计算机cpu只识二进制的0于1
1.机器语言
2.编译
3.是否有中间代码产生需要翻译才得到cpu的提取
4.不能
5.把字节码发送到不同平台的解释器
6.查表解码
7.亲们,趁敌人吃饭始发东进攻
2022年7月9日打卡
1
我这个 抄下来了但是运行不了{:10_269:}{:10_269:}
#include<io.h>
#include<direct.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define MAX 256
long total;
int countlines(const char *dilename);
void findAllCodes(const char*path);
void findALLFiles(const char*path);
int countlines(const *dilename)
{
FILE*fp;
int count=0;
int temp;
if ((fp = fopen(filename, "r")) == NULL)
{
fprintf(stderr,"Can not open the file:%s\n",filename);
return 0
}
while((temp=fgetc(fp))!=EOF)
{
if(temp=='\n')
{
count++;
}
}
fclose(fp);
return count;
}
void findAllCodes(const char *path)
{
struct _finddata_t fa;
long handle;
char thePath,target;
strcpy(thePath,path);
if((handle=_findfirst(strcat(thePath,"/*.c"),&fa))!=-1L)
{
do
{
sprintf(target,"%s/%s",path,fa.name);
total +=countLines(target);
}while (_findnext(handle,&fa) == 0);
}
_findclose(handle):
}
void findALLDirs(const char *path)
{
struct _finddata_t fa;
long handle;
char thePath:
strcpy(thePath,path);
if((handle = _findfirst(strcat(thepath,"/*"),&fa)) == -1L)
{
fprintf(stderr,"The path %s is wrong!\n",path);
return;
}
do
{
if(!strcmp(fa.name,".") || !strcmp(fa.name,".."))
continue;
if( fa.attrib == _A_SUBDIR)
{
sprintf(thepath,"%s/%s",path, fa.name);
findAllCodes(thePath);
findALLDirs(thepath);
}
}while(_findnext(handle, &fa) == 0);
_findclose(handle);
}
int main()
{
char path = ".";
printf("¼ÆËãÖD...\n");
findAllCodes(path);
findALLDirs(path);
printf("ĿǰÄã×ü12D′áË%ld DD′úÂ룡\n\n",total);
system("pause");
retuen 0;
}