Error 1 error C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. ----\test\consoleapplication1\consoleapplication1\test.cpp 9 1 ConsoleApplication1
說一個比較好記的方法來區(qū)分 int const *p與 int* const p,把*讀作pointer to然后從后往前讀.
第一個int const *p就可以讀作 p is a pointer to const int,p是指向常量的指針
第二個int* const p就可以讀作 p is a const pointer to int,p是指向int型的常指針
第一個int const *p就可以讀作 p is a pointer to const int,p是指向常量的指針
第二個int* const p就可以讀作 p is a const pointer to int,p是指向int型的常指針
2015-07-14