emmmmm
做完嘞
1111111111111111111111111111
我要看答案
本帖最后由 九墨 于 2020-6-22 14:11 编辑
0.只能识别01
1.二进制
2.编译
3.能否跨平台
4.不行
5.将源代码编译成中间代码再通过解释器翻译
6.查指令表
7.亲们趁敌人吃饭时发动进攻
111
1
计算机算的快,但并不聪明
1
1.01
2.机器语言
3.编译
1
ffff
回复可见
看
测试题:
0.因为
1.机器语言
2.编译
3.编译型语言 -> 汇编语言 -> 机器语言 -> CUP执行
解释型语言 -> 解释器 -> CPU执行每次都需要通过解释器解释才能让 CPU 读懂
4.可以的,跨语言
5.
6.就是将密码拿去和对照表进行一个个对照
动动手:
#include <io.h>
#include <direct.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX 256
long total;
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;
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("计算中...\n");
findAllCodes(path);
findALLDirs(path);
printf("目前你总共写了 %ld 行代码! \n\n",total);
system("pause");
return 0;
}
打卡第一天
一直学一直爽
0: 因为计算机只能读懂二进制,bit
1:机器语言
2:编译
3:编译型语言不需要解析器,而解析型语言需要
4:可以
5:由解析器传到cpu执行
6: 对号入座,按照符号找到相对应的单词数字
7:
w
让我康康答案