mickey 發問時間: 社會與文化語言 · 1 0 年前

Programming question

can any one can explain and tell me how to use it

tks

int getSchedulePage

char* input, int inputLength, char *output, int *outputLength

已更新項目:

int getSchedulePage (

char* input, int inputLength, char *output, int *outputLength)

{

1 個解答

評分
  • 1 0 年前
    最佳解答

    They seems are some varibles used in C or C++ language.

    There are three kinds of varibles: integer(int), character pointer(char *) & integer pointer(int *).

    Usage of integer: assign value(eg. getSchedulePage = 9), calcuate result(eg. + - * /...etc), get its value(eg. printf("%d", inputLength);)

    Usage of character pointer: normally use with character array, get inputted string or print out string.(eg. scanf("%s", input);)

    Usage of integer pointer: it can use with integer array or operate other integer varible indirectly.(eg. inputLength = strlen(input); outputLength = &inputLength; printf("%d", *outputLength);)

    參考資料: me
    • 登入以對解答發表意見
還有問題?馬上發問,尋求解答。