#include <iostream> using namespace std; int main() { const char *str1="Hello"; cout<<str1[4]<<endl; return 0; }
指针与字符串
本人新博客网址为:http://www.hizds.com
本博客注有“转”字样的为转载文章,其余为本人原创文章,转载请务必注明出处或保存此段。c++/lua/windows逆向交流群:69148232
#include <iostream> using namespace std; int main() { const char *str1="Hello"; cout<<str1[4]<<endl; return 0; }