最新回答 / 幕布斯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