k8sCoder

导航

2023年11月10日 #

C++中获取数组长度

摘要: #include<iostream> using namespace std; template<class T> int length(T& arr) { //cout << sizeof(arr[0]) << endl; //cout << sizeof(arr) << endl; return 阅读全文

posted @ 2023-11-10 10:29 思念弥漫 阅读(250) 评论(0) 推荐(0) 编辑