Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~238 People Reached
Favorite Forums
Favorite Tags
c++ x 5
Member Avatar for heredia21

int main() { recurse(5,3); return 0; } // end main void recurse(int x, int y) { if (y > 0) { ++x; --y; cout << x << " " << y << endl; recurse(x, y); cout << x << " " << y << endl; } // end if } …

Member Avatar for Salem
0
103
Member Avatar for heredia21

[code] int main() { string s = "12a34b56c78d"; int size = 12; writeStuff(s,size); return 0; } // end main void writeStuff(string s, int size) { if (size > 0) { cout << s.substr(size-1, 1); writeStuff(s, size-3); } // end if } // end writeStuff[/code] What is supposed to be the …

Member Avatar for Ancient Dragon
-1
70
Member Avatar for heredia21

#include <iostream> using namespace std; int num, factorial; num = 6; factorial = Fact(num); cout << num << "! = " << factorial; return 0; } // end main int Fact (int num) { if (num == 0) return 1; else return num*Fact(num-1); } //end Fact int main() What is …

Member Avatar for heredia21
0
65