Search Results

Showing results 1 to 8 of 8
Search took 0.00 seconds.
Search: Posts Made By: cherryteresa ; Forum: C++ and child forums
Forum: C++ Dec 4th, 2008
Replies: 7
Views: 836
Posted By cherryteresa
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
Posted By cherryteresa
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
Posted By cherryteresa
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
Posted By cherryteresa
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
Posted By cherryteresa
Forum: C++ Nov 3rd, 2008
Replies: 6
Views: 683
Posted By cherryteresa
Forum: C++ Nov 3rd, 2008
Replies: 6
Views: 683
Posted By cherryteresa
Thank you! I think this is what he's looking for.
Forum: C++ Nov 3rd, 2008
Replies: 6
Views: 683
Posted By cherryteresa
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...
Showing results 1 to 8 of 8

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC