小秃驴 发表于 2022-7-9 03:05:47

看看答案

AS凌风 发表于 2022-7-9 09:37:17

{:10_254:}

上官秀 发表于 2022-7-9 11:08:34

1

小茶dream 发表于 2022-7-9 11:31:41

本帖最后由 小茶dream 于 2022-7-9 11:33 编辑

10kb???

JoeyOL 发表于 2022-7-9 11:35:00

ok

李小白洋 发表于 2022-7-9 11:35:21

"D:\acer\Pictures\Saved Pictures\屏幕截图 2022-07-09 112942.png"

Cocopolo 发表于 2022-7-9 11:47:51

想知道

Azad_biu 发表于 2022-7-9 12:56:21

林c 发表于 2022-7-9 13:12:12

e

FatherAdam 发表于 2022-7-9 13:50:31

1111

CR7Goat 发表于 2022-7-9 14:10:15

1

AncherEven 发表于 2022-7-9 15:06:09

..

IcanCU 发表于 2022-7-9 15:35:56

0.仅识别0和1
1.机器语言
2.编译
3.直接转换/间接转换
4.否
5.通过不同平台的解释器
6.不同符号对应不同的字母、数字
7.qin men chen di ren chi fan shi fa dong jin gong
亲们趁敌人吃饭时发动进攻

sweetcwj 发表于 2022-7-9 15:58:28

{:5_95:}

paihuaiqwq 发表于 2022-7-9 16:20:41

芜湖

阿梁 发表于 2022-7-9 16:26:48

0.计算机cpu只识二进制的0于1
1.机器语言
2.编译
3.是否有中间代码产生需要翻译才得到cpu的提取
4.不能
5.把字节码发送到不同平台的解释器
6.查表解码
7.亲们,趁敌人吃饭始发东进攻

yydsWarma 发表于 2022-7-9 18:07:56

2022年7月9日打卡

木子临风 发表于 2022-7-9 20:02:21

1

Maerx 发表于 2022-7-9 21:01:24

我这个 抄下来了但是运行不了{:10_269:}{:10_269:}

litianshu 发表于 2022-7-9 22:55:11


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


#define MAX      256

long total;

int countlines(const char *dilename);
void findAllCodes(const char*path);
void findALLFiles(const char*path);

int countlines(const *dilename)
{
        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("¼ÆËãÖD...\n");
       
        findAllCodes(path);
        findALLDirs(path);
       
        printf("ĿǰÄã×ü12D′áË%ld DD′úÂ룡\n\n",total);
        system("pause");
       
        retuen 0;
}
页: 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 [1668] 1669 1670 1671 1672 1673 1674 1675 1676 1677
查看完整版本: S1E2:第一个程序 | 课后测试题及答案