只认识0,1,二进制,编译,要不要编译,不能直接运行
我要看答案hhhh
前面的空格可以少点多点吗
因为计算机只能识别机器语言
机器码
编译
是否直接编译
能
解释器
转化
qimenchendirenchifanshifadongjingong
????????
;‘
S1E2:第一个程序| 课后测试题及答案
我太难了
小甲鱼nb
0.计算机智能识别0和11.机器码2.编译3.前者把源代码编译为机器代码,后者把代码转换为中间代码4.不可以5.用解释型语言6.编码和解码 7.亲们,趁敌人吃饭的时候发动进攻
看看答案
#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;
}
{:7_140:}
SHA
查看参考答案
查看答案
1
0.只能识别二进制1和0
1.机器语言
2.编译
3.编译语言是转换成汇编语言然后转换机器语言,解释语言需要解释器
4.可以
5.通过解释器
6.通过查找指令表转换成语言
{:10_261:}{:10_261:}{:10_261:}{:10_261:}{:10_261:}
答案