Equivalent to Windows getch() for Mac/Linux crashes

后端 未结 4 1841
心在旅途
心在旅途 2020-12-03 15:27

I am using getch() and my app crashes instantly. Including when doing:

int main()
{
    getch();
}

I can\'t find the link but

4条回答
  •  猫巷女王i
    2020-12-03 15:51

    You have not exhibited a

    #include 
    

    or

    #include 
    

    or similar line. Are you sure that you are linking against a library that includes getch()?

提交回复
热议问题