Search:

Type: Posts; User: Oscar Wong

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    2,363

    Why "pointer expected"

    Please help to check



    struct remittance
    {
    char country[100];
    int total;
    int highest;
    int lastYearAmount;
  2. Replies
    1
    Views
    1,008

    malloc problem

    I dont know why the program doesn't allow to enter next line when the input is 1023 char...
    but 1022 char is working properly, i think the problem is in the malloc
    any comments?
    The purpose of the...
  3. Replies
    1
    Views
    3,777

    how to copy int from struct

    Please help to check with the copy integer part... I have no idea...
    Thank you!



    struct studInfo{
    char name[256];
    int age;
    };
  4. Yeah, i have solve this problem by myself, thanks...

    Yeah, i have solve this problem by myself, thanks all of you !!!!!!!!!
  5. is this right for the requirement? return 0; ...

    is this right for the requirement?

    return 0; if string1 is not started with string2
    return 1; if string1 is started with string 2
    return -2; if any NULL Pointer
    return -1; if empty
  6. i cant solve it....please help...

    i cant solve it....please help...
  7. i understand it, but i dont know how to code it...

    i understand it, but i dont know how to code it since there are 2 parameters, i dont know how to call only first char for each string...anymore hints or example for me?
  8. 1. start comparing from left to right 2. if...

    1. start comparing from left to right
    2. if match, then check next one until not match "alsk"
    3. return the result

    right?
  9. Compare 2 string using recursion....HEADACHE...PAINFUL

    How can i compare 2 string using recursion...

    If string1 is started with string2 then return 1
    else return 0
    (assume both of strings are in same case and valid.)

    e.g. string1 = hello guy;...
  10. Replies
    3
    Views
    1,464

    How to read Integer from a txt file

    The content of txt file is:

    item,coke,juice,beer
    1, 12, 26, 17
    2, 8, 18, 15
    3, 25, 35, 20

    i just need to read the integers, how can i ignore all the char?
  11. Replies
    4
    Views
    1,118

    as the question requirements.... i have to return...

    as the question requirements.... i have to return following for the program...
    11587
    any other method?
  12. Replies
    4
    Views
    1,118

    Recursive Program

    I don't know why the program cannot get the return value -2 when pass the NULL to the function positive(....) by hardcode, it only return 0 if the value of size is NULL... and it shows following...
  13. Replies
    1
    Views
    3,974

    Cant pass NULL pointer to the function

    i dont know why i cant pass NULL in first parameter, but second one is OK
    isComposedOf(ptr4word, ptr4letterSet)
    i always get this windows
    11571


    please help to check , THANK!!!!!!!!!!!
Results 1 to 13 of 13