
Lv.1
青霄有路终须到,金榜无名誓不归
签名:Sunburst Studio官方 打字很快,会一部分c++ 小号为VisualOS小助手 个人网站:www.zclgroup.top(正在重新建,还没建好,暂时无法访问) 邮箱 zclgroup@outlook.com 新头像上传不上去……
在 为啥没人给我点赞 中回复
其实没人点赞是个恶性循环
没人点赞就上不了首页推荐,上不了首页推荐就无法被人发现(谁知道你的作品叫什么名字,根本就没人搜索),没人发现就不知道你的作品,不知道你的作品就没人点赞
循环继续。。。。。。
2022-01-26T14:42:42 点赞:0
在 【C++教程第一弹】格式化输出 中回复
#include<iostream>
using namespace std;
int main()
{
long long n;
cin >> n;
for(int y;y >= n;y++)
{
y = y + 1;
cout << y << endl;
}2022-04-25T21:12:13 点赞:0
在 【C++教程第一弹】格式化输出 中回复
修改后的代码
#include<iostream>
using namespace std;
int main()
{
long long i;
cin >> i;
for(int i = 1; i <= i; i++)
cout << i << " ";
return 0;
}
2022-05-02T21:10:37 点赞:0
在 谁来协作啊!!!有意愿的在评论区发,作者每周六统一处理! 中回复
半小时内:https://kitten4.codemao.cn/?invite_code=sWpWGxFF我在编程猫发起了一个协作项目,点击链接即可加入一起创作!
2022-06-10T10:59:27 点赞:0
在 求代码帖, 中回复
试试这个
/* 在指定位置快速建造一个圆柱体 */
function cylinder(vox, cx, cy, cz, radius, height){
let xend = cx+radius
let yend = cy+height
let zend = cz+radius
for(let x=cx-radius; x<=xend; x++){
for(let z=cz-radius; z<=zend; z++){
let dx = x-cx;
let dz = z-cz;
if(Math.round(Math.sqrt(dx*dx+dz*dz)) <= radius){
for(let y=cy; y<yend; y++){
voxels.setVoxel(x,y,z,vox)
}
}
}}
}
cylinder('stone',63,12,63,10,4) // 调用方法。在{x:63, y:12, z:63} 位置,建造一个半径10格,高度4格的圆柱体2022-06-11T12:17:03 点赞:0
在 求代码帖, 中回复
let num = voxels.getVoxel(x,y,z); //获取当前方块id
if (num == 0){; //判断当前方块是否为air
function cylinder(vox, cx, cy, cz, radius, height){
let xend = cx+radius
let yend = cy+height
let zend = cz+radius
for(let x=cx-radius; x<=xend; x++){
for(let z=cz-radius; z<=zend; z++){
let dx = x-cx;
let dz = z-cz;
if(Math.round(Math.sqrt(dx*dx+dz*dz)) <= radius){
for(let y=cy; y<yend; y++){
voxels.setVoxel(x,y,z,vox)
}
}
}}
}
}
cylinder('stone',63,12,63,10,4) // 调用方法。在{x:63, y:12, z:63} 位置,建造一个半径10格,高度4格的圆柱体
这应该是圆柱体
2022-06-12T09:05:48 点赞:0
在 猫武士湖区招人啦! 中回复
现在这链接已经过时了,正确链接戳这https://box3.codemao.cn/e/12d4741d6924a1037eb8
2022-07-27T17:07:22 点赞:0