2010-06-14 180 views
2

所以我有几行代码:无法从“诠释”转换为“诠释*”

int maxY, maxX; 
getmaxyx(stdscr, &maxY, &maxX); 

它给了我下面的错误:

error C2440: '=' : cannot convert from 'int' to 'int *' 
     Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast 

两次,每次我用它。我甚至没有使用=操作符!包含curses.h文件。我究竟做错了什么?

回答