Kidand 发表于 2017-9-26 21:12:07


契阔已矣 发表于 2017-9-26 23:51:15

呵呵

zhouyin 发表于 2017-9-27 13:09:25

看看

zzy搞事情 发表于 2017-9-27 13:36:39

0.只认识二进制
1.机器语言
2.编译
3.一个通过 汇编 机器 CPU一个 字节码 解释器cpu
4.能
5.解释器
6. 将字母转换成4位长波短波形式

ColdWinter 发表于 2017-9-27 19:00:04

其实,我是想看看那段莫斯密码是什么意思

achao3333997 发表于 2017-9-27 20:47:03

0:因为计算机只能识别和处理“0”和“1”符号符串组成的代码,运算模式是二进制。
1:机器语言
2:编译
3:编译型语言最终会被翻译成机器代码可以直接被CPU执行,解释型语言不直接编译成机器码源代码转化中间代码,在发送给解释器,最终给CPU执行。
4:能
5:字节码发送给解释器。
6:查表。
7:亲们趁敌人吃饭时发动进攻。

13021075899 发表于 2017-9-28 09:31:12

呵呵

高山流水i 发表于 2017-9-28 16:49:23

S

剑舞梅子酒 发表于 2017-9-28 19:03:13

新人报道

曾是人间一条命 发表于 2017-9-28 19:35:14

123

铜奔马 发表于 2017-9-29 18:58:23

小甲鱼                  

xkcx1988 发表于 2017-9-30 09:22:05

0.计算机只认识0和1
1.机器语言
2.编译
3.编译型语言是把源文件编译成汇编语言,而解释型语言是将源文件生成为字节码,然后再将字节码转为机器能识别的汇编语言
4.不可以
5.解释器统一将源代码解释为字节码
6.同步点与横的组合,组合成不同的字符和数字
7.

炎龙弑皇 发表于 2017-9-30 11:37:48

.......................................

achao3333997 发表于 2017-10-1 11:14:24


#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 findAllCodes(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;
}

从开始到现在 发表于 2017-10-1 13:08:25

{:10_277:}{:10_277:}{:10_277:}

pokerLH 发表于 2017-10-1 14:36:27

11

ss742626 发表于 2017-10-2 02:27:16

QIN MEN CHEN DI REN CHI A DONG JIN GONG

Yo_Will 发表于 2017-10-2 15:56:53

0. 因为计算机只“看得懂”0/1的二进制机器码;
1. CPU唯一认识的语言是机器语言;
2. C语言编写的源代码转换为汇编语言的过程叫编译;
3. 编译型语言和解释型语言的本质区别是编译执行过程是否先后执行;
4. 可以;
5. 解释型编程语言通过解释器实现跨平台;
6. 摩斯密码的原理是编译;
7. 亲们,趁敌人吃饭时发动进攻!

还差几 发表于 2017-10-2 18:16:51

{:7_113:}

dnwz 发表于 2017-10-2 18:59:51

0000000000000000
页: 78 79 80 81 82 83 84 85 86 87 [88] 89 90 91 92 93 94 95 96 97
查看完整版本: S1E2:第一个程序 | 课后测试题及答案