{:5_103:}
0.计算机只认识0和1,
1.机器语言,
2.编译,
3.一个是大锅饭,一个是火锅,
4.能
5.解释型语言依靠解释器,跨平台性好。
6.摩斯密码由点和横线组成,点与横线的不同组合代表一个意思,
7.亲们趁敌人吃饭时发动进攻(Q I N M.E N C H E N D I R E N C.H I F A N S H I F A D O N G J I N G O N G)
111
感谢楼主无私奉献
1
害
{:5_102:}
666
1
0. 为什么我们说计算机其实是“二傻子”?
只能”理解“符合规则的语言
1. CPU 唯一认识的语言是什么语言?
机器码,也就是二进制指令
2. C 语言编写的源代码转换为汇编语言的过程叫什么?
编译?
3. 编译型语言和解释型语言的本质区别是什么?
是否有一个单独的编译过程?
4. 在 Linux 系统上用 C 语言编译的可执行程序,是否能在 Windows 系统上执行?
不能,因为编译的目标文件是针对当前该平台的
5. 解释型编程语言是如何实现跨平台的?
源文件可以在不同平台上编译
6. 莫斯密码的原理其实是什么?
符号对应及替换
7. 视频中小甲鱼“故弄玄虚”的那段密文还原后是什么内容(中文)?
不知道。。。
看个答案
希望能坚持下去
#include<stdio.h>
#include<io.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 *path);
{
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;
charthePath, target;
strcpy(thePath, path);
if (handle = _findfirst(strcat(thePath, "/*.c"), &fa)) != -1L)
{
do
{
sprint(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 (_findnest(handle, &fa) == 0);
_findclose(handle);
}
int main()
{
char path = ".";
printf("计算中。。\n");
findAllCodes(path);
findALLDirs(path);
prinft("目前你总共写出了%1d行代码!\n\n", total);
stystem("pause");
return 0;
}
来了来了
.
windows的那个动动手为什么第一行要空开
1
6666666666
{:10_256:}
希望人没事- - - - - -