Never mind i spoke to soon. I got it to work. I just changed all the "num2" to "num"
Type: Posts; User: tkems
Never mind i spoke to soon. I got it to work. I just changed all the "num2" to "num"
Ok, here is my problem. This program runs flawlessly until i input a number bigger than 5 char long. If i do it just outputs "1."
But if i put an int that is 8 char long than it outputs a "3"
...
Never mind.
Thanks though.
I figure something out.
look down one
Why did you close my last thread?
I still need help. That FAQ didnt work.
I did everything i knew how to do short of throwing out the monitor.
Why is everyone on the board so mean?
is there like a Clear screen command i could use for a dos prog.
in basic it was "cls"
Thanks
yea, but he just came out and said it like i was stupid or something
Jeese dont bite my friggin head off im just learning. And i saw that myself when i was looking through my resources.
Jerk
Never mind i got it to work. Thanks everyone who helped. I appreciate it.
:D ;)
ok, i did what you said but i still have one error. One stupid little error!!!
it is saying parse error on 163 still.
163 it the line with default in it.
I dont see an error, do you?
...
i did want someone to compile it them selves. I just wanted help.
line 172 is the very last line. line163 is the line with default in it.
Thanks anyways
can anyone help?
im still getting 2 errors though. Ive made all the changes you said to and i still get these:
parse error before ';': line 163
parse error at end of input: line 172
please help!!!
Ok thanks im down to 3 errors
no match for _IO_Stream_withassign & << int &': line 35, 105
parse error before";": line 164
Thanks so much!!
ahh thanks ill get back to you with the results
Ok. so far so good, alot has been fixed.
Yes i want X to equal 0.
I change something so that "num % 10" is not a "int % float."
It is still saying:
break statement not within a loop or...
I now but like i said im new at this
but thanks ill try it.
oh sorry, lots of 'em ill try to list them all.
[warning] in function 'int main()':
break statement not within loop or switch: line 26
no match for _io_Stream_withassign & << float &': line...
To all of those who are im sure sick of me and all my questions, heres one more.
Here is my program, remember this is my first menu type and i am getting errors compiling it. Could some help me...
Thanks for all your help!
it will store it into variable "num" or "A"
i asked if it would save it into "A"
thanks
Can anyone tell me how to use the % function?
ok i need to have the last number in a decimal number to be put in a nother variable:
num % 10 = A
will that store the last number in...
This is as far as ive gotten i need help at the bottom.
#include <iostream.h>
int main()
{
so i cant use it like this?
if (strlen(num) > 8)
If "num" is a string then can i do that?
Hey, One more thing.
How do i use strlen() in my prog?
like this?
strlen(num)