Search:

Type: Posts; User: jpchand

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    3,792

    a good windows API programming book

    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....
  2. Replies
    9
    Views
    1,666

    thanks twm, I was looking for a string function...

    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!
  3. Replies
    9
    Views
    1,666

    Thanks guys! Yes, before the conversion I check...

    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....
  4. Replies
    9
    Views
    1,666

    converting a string to an integer

    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.
  5. Replies
    1
    Views
    2,853

    Getting user input for filename loop

    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...
  6. Replies
    13
    Views
    10,458

    I like that solution! I never thought of using...

    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. :)
  7. Replies
    4
    Views
    3,167

    dude(quantizi), thanks for the...

    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...
  8. Replies
    4
    Views
    3,167

    passing parameters to main

    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...
  9. Replies
    2
    Views
    1,017

    No. The array is two dimesional. The x and y each...

    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.
  10. len=strlen(buffer); if(len!=0) ...

    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.
  11. I don't think you need the -1 when using strlen...

    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.
  12. Replies
    9
    Views
    3,688

    Hi, I need to use the sscanf function in a...

    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...
Results 1 to 12 of 12