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

int i=0; A1: cout << “I is “ << i << endl; i = i + 1; if ( i <= 10) goto A1; cout << “the loop is completed\n”; It is poorly written using goto statements; your job is to convert it into a. while-loop, b. do-while loop, c. …

Member Avatar for blackrainbowhun
-2
155
Member Avatar for Reprise

I have a templated class set up like so: [code=CPP] template<typename T> class treeNode { public: bool operator==(const treeNode<T>&) const; bool operator>(const treeNode<T>&) const; void print(); T field; int key; }; [/code] Using the > operator as an example of my problem, I have it overloaded like this: [code=CPP] template<typename …

Member Avatar for xxjay922xx
0
92