首页 > 其他分享 >狐尼克和朱迪

狐尼克和朱迪

时间:2023-05-26 20:55:54浏览次数:27  
标签:朱迪 mc int include 尼克 con

#include <iostream>
#include <string>
#include "minecraft.h"
using namespace std;
TxMinecraft mc;
int main(int argc, char** argv) 
{
    bool con=mc.ConnectMinecraft("zk.makeblock.net.cn","4c4ce4431bdc409388e0a110f5aa9dcc");
    if(!con){
        return 0;
        cout<<"连接失败";
         
    }
    
    string count[29];
    //1
    count[0]="5,0,0,251,7";
    count[1]="9,0,0,251,7";
    count[2]="13,0,0,251,7";
    count[3]="16,0,0,251,7";
    count[4]="19,0,0,251,7";
    count[5]="6,0,0,251,10";
    count[6]="7,0,0,251,10";
    count[7]="8,0,0,251,10";
    count[8]="10,0,0,251,10";
    count[9]="11,0,0,251,10";
    count[10]="12,0,0,251,10";
    count[11]="14,0,0,251,10";
    count[12]="15,0,0,251,10";
    count[13]="17,0,0,251,10";
    count[14]="18,0,0,251,10";
    //2
    count[15]="6,1,0,251,7";
    count[16]="10,1,0,251,7";
    count[17]="14,1,0,251,7";
    count[18]="16,1,0,251,7";
    count[19]="19,1,0,251,7";
    count[20]="7,1,0,251,10";
    count[21]="8,1,0,251,10";
    count[22]="9,1,0,251,10";
    count[23]="11,1,0,251,10";
    count[24]="12,1,0,251,10";
    count[25]="13,1,0,251,10";
    count[26]="15,1,0,251,10";
    count[27]="17,1,0,251,10";
    count[28]="18,1,0,251,10";
    /*count[0]="6,1,0,251,7";
    count[0]="6,2,0,251,7";
    count[0]="5,3,0,251,7";
    count[0]="4,4,0,251,7";
    count[0]="3,5,0,251,7";
    count[0]="3,6,0,251,7";
    count[0]="2,7,0,251,7";
    count[0]="2,8,0,251,7";
    count[0]="2,9,0,251,7";
    count[0]="1,10,0,251,7";
    count[0]="0,11,0,251,7";
    count[0]="0,12,0,251,7";
    count[0]="0,13,0,251,7";
    count[0]="1,14,0,251,7";
    count[0]="1,15,0,251,7";
    count[0]="0,15,0,251,7";
    count[0]="1,15,0,251,7";
    count[0]="2,15,0,251,7";
    count[0]="3,15,0,251,7";
    count[0]="0,15,0,251,7";*/
    
                                
    string x,y,z,id,data;
    cin>>x>>y>>z;
    for(int i=0;i<29;i++){
    
    x=count[i].substr(0,count[i].find(","));
    count[i]=count[i].substr(count[i].find(",")+1);
    y=count[i].substr(0,count[i].find(","));
    count[i]=count[i].substr(count[i].find(",")+1);
    z=count[i].substr(0,count[i].find(","));
    count[i]=count[i].substr(count[i].find(",")+1);
    id=count[i].substr(0,count[i].find(","));
    count[i]=count[i].substr(count[i].find(",")+1);
    data=count[i].substr(0,count[i].find(","));
    mc.setBlock(stoi(x),stoi(y),stoi(z),stoi(id),stoi(data));
    
}

    return 0;
}

 

标签:朱迪,mc,int,include,尼克,con
From: https://www.cnblogs.com/hanxuyao/p/17435779.html

相关文章

  • 泰坦尼克号生还预测
    泰坦尼克号生还预测导入模块importpandasaspd#数据处理importmatplotlib.pyplotasplt#画图fromsklearn.treeimportDecisionTreeClassifier#决策树模型fromsklearn.model_selectionimporttrain_test_split#划分训练集和测试集fromsklearn.model_selectio......
  • R语言泰坦尼克号随机森林模型案例数据分析|附代码数据
    原文链接:http://tecdat.cn/?p=4281最近我们被客户要求撰写关于随机森林模型的研究报告,包括一些图形和统计输出。如果我们对所有这些模型的结果进行平均,我们有时可以从它......
  • 机器学习日志 泰坦尼克飞船 Spaceship Titanic
    PassengerId——乘客编号。每个编号的形式都表示乘客与是否是组团旅行有关,比如家庭出游,集体出差等,因此编号中有部分是表示他们在团队中的号码。但有部分乘客是独自旅行。H......
  • 泰坦尼克号旅客生存概率预测
    数据预处理加载数据集importnumpyasnpimportpandasaspdall_df=pd.read_csv("titanic.csv")部分数据 提取所需要的列cols=['survived','name','pclass',......
  • P1280 尼克的任务
    P1280尼克的任务-洛谷|计算机科学教育新生态(luogu.com.cn) 按正常思路来想:首先令dp[i]为到第i分钟的最多空闲时间,讲第i分钟结尾的工作时间存入v[i]。 容......
  • 机器学习日志 泰坦尼克号获救预测 决策树
    我是链接第一次做机器学习的题目题目要求:给定一堆已知的泰坦尼克号船员信息,每个人的信息包括PassengerId=>乘客IDPclass=>客舱等级(1/2/3等舱位)Name=>乘客姓名......
  • 泰坦尼克号-titanic-kaggle入门比赛
    Kaggle-入门比赛-泰坦尼克号importpandasaspdimportmatplotlib.pyplotasplttrain_data=pd.read_csv("data/train.csv")test_data=pd.read_csv("data/test.c......
  • matlab练习程序(泽尼克多项式拟合)
    泽尼克多项式是一个正交多项式,分为奇偶两类。奇多项式:偶多项式:其中:这里fai为方位角,范围[0-2pi];p为径向距离,范围[0,1];n-m大于等于0;如果n-m=0,则R=0。根据不同的m和n......
  • 【2022.12.28】kaggle上泰坦尼克号的实操(上)
    前言经过一系列的学习,现在想入门kaggle上面的实操,多为模仿参考链接:机器学习入门:Kaggle-titanic(泰坦尼克)生存预测#ThisPython3environmentcomeswithmanyhelpf......
  • 阴谋还是悲剧?- 基于机器学习假设检验视角,看泰坦尼克号事件
    阴谋还是悲剧?-基于机器学习假设检验视角,看泰坦尼克号事件1.引言0x1:故事背景泰坦尼克号(RMSTitanic),又译作铁达尼号,是英国白星航运公司下辖的一艘奥......