学习学习
为什么我是共写了0行代码?
做完看答案咯
已完成
测试题:
0.因为计算机只认识0和1(问一下0和1 是不是就是指电的开和关)
1.机器语言
2.编译
3.一次性完成和分部完成
4. 可以
5.由解释器翻译给cpu
6.查表
7.qin men chen di ren chi fan shi fa dong ji gong
亲们 乘 敌 人吃饭 时 发 动 进 攻
我不知道怎么发截图 我就直接说 204行
hhh
额么么么么么么
0.只有0和1
1.机器语言
2.编译
3.解释型语言是不是把源代码转换成CPU能直接读懂的语言 而是转换成中间代码
4.能
5.通过转换成中间代码 在经过解释器就能实现
6.查表进行编码和解码
7.亲们 陈敌人吃饭时发动进攻
C:\Users\小华一号\Desktop\FishC\2
图片怎么上传啊,我又两个错误搞不明白
我来看看答案
112
天气不错
.
朕想知道
#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))
{
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.
计算机只识别0,1
1.
汇编语言
2.
编译
3.
编译型语言是翻译给电脑看的,解释性语言是给操作电脑的人看的
4.
可以
5.
6.
7.
kank
1.1
为什么我们说计算机其实是“二傻子”?
答:因为机器只认识机器语言
1.2
CPU 唯一认识的语言是什么语言?、
答:机器语言
1.3. C 语言编写的源代码转换为汇编语言的过程叫什么?
答:编译
1.4 编译型语言和解释型语言的本质区别是什么?
答:解释型需要通过解释器解释,再由CPU读取
编译型语言:经过编译后,会生成二进制的文件,这个二进制文件可以被CPU执行。
解释型语言:解释型语言是直接执行的源码,解释器解释后的源码直接被CPU执行了。
1.5在 Linux 系统上用 C 语言编译的可执行程序,是否能在 Windows 系统上执行?
答:是
解释型编程语言是如何实现跨平台的?
莫斯密码的原理其实是什么?