Think about if you just wanted the output to be A1A2A3. You would want something that would repeat three times, and each time add 1 to the number after A. Which kind of loop could do that?
Then...
Type: Posts; User: TyPR124
Think about if you just wanted the output to be A1A2A3. You would want something that would repeat three times, and each time add 1 to the number after A. Which kind of loop could do that?
Then...
Yeah, I was surprised to find it didn't accept strings, but still an easy fix... Now if only my problem was as easy of a fix (well it probably is, I'm just probably doing something really stupid). I...
Whats wrong with global variables? Besides, I would have to use some of them global unless want to constantly pass variables back and forth through functions.
And flush-ing it didn't work. Also,...
I'm making a program that can write RSS files. Now so far everything works right, except one thing, whenever I create a new RSS file (it can open or create a new one), it either doesn't save the file...
I don't know about visual C++, but couldn't you just use an int, and set it to 1 or 0 for true or false respectively?
The error is because when you make an array, the first index is 0 (the number that goes in the [ ]). So an array of 10 would have indexes of 0 through 9.
Also, you were on the right track the...
Might be that 'while (valid = 0)' should have 2 ='s ('while (valid == 0)'). Also just so you know, if the first time you input less than one, it will never break from the loop because 'valid' will...
I would guess they are for the type of sandwich, the shipping, and couting the type of sandwich... but if you say you need to used 'if' also, then I'm not sure where you'd put that.
Daved: I thought of that too, but in that case, why does it output at all. Because he uses a function for getting the time in the first place and doesn't return anything, it should only store the...
Well thanks for all the answers... I think I understand now.
Oh, I though the pointer had to be an integer. That would be my problem (don't I feel dumb lol)...
But why does it have to be the same type as the variable? Since all pointers are the same since...
I understand the basics of how pointers work. I can get it to store the address of anything except a string. So my question is, how can I get it to store a string's address? If I try, it tells me...