这是我的代码,麻烦您帮我指出哪里需要改进,谢谢!!
#include<iostream> #include<bits/stdc++.h>//这两个用哪个好 using namespace std; int main(){ float t; int a; float d;//每人分多少 int b;//需要几个杯子 cin>>t>>a; d=t/a; b=a*2; print("%.3lf",d);//这里总是报错 cout<<b; return 0; }