Mysterious weird symbols!!

This code is almost finish,Ive been doing it for days, I know its not that hard :)

When it prints "Now the word is", in the end of it show some weird symbols or sometimes random letters??

Its on line 186.

Also, it compiles at Dev-C++ but not on Bordland, why??
line 158: "number" is never used
and more problems w "number", but doesn't make sense

Thanks

Last edited on
You didn't post any code here.
It was up earlier, don't know why it was taken down...

From what I saw of it, the problem with "number" is that it was a parameter in a function that was passed by value. However, in the function it is used to store and return an integer. Since it's passed by value instead of reference, this basically means nothing happens.

I didn't post earlier because I was hoping someone else would figure out the problem with the output. It was using the printf function with cstrings, but the implementation looked fine to me. The description of the problem makes me think that there should be something wrong with the address or variable of the cstring.
Last edited on
sorry about that..ive fixed it..
I had to take down since this is my assignment

cheers
Topic archived. No new replies allowed.