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

I am given the class definition of stack and queue classes where I have to write a templated function called reverseQueue(?) that takes a pointer to queue as a parameter and uses stack object to reverse the given queue. The function call to reverseQueue should reverse the data of the …

2
225
Member Avatar for Wong23

Can someone help me with this problem here about Binary Trees. I was given this code... and I am required to write a function void count_nodes(?) to determine the total number of nodes in a Binary Tree.

1
238
Member Avatar for Wong23

Can someone help me with this problem... A is an m*n matrix B is an n*p matrix product AB is an m*p then I have to write a function void matrix product that takes two matrices of integers as two separate arguments and then calculates the product of those matrices …

Member Avatar for tintin.iitk
0
108
Member Avatar for Wong23

can someone help me with this problem(factorial) everything is working fine but when I enter a negative number the program crashes somewhere....but n can be any non-negative number Here is da code #include <iostream> #include <string> using namespace std; int fact(int n){ if (n==0) return 1; else return fact(n-1)*n; } …

Member Avatar for dkalita
0
98