I'm just starting to learn Windows API programming. I read most of Horton's Beginning Visual C++ book that came with my Visual Studios. While I undestood the API sections, the MFC had me confused....
Type: Posts; User: jpchand
I'm just starting to learn Windows API programming. I read most of Horton's Beginning Visual C++ book that came with my Visual Studios. While I undestood the API sections, the MFC had me confused....
thanks twm,
I was looking for a string function that would do what atoi does. It seemed logical to have one, but couldn't find it in my book!
Thanks guys! Yes, before the conversion I check the user's input to make sure that each character is a digit. I've used atoi() before but was thinking that you passed it a character and not a string....
I need to convert a string (that is made up of all digits) to an integer so that I can manipulate in mathematically. I know I've done it before but can't find how I did it now.
I have a program that prompts the user for an existing text file that they want my program to modify. Currently, when the user puts in a file that can't be found, the program displays an error...
I like that solution! I never thought of using recursion wioth a linked list, probably because it confuses me. But I see what's going on there... and it's not messy at all. :)
dude(quantizi), thanks for the advice...:rolleyes:
thanks salem, I'll give that a try. Two of my c++ (is that better quan?) books are from class and one is "core C++ a software engineering...
I'm writing a little perl program that calls a c program. I want to pass a variable from perl into the c program. I tried it like this(in a very simplified example):
in perl:
@data=`Cprog.exe...
No. The array is two dimesional. The x and y each contain the index number for its dimension, the two combined point to one cell. The assignment: array[x] [y]=z; puts z into that cell.
len=strlen(buffer);
if(len!=0)
buffer[len-1]='\0';
you're right, you do have to subtract 1 to get to the right index, I was just thinking about returning the size of buffer.
I don't think you need the -1 when using strlen because it doesn't count the null character . strlen("hello") should return 5 instead of 6.
Hi,
I need to use the sscanf function in a programming assignment. I didn't even know about it until I came across this message board, but its exactly what I need since we are not allowed to use...