Forum: C++ Dec 4th, 2008 |
| Replies: 7 Views: 836 Oh, thank you guys all so much. I got it to work using the "pow (2.0, x)" method (using Visual C++ Express, just fyi).
#include <stdlib.h>
#include <stdio.h>
#include <fstream>
#include... |
Forum: C++ Dec 4th, 2008 |
| Replies: 7 Views: 836 You're right, I was thinking about how all this math ties together. It's crazy to think about sometimes!
Okay, so thank you for pointing out the power thing. I think this is where I got stuck... |
Forum: C++ Dec 3rd, 2008 |
| Replies: 7 Views: 836 Thanks. I actually just now figured out how to make the triangle print properly. I kept trying to add +1 in different places before. And then I realized, woops - I should have made it <= (less than... |
Forum: C++ Dec 3rd, 2008 |
| Replies: 7 Views: 836 Hi there. I had to make a code to print out a Pascal Triangle. But I'm not getting it to display properly.
For example, if the user types in 4, then it will print:
1
1
1 2
1 3 3
But... |
Forum: C++ Nov 3rd, 2008 |
| Replies: 6 Views: 683 Thank you! I think this is what he's looking for. |
Forum: C++ Nov 3rd, 2008 |
| Replies: 6 Views: 683 Hey there, everyone.
Here is the question I had to write code for:
Include the following code:
char test[15] = {‘T’, ‘h’, ‘i’,’s’, ‘_’, ’i’, ’s’, ‘_’, ’a’, ‘_’, ’t’, ’e’, ’s’, ’t’};
for (int... |