No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
I commented by the last line. I am trying to print out the string in reverse. [CODE] #include <iostream> using namespace std; void add(string n); int main() { string B ="ABCDEF"; add(B); } void add(string n) { if(n.length() <= 1) { cout<<n[0]<<endl; return; } else { cout<<n[n.length()-1]; add(n[n.length()-1]); //this lines … |
|
I've been tasked with reading in multiple emails that are stored in a single archive file and then scanning it to find certain things. My problem now is that I seem to only be reading in the first of the many individual files stored in the single archive. The "archive" … |
|
The queue class needs to inherit protectedly from the list class My code won't compile because of this line towards the bottom listPtr = &myqueue; if i comment out this line, it compiles and runs, but without this line i can't do what i want. I need this line to … |