Well I don't know about you guys, but I actually learn better if I'm just spoon fed the answers, then I can easily do something of the same level naturally. But that's just me.
Anyways I was able...
Type: Posts; User: CplusplusNewb
Well I don't know about you guys, but I actually learn better if I'm just spoon fed the answers, then I can easily do something of the same level naturally. But that's just me.
Anyways I was able...
Now my final question. In my book it says I have to ask the user whether they would like to covert from feet and inches to meters and cm, or from meters and cm to feet and inches.
And I would have...
Ah ok thanks for making me feel so stupid *thumbs up*
Where'd you get 3.2808399 from?
Ok the conversion from feet and inches to meters and centimeters (meters being an int and the remainder being converted into cm), but how can I do just the opposite?
See here's the code for feet...
Wow thanks that actually works great and does exactly what I want it to! :D
OK never mind about the conversion, I got
meters = meters * 0.3048;
and it worked for the feet to meters conversion.
But I have to make it so there are no decimals in it. If it's 10...
I got all the rest of the code working but I just can't figure out how to convert the input into meters and centimeters. For example I know that 1 foot is 0.3048 meters, so I need to multiply the...
for (int row = 0; row < 10; row++)
{
for (int col = 0; col <= row; col++)
{
cout << "-";
}
for (int lol = 0; lol <= 8 - row; lol++)
{
Well now I'm completely stumped. Can you please tell me which numbers I switch? I'm really confused.
Ok what I don't understand is at what number my loop starts and at what number it ends (in the code).
When I change the first number to 0 my output is:
10 #'s
1 dash and 9 #'s
..
..
..
for (int row = 9; row < 10; row++)
{
for (int col = 0; col <= row - 1; col++)
{
cout << "-";
}
for (int lol = 0; lol <= 9 - row; lol++)
{
Well I'm only a beginner, what you jsut said will actually take me like 5 trial and errors. >.>
for (int row = 0; row < 10; row++)
{
for (int col = 0; col <= row - 1; col++)
{
cout << "-";
}
for (int lol = 0; lol <= 9 - row; lol++)
{
See if you take this code and run it you will see the dashes and the #'s. I need to know how to flip the dashes upside down, and the #'s flip them to the side, so the #'s will form my opposite right...
Yea. Right now what I would like to know is how do I make the right triangle flip upside down? So that there will be 9 '-" on the first line, 8 on the second, 7 on the third, etc. Then at the end of...
Ok I have this problem.
First I need to make a right triangle:
#
##
###
Done.