No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
6 Posted Topics
It almost looks like what you want is an enumeration, based on your code. This would create a variable type, I don't know I'm bad at explaining it, and haven't used it much the format is. enum color {black[COLOR="Red"]=1[/COLOR],blue,green,red}; the =1 is used to make it start the enumeration at …
[B]Question:[/B]I ran into a point where it would be very helpful to send a function a portion of an array, instead of the entire thing. Now i can think of a couple work arounds like sending the whole array and a begin number, and range number, then computing off of …
how about this //float price = 765.87590234; //price = ((int)(price*100))/100; I don't think the external set of () is needed but not absolutely certain so figured better safe than sorry.
First off as mentioned it was your formula: x = ( cPopulation + growthRate * cPopulation / 200 ) * n using population of 1000, birthR 100, deathR 50, years 2 x = (1000 + (50*1000/200))*2 or x = 1250*2 now first off you added your current population * number …
OK I am wondering Can you make a variable hold an operator. Such as say +, -, / etc... And if so can that variable be used to replace an operator in an equation? for instance char a = "+"; int b = (2 a 3); thoguh that doesn't work …
Ok I just started programming again after about 10 years, and i was doing the suggested beginner problems. The first one to create a program that returns the factorial of a number. I think i got it all down right but compiler is saying "expected primary-expression before else" here's the …
The End.
JadedTortoise