1,机器语言
2,编译
3,不直接编译,通过中间语言
4,不行
5,通过中间语言解释
6,解码
7,qinmenchendirenchifanshifadongjingong!{:10_247:} 123456789 q i nm e nc h e nd ir e nc h if a ns h if ad o n gj i ng o n g 想知道 0、计算机之能识别2进制数,也就是1和0
1、CPU唯一认识的语言是机器语言
2、汇编
3、编译语言最后会变成机器认识的机器码,而解释性语言是通过解释器把字节码等翻译成机器码让机器执行
4、不行,需要通过修改
5、让字节码通过解释器以后让cpu执行
6、通过记录不同声音的长短,然后查表还原出对应的字母,再还原成信息
7、亲们趁敌人吃饭时发动进攻
动动手
{:10_256:}{:10_256:}
RE: S1E2:第一个程序 | 课后测试题及答案
楼主,我动动手最后显示id returned 1 exit status请问怎么回事 {:5_91:} 已自写 我最吊 1 终于打完了,求答案! 计算机只能识别0和1棒!! 看看答案 101??? 回复看答案 本帖最后由 爱因斯坦程序员 于 2018-5-19 10:21 编辑
#include <io.h>
#include <direct.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX 256
long total;
int countLines(const char *filenmae);
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 fle:%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("目前你总共写了%1行代码!\n\n", total);
{:10_245:}{:10_245:}{:10_245:} ⊙⊙!