FAQ: Hello World - Introduction to C++

This community-built FAQ covers the “Introduction to C++” exercise from the lesson “Hello World!”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Learn C++

FAQs on the exercise Introduction to C++

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

2 Likes

The first lesson whwre you run codecademy it started to position the code on the bottom but for the solution it was right next to it How?

What is object orientated programming in simple words if possible?

1 Like

The phrase “Object Oriented” means that a program compiles in segments, not line-by-line. For example, in C++, you can create a method that contains different attributes, such as string name1 = "death-waltz"; as a part of the constructor, and then call it again CUSTOMIZABLY, meaning you can replace it with new characters, if the string is not immutable. In non-OOPLs, you cannot do this to my understanding. Hope this helps!

Just so you guys know, cout does not stand for character output, as you said in lesson 3: “Output”. Rather, it stands for console output. I understand some people refer to it as C++ out, C out, character out, create output, etc., but I do believe the actual meaning is console output .

1 Like

Can I use c++ to create games? If not what code can I use?

Modern desktop games like Half-life, Doom and so on are mainly written in C++ with API libraries for graphics, such as: OpenGL, DirectX, Vulkan. There are also lots of complicated math involved so you may consider brushing up your knowledge in group theory, probability theory, calculus and etc.

1 Like

у меня такой вопрос в упражнение компиляций это обязательно знать или это всторостепенное

what is std used for? and what is the difference between int main() and void main()?

you can avoid using std everytime just add using namespace std; before the main function/ after adding the libraries. Int and void are return types of the main function. Int main will return an integer and void main returns void/null(basically nothing)

How do i make Animation Sortware (similar to GoAnimate/Vyond), and Game Programming?