C++ is one of the most popular programming languages and is an important skill in several industries. Learn what C++ is, careers that use it, and tips to learn this language.
C++ (or “C-plus-plus”) is a programming language for building software. It’s an object-oriented language that focuses on objects (data fields that have unique attributes) rather than logic or functions. A common example of an object is a user account on a website. A user account is typically comprised of data like first name, last name, email address, etc., and can be easily replicated each time a new account is created.
Did you know? C++ was invented by Bjarne Stroustrup in 1979 to extend C, a procedural programming language. C++ was designed to offer programmers more control over memory and system resources.
Since its creation, C++ has become the language of choice for building fast and reliable software. Its versatility makes it an excellent match for complex applications, embedded systems, and internet of things (IoT) devices. A few common use cases include:
Software engineering. A couple of applications you might use daily that were created with C++ include Netflix and Amazon.
Operating systems (OS) development. Examples of OS that were created with C++ include Microsoft Windows, Mac OS X, and iOS.
Graphical user interfaces. C++ is often recommended for graphical user interface design or, GUI.
Virtual reality (VR). C++ can be an excellent language to learn if you want to develop VR applications.
Blockchain technology. The well-known cryptocurrency Bitcoin was developed in C++. It can also be used to create smart contracts.
Game development. You can develop games and gaming consoles with C++. For example, the game World of Warcraft and the Xbox console.
C plus-plus is a great language to learn if you want to gain a deep understanding of how computers work. It's generally considered a good starting point for novice or beginner coders. With knowledge of C++, you may also be able to pick up other languages like Python or JavaScript more easily.
Programming in C++ offers several advantages. Because it is object-oriented, you can easily organise and classify the code. Instead of rewriting code from scratch, you can reuse it. You can also use C plus-plus to interact directly with a computer’s hardware. As a result, you'll be able to control how a system uses its computational resources, like software, hardware, and memory.
Having experience with C++ can introduce you to job opportunities with high-paying salaries. As of February 2023, Glassdoor reported the median C/C++ programmer salary in the UK was £43,436[1]. However, salaries vary greatly, and the highest reported annual income in the UK was £71,223 for a C++ programmer at that time. This range depends on location, experience, job responsibilities, and company size, amongst other factors.
C++ basics include storing information, repeating actions through loops, and collecting user input. The list below outlines a few key concepts and topics for C++ beginners to explore:
Conditionals like “if statements,” “if else statements,” and “switch case statements,” which tell a computer what to do during certain conditions
How to assign classes to objects (data fields with unique attributes)
How to write code using C++ syntax, the predefined symbols, and characters that determine how a computer reads the code
How to compile and link a C++ file, so that the code can run on a machine
It can be helpful to connect and learn from other, more experienced programmers. Connect with other programmers and apply your C++ skill set to projects like GitHub, StackExchange, and CodeWars. Consider learning skills in computer science, software engineering, and other programming languages like JavaScript and Python to diversify your knowledge.
Online courses can be a great way to learn C++ and build a strong foundation for your programming career. Coursera hosts several courses and Specialisations designed to suit your skill level and learning goal. For beginner coders, consider completing the Coding for Everyone: C and C++Specialisation offered by the University of California Santa Cruz. For intermediate coders, Object-Oriented Data Structures in C++ offered by the University of Illinois can help you build on your foundation and enter higher-level professional roles.
学习 C++ 所需的时间取决于多个因素,包括您在编程语言方面的经验、学习课程的类型以及您定期投入的时间。
如果您是初学者,预计需要花 2 到 3 个月的时间学习基础知识,6 到 12 个月的时间学习解决复杂的编程问题。 要了解学习 C++ 需要多长时间,可以查看不同 C++ 初学者课程的教学大纲或内容概要,并思考自己每天或每周可以花费多少时间。
您可以在没有教师或导师现场指导的情况下学习 C++。 也就是说,您可能需要寻找课程、教程和其他教育资源,以最有利于学习的顺序来学习概念和技能。 如需更多支持,请加入 C++ 社区论坛,提出问题并找到解决编程难题的方法。
对于编程新手来说,重要的是要知道 C++ 的语法比其他语言更先进。 有了其他编程语言(如 C 或 Python)的经验,学习 C++ 可能会更容易。 同时,首先学习 C++ 可以为学习其他编程语言打下坚实的基础。
Glassdoor. “C/C++ Programmer Salaries in the United Kingdom, https://www.glassdoor.co.uk/Salaries/uk-c-programmer-salary-SRCH_IL.0,2_IN2_KO3,15.htm?clickSource=searchBtn.” Accessed February 5, 2023
Editorial Team
Coursera’s editorial team is comprised of highly experienced professional editors, writers, and fact...
此内容仅供参考。建议学生多做研究,确保所追求的课程和其他证书符合他们的个人、专业和财务目标。