Hi, I was wondering what a good compiler and editor for Linux would be to code in? I have just finally installed Linux and I would like to start programing in Linux instead of Windows. I assume for...
Type: Posts; User: Ripper1
Hi, I was wondering what a good compiler and editor for Linux would be to code in? I have just finally installed Linux and I would like to start programing in Linux instead of Windows. I assume for...
Hi, I was wondering if it is possible to store strings in a different array element. for example variable[1] = some_string. If that is possible, I was wondering if you can store any variable in an...
Thanks for the extra help, but I finished it last night, I still appreciate it though!
thank you, I need to read up more before I attempt harder problems on this string of contests, I generally know a lot about core language C++ coding but I lack a lot of little things such as that. ...
Ok, I feel bad because I am trying to get better at contest programs and this was crashing windows but here goes, certain members might recognize it.
#include <iostream>
#include <string>...
I've had code similar to that all night and all that happens when I run it is that Windows crashes. I just copied yours to make sure, Windows crashed as well. I have no idea why, that's why I...
yea
if str[0] == 0
str[0] = 1
something like that, sorry for all the pseudocode.
Hi, I am working on a program that deals with strings. Basically, I want to check the integer value of each string and if the char's value is null, I want to make it one. Checking the value of the...
how can I check if I have it?
Oh dumb me for forgetting to realize rand returns an int. Thanks Salem.
Hi, I'm trying to generate the same random numbers(i.e. no srand() function needed) but I can't seem to figure out how to get it to work for the range I am in. I want it to be in the range of .5 to...
I would be using getline() but I have to do numerical calculations with the numbers...sorry if I didn't say that.
Hi, I have a text file that looks like this:
<file>
POV Scene Description File
Starting value of t:
0
Ending value of t:
6.28
Number of balls:
200
</file>
I was told by a certain poster here that "Salem would come. Salem would fix your problem". Thank you man, I really appreciate it. I'm going to study this in depth tommorow to really understand what...
Ok, I pretty much give up, I hope to hear from any of you that might be able to help, here is some more fun output..
I edited the while loop again so it gives me even more results, what I have isn't...
well fabs is like abs but for floating point numbers, it sort of helps, but I need to sort more things out with this loop and the conditional statement..
Think I solved it with a fabs instead of abs..
Edit: No I didnt, heh
well, after a test, I found something interesting, you have all been saying it.
i modified the code in my while loop so it looks like this
double sine(double x, double precise)
{
double term...
i swear, NOONE has a solution! THE INSTRUCTOR DIDN'T HAVE A SOLUTION! I asked one of the 30 best math students in the country who is also a great programmer, he had no idea! Oh well, I will keep...
Here we go, as you will see in the assignment, I really need the functions to stay the data types they are and I need the logic condition too.. here are the links..
Front of Assignment Page
Back...
I can scan the document that has the assignment and put it up on my webspace so you can check it out. While you are doing that, I will mess with the program..(Btw, other kids have gotten this to...
i don't know, the teacher told us to do it that way, you'd think a c++ instructor knows what he wants us to do to get it to work? thanks for the suggestion? any more..?
yes, that is a problem, ignore the degrees thing, and just focus on the actual while loop, WHY DOESNT IT WORK!?!
Ok, so I am doing an assignment for my C++ class at a local community college. The assignment is that I have to program the series "sine(x) = (x^1/1!) - (x^3/3!) + (x^5/5!) - (x^7/7!)....". I have...
i don't really think gates is some ignorant fool...many people play him out to be though, i don't know what he does at microsoft but it's sorta dumb to assume that he a)is always out to screw us all...