摘要:
10/3 13/5=2.6 10%3=1 在C++怎么四舍五入 #include<iostream> #include <cmath> using namesapce std; int main (){ double i=round(13.0/5); cout<<i<<endl; return 0; 阅读全文
摘要:
#include <iostream> #include "minecraft.h" TxMinecraft mc; using namespace std; int main(int argc, char** argv) { bool con=mc.ConnectMinecraft("zk.mak 阅读全文
摘要:
#include <iostream> #include "minecraft.h" TxMinecraft mc; using namespace std; void zhuangshi(int x,int y,int z){ mc.drawLine(x+1,y,z,x+2,y,z,143,4); 阅读全文
摘要:
#include <iostream> #include <queue> using namespace std; int main (){ queue<int> a; queue<int> b; int m,n,q; cin>>m>>n>>q; for(int i=1;i<=m;i++){ a.p 阅读全文
摘要:
#include<iostream> #include<map> using namespace std; int main(){ map<int,int> a; int n,ans,mn; cin>>n; mn=1000; for(int i=1;i<=n;i++){ int x; cin>>x; 阅读全文
摘要:
阅读全文
摘要:
class wanghuali { private: int x; int a[1000]={0}; int m=5; public: void set(){ for(int i=0;i<5;i++){ std::cin>>x; a[x]++; } } void get(){ for(int i=0 阅读全文
摘要:
#include <iostream> //#include <> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ using namespace 阅读全文