简体   繁体   中英

What is the difference (if there are any) between C++ and C++(Legacy)?

For my college classes, we have been using Replit to code in, and I have noticed that some of my projects are using C++ and some are using what Replit calls C++(Legacy). Are there any differences between the two that I need to be aware of that affect my projects in the future?

左边是 C++,右边是 C++(Legacy)

Legacy code is a source code that relates to a no-longer supported or manufactured operating system or other computer technology. C++ is considered to be one of the foundation languages for many new programming languages, so a lot of legacy code is still in C++. Well, that's what I found on the web anyway. hope this helps. Also, I would assume that means there isn't much of a difference.

https://hackr.io/blog/c-sharp-vs-cpp#:~:text=C%2B%2B%20is%20more%20prominent%20and%20considered%20one%20of,level%20of%20abstraction%20and%20offers%20automatic%20garbage%20collection . is where I found the first part,
the part about legacy code is found at https://www.typemock.com/what-every-c-developer-need-to-know-about-legacy-code/

From signing up with a Replit account and poking around, I discovered this:

C++ projects use the compiler

clang version 12.0.1

C++ (Legacy) projects use the compiler

clang version 7.0.0

In general, a newer compiler is a more capable compiler.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM