猫史档案馆


一只小温迪

一只小温迪

Lv.1

获赞:3收藏:0浏览:9作品收藏:0

签名:猫站已死 CCW 勿念

回复帖子评论
上一页1 页 / 共 1下一页

【海龟编辑器】意见反馈信箱(长期有效) 中回复

请问一下,能不能更新一下字体大小(可调节)呢?

2020-04-13T14:15:12 点赞:0

不知道为什么国外一些建筑工地的员工戴这种帽子 中回复

center_image

震惊我yee~百年

2022-05-04T20:29:17 点赞:1

笑话:《我是泥巴》 中回复

不错哦

center_image

2022-05-04T20:38:29 点赞:0

找可以教代码的师傅() 中回复

师傅不用找,关键先学JavaScript,

然后一些基础的概念(如四元数,向量等)也要学扎实

如果还不能理解,可以自己开个地图实践实践

加油,你可以哒

center_image

2022-05-04T20:41:52 点赞:2

我好穷.. 中回复

真的好穷呢!(doge)

 

2022-05-04T20:49:36 点赞:0

最近叠词很火我们试卷也来凑热闹了 中回复

嗨嗨害 阿巴巴

诶嘿嘿(温迪风)

center_image

2022-05-04T20:52:18 点赞:0

这这这...... 中回复

这里是中英文标点不一样的问题哦

'存档代码'中是中文

'背景代码'中是英文

center_image

2022-05-04T20:55:54 点赞:0

打谱子呢。。。 中回复

可惜了,佩奇,伊恩...

center_image

2022-05-04T20:57:26 点赞:0

【公式大赛】用公式编辑器生成假的数学公式 中回复

center_image

你品,你细品

2022-05-04T21:12:15 点赞:1

【box3】超高级的地形生成器曝光! 中回复

厉害丫

支持支持,必须支持

center_image

2022-05-05T12:58:27 点赞:0

Python有哪些数据类型呢? 中回复

range,对,range()函数返回的是range对象哦!

2022-05-05T13:14:31 点赞:1

〖氵〗雪糕文学 中回复

"我虽无意逐鹿,确知雪莲苦楚"

                                 ——钟糕

2022-07-14T21:41:09 点赞:0

【㵘】晒出你最早的消息 中回复

【前往恢复】:https://shequ.codemao.cn/work/30880588父亲节将至,我们为你准备的父亲节作品却被清空,请购买作品后尽快恢复

2022-07-14T21:44:23 点赞:0

【小游戏】闭着眼在键盘上打字,你能打出什么? 中回复

哼啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊

2022-07-14T21:46:03 点赞:0

最近叠词很火我们试卷也来凑热闹了 中回复

奶奶滴(

2022-07-15T13:00:57 点赞:0

有人玩MC吗 中回复

红石党,微软正版:ARedStone1

2022-07-15T22:29:40 点赞:0

恐怖的冷笑话 中回复

18岁那年,我吃了个 雪(哼哼哼啊啊) 糕,现在12了(((

2022-07-16T13:24:45 点赞:1

[C++习题讲解] OJ3015 中回复

当然啦,也可以不用string头文件:

#include<iostream>
#include<cmath>                 // 需要用到pow函数
using namespace std;

int toBinary(int oct);          // 将十进制转为二进制
int countOne(int input);        // 数出数字1的个数

int main(){
    long long input, output;
    while(true){                // 用死循环监听输入
        cin >> input;
        if(input == 0) break;
        output = toBinary(input);
        cout << "The parity of " << output;
        output = countOne(output);
        cout << " is " << output << " (mod 2).\n";
    }
    return 0;
}

int toBinary(int input){
    int output = 0, bit = 0;    // bit是位置
    int *numList = new int[70]; // 先定了70位(毕竟long long也只有64位)
    for(; input != 0; bit ++){  // 先分解
        numList[bit] = input % 2;
        input = input / 2;
    }
    for(; bit >= 0; bit --){    // 后合并
        output += pow(10, bit) * numList[bit];
    }
    delete[] numList;
    return output;
}

int countOne(int input){
    int output = 0;
    while(input != 0){          // 这里更简单,不断除10就行
        if(input % 2 == 1) output ++;
        input /= 10;
    }
    return output;
}

2022-10-06T11:02:25 点赞:0

啊太生气了 中回复

+1(2/114514)

2022-10-06T11:13:38 点赞:1

C++如何做简单游戏(大佬勿入) 中回复

别想投胎呦(bushi

2022-10-08T18:29:26 点赞:0

如何让自己的小说吸引读者 中回复

<<  如  何  让  自  己  吸  引  读  者(那三个字太小了吧)>>

完蛋我已经脑补出114集狗血连续剧力(悲

2022-11-13T13:10:13 点赞:2

【雷柏X神奇代码岛创作节】比赛结束~ 中回复

只想问鼠标能DC吗(流口水

2023-02-23T12:25:50 点赞:0

【Kitten公测·源码画板更新】这次,你就是把图片放大N倍也绝不模糊! 中回复

感觉这个画板还是不太行......(sc专业户探头

矢量图就那几个,根本不够自由,要是能像sc3一样搞贝塞尔曲线(还是叫什么其它的?)就太棒啦

2023-03-02T21:38:07 点赞:3