auto用法

2018-01-12  本文已影响0人  羽仙_51c7

auto可以在声明变量的时候根据变量初始值的类型自动为此变量选择匹配的类型
'''
string a='hello';
auto b=a;
'''

上一篇 下一篇

猜你喜欢

热点阅读