廖小一学习来的 发表于 2018-5-10 00:23:37

0,二进制
1,机器语言
2,编译
3,不直接编译,通过中间语言
4,不行
5,通过中间语言解释
6,解码
7,qinmenchendirenchifanshifadongjingong!{:10_247:}

lee910316 发表于 2018-5-10 07:45:42

123456789

土豆毛豆豌豆 发表于 2018-5-10 09:32:20

q i nm e nc h e nd ir e nc h if a ns h if ad o n gj i ng o n g

Romeo 发表于 2018-5-10 16:17:49

想知道

zhufangtao 发表于 2018-5-10 23:24:04

Robinluo 发表于 2018-5-11 05:14:27

0、计算机之能识别2进制数,也就是1和0

1、CPU唯一认识的语言是机器语言

2、汇编

3、编译语言最后会变成机器认识的机器码,而解释性语言是通过解释器把字节码等翻译成机器码让机器执行

4、不行,需要通过修改

5、让字节码通过解释器以后让cpu执行

6、通过记录不同声音的长短,然后查表还原出对应的字母,再还原成信息

7、亲们趁敌人吃饭时发动进攻

动动手

子尧 发表于 2018-5-11 13:22:48

{:10_256:}{:10_256:}

我真不是小白 发表于 2018-5-11 16:46:35

RE: S1E2:第一个程序 | 课后测试题及答案

楼主,我动动手最后显示id returned 1 exit status请问怎么回事

skins_dh 发表于 2018-5-12 13:59:43

{:5_91:}

Surprise168 发表于 2018-5-12 23:39:53

已自写

孤独的阿鲁 发表于 2018-5-13 15:35:48

我最吊

xuexinvli 发表于 2018-5-14 09:52:49

1

daibanchedi 发表于 2018-5-14 17:19:32

终于打完了,求答案!

C李小白 发表于 2018-5-14 17:33:57

计算机只能识别0和1

dengyn 发表于 2018-5-14 19:56:43

棒!!

大概可能 发表于 2018-5-15 10:14:22

看看答案

blackC 发表于 2018-5-15 14:33:48

101???

swerf 发表于 2018-5-16 11:20:13

回复看答案

爱因斯坦程序员 发表于 2018-5-16 11:38:42

本帖最后由 爱因斯坦程序员 于 2018-5-19 10:21 编辑

#include <io.h>
#include <direct.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define MAX      256

long total;

int countLines(const char *filenmae);
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 fle:%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("目前你总共写了%1行代码!\n\n", total);
       
{:10_245:}{:10_245:}{:10_245:}

接本而奋斗 发表于 2018-5-16 22:39:07

⊙⊙!
页: 127 128 129 130 131 132 133 134 135 136 [137] 138 139 140 141 142 143 144 145 146
查看完整版本: S1E2:第一个程序 | 课后测试题及答案