Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements

3 Posted Topics

Member Avatar for chihuyu

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 …

Member Avatar for sittas87
0
86
Member Avatar for chihuyu

[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 …

Member Avatar for mitrmkar
0
81
Member Avatar for chihuyu

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 …

Member Avatar for technogeek_42
0
133

The End.