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
~198 People Reached
Favorite Forums
Favorite Tags
c++ x 2
Member Avatar for wondernaet

I just posted this broken. Here is the code that works. I was told there is 2 ways this can be written more efficient. I can't see it, can you? #include <iostream> #include <string> using namespace std; void daysOfChristmas (int days, char switcher, string b[12]){(days > 0 && switcher == …

Member Avatar for VernonDozier
0
110
Member Avatar for wondernaet

I was told that I could compact this code in 2 ways. I can't use loops. Can anyone see it? #include <iostream> #include <string> using namespace std; void daysOfChristmas (int days, char switcher, string b[12]){ (days > 0 && switcher == 'y') ? daysOfChristmas(days - 1, 'y', b): false; (days …

Member Avatar for sfuo
0
88