使用gson解析json后怎么把数组放到listview中
#include
using std::string;
inline size_t hash_str( const char* s )
{
unsigned long res = 0;
for ( ; *s; ++s )
res = 5 * res + *s;
return size_t(res);
}
template
struct hash
{
size_t operator () ( const Key& k ) const;
};
// 一般的对象,比如:vector< queue
template < class Key >
size_t hash
{
size_t res = 0;
size_t len = sizeof( Key );