答案
吃饭,睡觉,看小甲鱼^o^
对答案
求答案
0.只认识二进制
0.只认识二进制
1.机器语言
0.只认识二进制
1.机器语言
2.编译
3.一个是直接可执行,一个是交给解释器
4.可以
5.这个忘记了
6.查表
kk
11111
答案
知道
0.因为它只懂0和1;
1.机器语言;
2.编译;
3.编译型语言转换为机器码,解释型语言转换为中间代码,较编译型语言效率更低,但可实现跨平台的特性;
4.可以;
5.解释型编译语言通过将源代码转换为中间代码的方式来实现跨平台;
6.查表;
7.亲们趁敌人吃饭时发动进攻;
感谢小甲鱼
#include <io.h>
#include <direct.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX 256
longtotal;
int countLines(const char *filename);
void findAllCodes(const char *path);
void findALLFiles(const char *path);
int countLines(const char *filename)
{
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;
longhandle;
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("计算中...\n");
findAllCodes(path);
findALLDirs(path);
printf("目前你总共写了%1d行代码!\n\n", total);
system("pause");
return 0;
}
1
二进制、机器语言(代码),编译、解释型语言需要解释器效率较低、能(c语言可移植性高)
运用解释器、解译、
1.因为计算机只认得0和1
2.机器语言
3.编译
4.可以
5.通过编译器转换语言后执行
6.通过两种不同的时间长度表达,由已经做好的密码表一一对应
7.I love fishc
啊啊啊
{:5_90:}
666