我的第一篇博客
引言C++98 是 C++ 标准的第一个版本,而 C++11 及之后则带来了大量新特性和改进,它们在多个方面存在明显差异,需要进行学习 一 、auto自动类型推导简而言之,auto可以自动推导数据类型 例子1.推导数据类型12auto i = 5; // intauto str = "hello world" //const char* 2.推导返回值类型123auto sum(int a, int b) { return a + b;} 3.for循环下面给出for循环三种方式,读者可以对比 1234567map<string, int> mp;mp["apple"] = 1;mp["banana"] = 2;mp["cherry"] = 3;for (map<string, int>::iterator it = mp.begin(); it != mp.end(); it++) { cout << (*it).first...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment