最新回答 / 幕布斯6202225
#include<stdio.h>int main(){? ? int aaa = 20;? ? int bbb = 30;? ? // const int * constPoint = &aaa;? ? // printf("zhizhen: %d\n",* constPoint);? ??? ? // constPoint = &bbb;? ??? ? // printf("zhizhen: %d\n",* constPoint);? ??? ? // *constPoin...
2022-07-15
#include <stdio.h>
int o(int a, int b, int(*callback)())
{
int c = a + b;
int ret = (*callback)();
//printf("%d\n",ret);
int d = c + a;
return d;
}
int q()
{
printf("funcA\n");
return 0;
}
int main(int argc, char** argv)
{
o(1, 2, q);
return 0;
}
int o(int a, int b, int(*callback)())
{
int c = a + b;
int ret = (*callback)();
//printf("%d\n",ret);
int d = c + a;
return d;
}
int q()
{
printf("funcA\n");
return 0;
}
int main(int argc, char** argv)
{
o(1, 2, q);
return 0;
}
2022-07-03
最贊回答 / Colinchow
memcpy指的是C和C++使用的內存拷貝函數,函數原型為void *memcpy(void *destin, void *source, unsigned n);函數的功能是從源內存地址的起始位置開始拷貝若干個字節到目標內存地址中,即從源source中拷貝n個字節到目標destin中。
2022-04-11
感謝講師!江湖再會!另外,總感覺這門課程更應該叫“深入淺出C++”哈哈哈,我有點C#基礎,毫不掩蓋地說每節課都令我感到震撼,常常感嘆C++的強大。每節課都干貨滿滿,很精煉。再次感謝?。。。。。。。?!
2022-04-05