C11 学习系列1 : auto类型
http://www.chenlq.net/cpp11-faq-chs
有人翻译c++ FAQ
auto x = expression;
Example:
#include "stdafx.h"
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
auto i = 10.00;
cout<<i<<endl;
return 0;
}
vs2012 输出是10