Visual C++ 2010 到底怎么用啊?!
c++吧
全部回复
仅看楼主
level 1
寻找小衣 楼主
如题
2011年06月08日 14点06分 1
level 9
2011年06月08日 14点06分 2
level 10
[瀑布汗~]   是不是创建empty file 却找不到编译
2011年06月08日 14点06分 3
level 1
寻找小衣 楼主
烦死了,输入的代码都不能正常测试!
这玩意到底怎么使啊!
2011年06月08日 14点06分 4
level 1
寻找小衣 楼主
#include <iostream>
using namespace std;
int main ( )
{
     int number_of_pods, peas_per_pod, total_peas;
     cout << "Press return after entering a number.\n";
     cout << "Enter the number of pods:\n";
     cin >> number_of_pods;
     cout << "Enter the number of peas in a pod:\n";
     cin >> peas_per_pods;
     total_peas = number_of_pods * peas_per_pod;
     cout << "If you have ";
     cout << number_of_pods;
     cout << "pea pods\n";
     cout << "and ";
     cout << peas_per_pod;
     cout << " peas in each pod, then\n";
     cout << "you have ";
     cout << total_peas;
     cout << " peas in all the pods.\n";
     return 0;
}
2011年06月08日 14点06分 5
level 8
2011年06月08日 14点06分 6
level 1
寻找小衣 楼主
这是我学到的第一个程序
2011年06月08日 14点06分 7
level 7
先建工程。。
2011年06月08日 14点06分 8
level 9
      cin >> number_of_pods;
      cout << "Enter the number of peas in a pod:\n";
      cin >> peas_per_pod;
2011年06月08日 15点06分 9
1