久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  1. <legend id='26exw'><style id='26exw'><dir id='26exw'><q id='26exw'></q></dir></style></legend>
    <i id='26exw'><tr id='26exw'><dt id='26exw'><q id='26exw'><span id='26exw'><b id='26exw'><form id='26exw'><ins id='26exw'></ins><ul id='26exw'></ul><sub id='26exw'></sub></form><legend id='26exw'></legend><bdo id='26exw'><pre id='26exw'><center id='26exw'></center></pre></bdo></b><th id='26exw'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='26exw'><tfoot id='26exw'></tfoot><dl id='26exw'><fieldset id='26exw'></fieldset></dl></div>
    <tfoot id='26exw'></tfoot>
      <bdo id='26exw'></bdo><ul id='26exw'></ul>

      <small id='26exw'></small><noframes id='26exw'>

    1. Visual Studio Code c++11 擴展警告

      Visual Studio Code c++11 extension warning(Visual Studio Code c++11 擴展警告)

      <legend id='wpn8e'><style id='wpn8e'><dir id='wpn8e'><q id='wpn8e'></q></dir></style></legend>
      • <bdo id='wpn8e'></bdo><ul id='wpn8e'></ul>
            <tbody id='wpn8e'></tbody>

        • <small id='wpn8e'></small><noframes id='wpn8e'>

          1. <tfoot id='wpn8e'></tfoot>

              <i id='wpn8e'><tr id='wpn8e'><dt id='wpn8e'><q id='wpn8e'><span id='wpn8e'><b id='wpn8e'><form id='wpn8e'><ins id='wpn8e'></ins><ul id='wpn8e'></ul><sub id='wpn8e'></sub></form><legend id='wpn8e'></legend><bdo id='wpn8e'><pre id='wpn8e'><center id='wpn8e'></center></pre></bdo></b><th id='wpn8e'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='wpn8e'><tfoot id='wpn8e'></tfoot><dl id='wpn8e'><fieldset id='wpn8e'></fieldset></dl></div>

                本文介紹了Visual Studio Code c++11 擴展警告的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我正在學習 C++,我正在使用適用于 Mac 的 Visual Studio 代碼.我使用 Code Runner 運行我的程序.我的問題是,當我使用 C++11 中的auto"等變量聲明時,visual studio 代碼會給我這樣的警告,但如果我嘗試在 Xcode 或 Eclipse 上運行它,則不會:

                I am in the process of learning c++ and I'm using visual studio code for Mac. I use Code Runner to run my program. My problem is that when I use something from c++11 like "auto" for variable declaration, visual studio code gives me a warning like this, but if I try running it on Xcode or Eclipse it doesn't:

                warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
                for(auto y: nstrVec)
                

                這是必要的程序:

                #include <iostream>
                #include <cstdlib>
                #include <string>
                #include <vector>
                #include <numeric>
                #include <sstream>
                
                int main(){
                
                std::vector<std::string> nstrVec(10);
                
                std::string str("I'm a string");
                nstrVec[0] = str;
                
                std::cout << str.at(0) << "
                ";
                std::cout << str.front() << " " << str.back() << "
                ";
                std::cout << "Length " << str.length() << "
                ";
                // copies all characters after the fourth 
                std::string str2(str, 4);
                
                for(auto y: nstrVec)
                    if(y != "")
                        std::cout << y << "
                ";
                
                return 0;
                }
                

                這是 c_cpp_proprerties.json 文件:

                And this is the c_cpp_proprerties.json file:

                {
                "configurations": [
                    {
                        "name": "Mac",
                        "includePath": [
                            "${workspaceFolder}/**",
                                 "/System/Library/Frameworks/Kernel.framework/Versions/A/Headers"
                        ],
                        "defines": [],
                        "macFrameworkPath": [
                            "/System/Library/Frameworks",
                            "/Library/Frameworks"
                        ],
                        "compilerPath": "/usr/bin/clang",
                        "cStandard": "c11",
                        "cppStandard": "c++17",
                        "intelliSenseMode": "clang-x64"
                    }
                ],
                "version": 4
                }
                

                推薦答案

                在 VS Code 中:

                In VS Code:

                文件>>首選項>>設置>>擴展

                File>>Preference>>Settings>>Extensions

                find C_Cpp>默認:Cpp 標準下拉菜單

                find C_Cpp>Default:Cpp Standard drop down menu

                將其設置為 c++11

                set that to c++11

                這篇關于Visual Studio Code c++11 擴展警告的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                In what ways do C++ exceptions slow down code when there are no exceptions thown?(當沒有異常時,C++ 異常會以何種方式減慢代碼速度?)
                Why catch an exception as reference-to-const?(為什么要捕獲異常作為對 const 的引用?)
                When and how should I use exception handling?(我應該何時以及如何使用異常處理?)
                Scope of exception object in C++(C++中異常對象的范圍)
                Catching exceptions from a constructor#39;s initializer list(從構造函數的初始化列表中捕獲異常)
                Difference between C++03 throw() specifier C++11 noexcept(C++03 throw() 說明符 C++11 noexcept 之間的區別)

                  • <i id='c1SwS'><tr id='c1SwS'><dt id='c1SwS'><q id='c1SwS'><span id='c1SwS'><b id='c1SwS'><form id='c1SwS'><ins id='c1SwS'></ins><ul id='c1SwS'></ul><sub id='c1SwS'></sub></form><legend id='c1SwS'></legend><bdo id='c1SwS'><pre id='c1SwS'><center id='c1SwS'></center></pre></bdo></b><th id='c1SwS'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='c1SwS'><tfoot id='c1SwS'></tfoot><dl id='c1SwS'><fieldset id='c1SwS'></fieldset></dl></div>
                      <tbody id='c1SwS'></tbody>
                    <tfoot id='c1SwS'></tfoot>

                      <small id='c1SwS'></small><noframes id='c1SwS'>

                        <legend id='c1SwS'><style id='c1SwS'><dir id='c1SwS'><q id='c1SwS'></q></dir></style></legend>
                          <bdo id='c1SwS'></bdo><ul id='c1SwS'></ul>
                        • 主站蜘蛛池模板: www精品美女久久久tv | 精品日韩一区二区三区av动图 | 成人国产精品久久 | 亚洲一区二区电影在线观看 | 在线观看国产视频 | 成人性视频在线播放 | 91欧美精品成人综合在线观看 | 福利社午夜影院 | 亚洲天堂久久 | 狠狠操狠狠干 | 欧美成人激情 | 在线欧美小视频 | 免费av在线网站 | 国产日韩在线观看一区 | av在线播放免费 | 亚洲看片网站 | 99re热精品视频国产免费 | 久久精品综合 | 91久久国产综合久久 | 欧美性一区二区三区 | 国产精品日韩在线观看一区二区 | 欧美性a视频 | 国产精品一区二区视频 | 黑人精品xxx一区一二区 | 久久综合国产精品 | 伊人一二三 | 日韩精品一区二区三区视频播放 | 日韩在线不卡视频 | 一区二区三区四区在线 | 五月精品视频 | 日韩高清国产一区在线 | 国产欧美一区二区三区国产幕精品 | 亚洲精品久久久久久首妖 | 国产wwwcom| 日韩精品在线播放 | www.887色视频免费 | 久久尤物免费一区二区三区 | 日韩欧美亚洲综合 | 国产欧美一区二区三区在线看蜜臀 | 福利视频网址 | 亚洲欧美日韩在线一区二区 |