【IT专家】检查笔记本电脑上的C ++版本
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
本文由我司收集整编,推荐下载,如有疑问,请与我司联系
检查笔记本电脑上的C ++版本
2017/09/27 168 I am currently in a CS class where we use C++, and I run Linux on my laptop. So the problem is that I think I don’t have the most up to date version of C++. I’ve read online for several commands to get the version and this is my result. Also my Linux version is 16.04, and I am compiling in my terminal
我目前在CS类中使用C ++,我在笔记本电脑上运行Linux。
因此问题是我认为我没有最新版本的C ++。
我已经在线阅读了几个命令来获取版本,这是我的结果。
我的Linux版本也是16.04,我正在我的终端编译
tom@TBT-XPS-13-9360:~/Documents/Subjects/CS/OOP$ g++ --versiong++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609Copyright (C) 2015 Free Software Foundation, Inc.This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I don’ know what part of this is my actual version of C++. If my version is not the most up to date, can someone please give me DETAILED instructions on how to do it. Still getting my Linux legs.
我不知道这部分是我的C ++实际版本。
如果我的版本不是最新版本,有人可以给我详细说明如何做到这一点。
仍然得到我的Linux腿。
10
C++ version (Or usually called c++ standard) is different than compiler version.
C ++版本(或通常称为c ++标准)与编译器版本不同。
g++ is your compiler, and your current version is g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
g ++是你的编译器,你当前的版本是g ++(Ubuntu 5.4.0-6ubuntu1~16.04.4)5.4.0 20160609
You can use different command to compile your program using different C++ version. 您可以使用不同的命令来编译使用不同C ++版本的程序。