WTPursuit
发表于 2018-3-11 16:22:01
0.计算机只认识0/1二进制代码
1.机器语言
2.编译
3.
4.能
5.
6.
7.
protoy
发表于 2018-3-11 16:26:27
0.只能识别二进制0、1
1.机器语言
2.编译
3.编译型语言一次性编译好,解释性语言边编译边执行。
4.可以
5.由解释器交给CPU执行
6.过不同的排列顺序来表达不同的英文字母、数字和标点符号
7.T.T赶着面试补课不做了
octobersky
发表于 2018-3-11 16:37:16
0.因为计算机并不能识别人类的语言,只懂二进制的0和1;
1. 二进制;
2.编译;
3.是否直接编译;
4.不能;
5.将源代码转化成中间代码,然后发送给解释器,由解释器逐句翻译给CPU来执行
6.把代码转化成语句
7.qinmenchendirenchifpshifadjingong;
sugar/..
发表于 2018-3-11 20:28:49
第一个程序
lyt1238547
发表于 2018-3-11 23:46:48
0.计算机只懂 0 和1 的二进制码 的机器语言
1.机器语言
2.编译
3.编译是指: 把源代码编译成汇编再到机器语言。是计算机可以直接执行。
解释型是指: 读取一条源代码有解释器 解释成机器码,有计算机执行。(可跨平台)
4. 不可以
5.读取代码由解释器根据不同的系统,解释成不同的机器语言。
6.由不同的数据产生不同的电波(信号),在编译成能看懂的语言。
TryforC
发表于 2018-3-11 23:55:13
1111111111111111111111111111111
hs.xx
发表于 2018-3-12 00:30:16
HEHEDA GAILEHENDUOCI
小白到极客
发表于 2018-3-12 09:57:39
tema de cuowu yanjingteng
stuian
发表于 2018-3-12 14:31:03
测试题:
0.为什么我们说计算机其实是“二傻子”
> 因为计算机只看得懂0和1
1.cpu唯一认识的语言是机器语言
2.c语言编写的源代码转换成汇编语言的过程叫做编译
3.编译型语言和解释型语言的本质区别是前者通过编译直接转成成机器语言;后者需要通过中间介质解释器,再由解释器转换成机器语言。
4.在Linux系统上用c语言编译的可执行程序,也能在windows系统上执行。
5.解释型编程语言是如何实现跨平台的?
6.莫斯密码的原理其实是将字母和数字用点和横线两种符号的不同组合来表示。
动手截图:
https://github.com/stuian/C/blob/master/pictures/c2.png
大可爱
发表于 2018-3-12 15:38:37
检查答案啦
xiaoyuzly
发表于 2018-3-12 16:08:08
Caroline26
发表于 2018-3-12 16:34:58
1
xuexiba
发表于 2018-3-12 17:33:47
看看
a224969
发表于 2018-3-12 20:01:41
答案
Bezaleel
发表于 2018-3-12 21:07:37
0. 只能识别2进制数。
1. 机器语言。
2. 编译。
3. 执行过程不同。
4. 不能。
5. 编码与编译。
6. 通过将字节码通过不同解释器实现不同平台的执行。
7. 亲们 趁敌人吃饭时发动进攻。
锦鲤鱼
发表于 2018-3-12 21:15:19
#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(_findnex (handle,&fa) == 0);
}
_findclose(handle);
}
void findALLDirs(const char *path)
{
struct _finddata 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,".") || !stcmp(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;
}
ike20180307
发表于 2018-3-12 22:27:07
亲们趁敌人吃饭时发动进攻
crjerry
发表于 2018-3-13 16:47:59
看看
怜夏
发表于 2018-3-13 16:53:44
看答案啦
C小白C
发表于 2018-3-13 19:23:34
成功复制出查询代码程序,开心