Johny# 发表于 2022-4-11 10:57:57

0.计算机用的是二进制
1.机器语言
2.汇编

166235480 发表于 2022-4-11 13:38:46

看看

晓晓混分日记 发表于 2022-4-11 14:07:20

0. 因为计算机的操作原理是二进制

1. 二进制

2.不知道

3. 不知道

4. 可以

5. 编译器

6. 每个对应不同的字母和数字

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

8.

z147356123 发表于 2022-4-11 14:23:34

不知道哪里有问题。。

zbsw 发表于 2022-4-11 15:21:19

{:5_105:}

张随便 发表于 2022-4-11 15:51:48

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com

大窑不加冰 发表于 2022-4-11 16:22:47

111111111111111111111111111111111111111111111111

燎原zz 发表于 2022-4-11 18:12:08

11

ClaYUnHui 发表于 2022-4-11 19:20:15

1

hyz2472204432 发表于 2022-4-11 20:58:59

呱唧呱唧

广州交通大学 发表于 2022-4-11 22:07:43

123

c大师! 发表于 2022-4-11 22:59:00

#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 findA11Codes(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 findA11Codes(const char *path)
{
    struct_finddata_t fa;
    long handle;
    char thePath,target;

    strcpy(thePath,path);
    if((handle = _findfirst(stract(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;

    struct(thePath,path);
    if((handle = _findfirst(strcat(thePath,"/*"),&fa)) == -1L)
    {
      fprint(stderr,"Thepath %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);
      findA11Codes(thePath);
      findALLDirs(thePath);
    }
}while (_findnext(handle,&fa) == 0);

_findclose(handle);
}

int main()
{
    char path=".";

    printf("计算中...\n");

    findA11Codes(path);
    findALLDirs(path);

    printf("目前你总共写了 %1d 行代码!\n\n",total);
    system("pause");

    return 0;
}

qw23 发表于 2022-4-12 08:34:17

1

YUCHAO17 发表于 2022-4-12 11:15:37

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

turbomin 发表于 2022-4-12 15:50:29

666

zyq1 发表于 2022-4-12 16:17:29

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

三叶叶 发表于 2022-4-12 16:19:46

1

sg1031812108 发表于 2022-4-12 18:45:51

111

sg1031812108 发表于 2022-4-12 18:59:33

windows 复制运行是错的呀.俺不懂

AHACLIMB 发表于 2022-4-12 20:11:07

66666
页: 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 [1615] 1616 1617 1618 1619 1620 1621 1622 1623 1624
查看完整版本: S1E2:第一个程序 | 课后测试题及答案