- Upvotes Received
- 4
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
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 … |
|
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. |
|
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 … |
|
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; } … |