Hi, @명관 송
What test
needs is a function
pointer (which with void* function as a parameter). cc is actually not called.
snippet without error, output nothing:
#include<iostream>
void cc(void (*pFunc)())
{
std::cout << "1" << std::endl;
}
void vv()
{
std::cout << "2" << std::endl;
}
void test(void (*pFunc)(void (*pFun2)()))
{
}
int main()
{
test(cc);
}
Best regards,
Minxin Yu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our [documentation][3] to enable e-mail notifications if you want to receive the related email notification for this thread.