Virtual Destructor Example
Type: Posts; User: Rich2189
Virtual Destructor Example
You only require one loop since you are computing all the other j - 1 triangular numbers for each inner loop.
That is all I will say since this is clearly a homework task.
The C++ trigonometric functions work in radians rather than degrees.
Radians
I guess this is the issue you are experiencing.
Homework due in for Monday morning? Late and asking a forum to write it all for you, how amusing.
What code do you have so far? We need specific problems.
No, changing the datatype is masking the real issue here.
#include <iostream>
#include <limits>
using namespace std;
int main()
De Morgan's laws have nothing to do with the infinite loop, the loop condition is correct. As I stated above, the reason for the infinite loop is the cin statement is being skipped while it remains...
You attempt to read a character into an integer which sends cin into a fail state:
std::cin.fail() is equal to true.
You must first call cin.clear() to remove the error flag before you can...