Good news! I took a break, went back to my code, did some cout stuff in certain places to see what was going on and I figured it out! I can sometimes amaze myself! I would LOVE if someone would...
Type: Posts; User: Daesom
Good news! I took a break, went back to my code, did some cout stuff in certain places to see what was going on and I figured it out! I can sometimes amaze myself! I would LOVE if someone would...
Well I thank you both and anyone else who wants to share their ideas with me. I will try to figure this out using the ideas you both presented and anyone else presents. I am only in an intro to C++...
One other error I just noticed. If I add numbers such as 25 and 250, i will get 500 instead of 275. I tried to correct this error earlier as well but failed. I set the initial values added to...
I am reading over your code and I don't think I quite understand it. I have all the addition down. If you put in any number that doesn't need an additional space on the end, it adds them up pretty...
I am reading over this code and honestly I woulda did it completely different. I never really learned about those files you used yet, but do they do what you need for each of the functions? I mean...
Hello again everyone, it's been awhile since I was here. I have another problem for anyone who is up for the challenge. I have a code here that I will post in a second, and what it is is a code...
Sorry it took awhile to reply, I am pretty sure it is the card. The sound only occurs in certain games. I would assume that if it was the speakers, it would do it always, whereas the card there...
Hello, I am having problems with my sound card. In certain games, it seems to be making a cracking noise. I have an on board SigmaTec Audio card. I updated the drivers and it still does the...
I dunno, I like to read the code and all too. Never really used the debugger yet. In truth I am just starting to learn C++. This is my first class, and I know I make lots of small, stuipid...
Thank you everyone who has helped me fine tune this code, the final code looks like this:
#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int main()
{
double...
BAM! That was it! ha ha ha thanks! Now I just need it to display 3.0, not 3.2 the first time and so forth to 3.14195
Edit: Quick edit, reading your reply also I should set sign back to -1 as...
Ohhhh! That's probly it, let me try that one out.
Decrypt: Thanks for checking, I'm not sure. Maybe it does work fine but it takes a long time to get the answer, I'm not really sure. I am not sure if the 96 is even correct. My cousin did a...
Yikes, I was worried about that. I just set my precision much higher to check the full answer and it is showing .15, i want the number to show .0, I guess this is a big problem
Fixed the warning, just set another int variable, but that still didn't fix the huge problem heh. I think the while loop is failing to loop and I don't know why.
I appologize for putting this code up again, but I can not find where it is not looping this time again and I don't think it's a simple mistake like last time.
//The program checks to see how...
well for what I am doing I dout that will work, heh... I have posted my code before, just started working on it again, trying to figure it out.
Is there a command to cause a solution to round a number to a place? example 5.67 to 5.7?
Thanks for the correction, as I said before, I get those two signs messed up a lot when I do coding, heh...
Hello again, I have decided to start from scratch on the code I mentioned before. I am somewhat close to my answer I believe, I just can't get the entire thing to loop over again. Could someone...
Sorry I am helping my cousin with this code, I usually use the sign = -sign when doing something like this, just didn't notice that in his code. Thanks for pointing it out, correction was made.
Thank you computation, I think you are on the right track with that one actually. Let me think about that, if anyone else has any other ideas, please post them.
I am working on a problem that outputs how many terms are used to determine the amount of terms to find different amounts of Pi, such as 3.0, 3.1, 3.14. Could anyone help me on this code, especially...