随便写个小程序,总提示超时,最后发现是因为给find_first_of()返回了一个unsigned int,而不是size_t,而
size_t在32位架构中定义为:
typedef unsigned int size_t;在64位架构中定义为:
typedef unsigned long size_t;
还是auto大法好啊!
随便写个小程序,总提示超时,最后发现是因为给find_first_of()返回了一个unsigned int,而不是size_t,而
size_t在32位架构中定义为:
typedef unsigned int size_t;typedef unsigned long size_t;
还是auto大法好啊!