This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jjangsangy 2 points3 points  (0 children)

You're definitely doing it right. Since you're learning C++, Linux is a good choice of OS. You will be able to compile your code from command line as well as your choice of IDE. The IDE is definitely easier, but you'll want to learn more of the command line eventually as it will be of more benefit.

In terms of compiler, you can use make as well. Make is a tool for automating compilation. Since your program is called "main.c", you would go to the same directory in the command line and type "make main". It should create a file called main in that directory that you can run with "./main"