You can do this without a second array.
Using your existing code though the problem is on line 15. i+strlen(astr) points to the strings terminating '\0' which you are then copying into the...
Type: Posts; User: SirPrattlepod
You can do this without a second array.
Using your existing code though the problem is on line 15. i+strlen(astr) points to the strings terminating '\0' which you are then copying into the...
I like the term commando prompt and I think I'll name my terminals from now on because I have a yeti suit and also commando costume and face paint that I rarely get to use. With my commando prompt I...
How is the underscore prefix inherited from gsoap? Or do you mean your code specifically?
Not sure if there's a question or not...
Does it compile?
hmm, cool
You're mistaken ;-)
Since this is a filled circle then the only significant efficiency gains are (probably)
a) What Salem suggested
b) Reflect above/below y-axis (halve the calculations required)
c) Move the...
It might be nice to have some compilable code...
Not sure how close this is to what you have, but if it's "close enough" then maybe optimizations can be suggested based on this (so at least we can...
You're not assigning the returned values to anything; e.g. you probably want countx = function2(array);
It's not clear at all. The OP said they typed exactly what the guidebook said to type. If you typed that in Linux, for example, you'd get exactly the same error message from g++.
Not sure if I'm misunderstanding you or not but this program has far too few functions as it is without suggesting moving the entire game into main() ;-)
There are a couple of ways. The most common way you'll probably encounter uses modulus operator
What's "String"?
Whoa, whoa, whoa; hold the horses! Somebody used the words argument and parameter correctly!
What's that cat on your task bar?
You're ruining my fun. I was going to write a solution using buckets of water :-(
The only other problem with that is that the OP cannot use if statements :/
The problem is probably your getus_dollars function.
First, your scanf() is wrong; you're using %f but passing a pointer to an integer as the second argument. Perhaps int us_dollars; should be a...
Or make them static
I'm not trying to sound harsh (honestly) but maybe you should have started earlier? Free rides in real life are very rare indeed and maybe the only thing you will learn from this...
It's very unlikely (actually, probably impossible) that anyone here will do the assignments for you. So, what's a good strategy? I think that it'd be a good idea if you read the problems and tried...
Kiel provides many examples that address this. Have you used one of their "templates" or rolled your own code from scratch?
I echo andruil462's comments.
Have you attempted this at all? If so it's a great idea to post the source code of your attempts and people can then help.
It's a very counter-intuitive thing...
I accept your apology :p