0.因为计算机只能识别0和1
1.机器码,也叫做机器语言
2.编译
3.编译型语言可直接转化为机器码由CPU直接执行,解释型语言需要转化为字节码再通过解释器逐一翻译给CPU执行
4.可以
5.解释型语言先转化为字节码再通过解释器翻译给CPU执行,有了解释器的存在就能实现跨平台操作
6.将明文对着编码表翻译为“点横”组合的过程,我们称之为编码,反过来,将“点横”组合解密回原文的过程,叫做解码
查看参考答案
第一节课
1.因为计算机只认识0和1
2.汇编语言
3.编译
4.可以
5.不知道
6.不太清楚
7.不到啊
C:\Users\17252\Desktop\VirtualBox_03_04_2023_22_01_08.png
为什么我Windows中用vscod编译运行后输出是乱码格式呀
山上
参考答案
来了来了
顶
1
1
查看参考答案
#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("目前你总共写了%1d行代码!\n\n", total);
system("pause");
return 0;
}
看答案
1
哦豁
鱼C有你更精彩
只懂二进制语言
二进制
编译
能
二进制
亲们趁敌人吃饭进攻