No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
3 Posted Topics
Hello,everybody: I used PQmagic to create partitions. My hard disk is divided into four parts-two primary partitions and two logical partitions with the drive letters D: and E:. I have installed two Operation Systems on my hard disk(Both are XP). When one XP OS is in use and C: can …
[code=cplusplus] #include<iostream> #include<string> #include<vector> using namespace std; int main() { string a; vector<string> b; vector< vector<string> > s; while(cin>>a) { b.push_back(a); s.push_back(b); cout<<s.size()<<endl;//A1 cout<<s[s.size()-1]<<endl;//A2 } return 0; } [/code] Any problems with this? If line A2 is deleleted,the program can run.So I think s does exist,but when I add line …
Hello,I am new for C++.The following are the codes I wrote to calculate the sum of 2^n. The result is 2046 after running the program.That is correct. But when I change the condition to n<=100,the result comes with -2,which is obviously wrong.Then I tried different n and found if n<=30,the …
The End.