strlen和sizeof 的区别

下面会举一些具体的例子来说明两者的区别 例子1 #include<iostream> #include<vector> #include<string.h> using namespace std; int main() { char sayhello[] = {'h','e','l','l','o',' ','w','o','r','l','d','\0'}; cout<<sa
相关文章
相关标签/搜索