Here are the details. If you don't get that 10n-n is 9n, you can't help me. Then, remember the result of subtraction is 3. Then we know that 3 is the same thing as 9n. So we have 3=9n. We are allowed...
Type: Posts; User: Victor4015
Here are the details. If you don't get that 10n-n is 9n, you can't help me. Then, remember the result of subtraction is 3. Then we know that 3 is the same thing as 9n. So we have 3=9n. We are allowed...
This code is meant to have input as a string, and output as a float, but it returns strange numbers. I guess it is something with the converter function at the beginning. Could someone please tell me...
What are stringstreams? what is their syntax?
what are stringstreams?
How do I use fgets()? what is the syntax?
The problem is to convert a string into a float. What happens is a user inputs a string, but the string only contains numbers. How do I get the program to recognize the numbers as numbers?
You asked for a list of steps, so here it goes. Let's say we want to convert 0.333333333... into a fraction. First, we multiply by ten, so we get 3.33333333...From now on we shall represent...
Thank you very much, but then how would the program know to simpliy 50/100? Also, what about a fraction like 0.3333333...? I know how to do this mathematically, but how do I do it in the program?
how do you use the remainder operator? Sorry, I am new to this.
Sorry for the last post--it is a double.
Ok, I'll just explain what the program does: first, it divides two numbers. The result is then supposed to be tested. if it is a whole number, then the program displays the number, if it is a...
OK, I'll just explain more clearly what I am asking: what the part of the program in question does is it divides two numbers. Then it is supposed to test whether the quoteint is a whole number. if it...
How do I convert decimals back to fractions?
No, you don't understand. I want the program to test if a number is a whole number. it will only accept integers. so if it isn't supposed to output numbers like 1.2, but it can output numbers like...
yeah, and 1.2/1.2=1, and 1.2 isn't a whole number
sorry, but I meant if a number is a whole number
How do I get a program to simplify a fraction, and how do I get a program to recognize if a fraction is a whole number? There is probably a simple solution, but I am oblivious. Thanks alot.
SlyMaelstrom, I would like to ask you about an earlier post-what if you want to input more that 1 character into getch(), but perhaps less than the limit in the program?
Thank you once again for your informative answers!
text inputed by the user
The title says it all; please tell me how to make text appear as an asterix.
Thank you very much for your answers, they were very helpful
this thread does not exist
I have getch() on my compiler, but could you please tell me how to actually use it? I am an amateur, and I would really like an expert's help.
I have just started programming, and am writing a program to find the slope of a line, among other things. The code itself works fine, but it would be even better if I could put in numbers in the...