The question is in the title.
So far I've only used IntelliJ for Java. Do I need to download some sort of Compiler or how can I create C++ files?
The question is in the title.
So far I've only used IntelliJ for Java. Do I need to download some sort of Compiler or how can I create C++ files?
Like @dddavid said,there is an IDE made by JetBrains for C/C++ called Clion. It is quite easy to use if you are familiar with intelliJ
However, if your question is how to compile and run C/C++ in intelliJ, there are still ways for you! (Which is not recommended if you are trying to develop large project in C/C++ in intelliJ.)
If you really want to do that, there is a terminal in intelliJ. If you are in linux system, try to get gcc for C and g++ for C++. If you are in windows system, you can try to get mingw or other compilers for C/C++.
After getting the compiler, you could simply type commands in the terminal inside intelliJ to compile C/C++ and run it.
For example, if you are in linux with g++, if you wants to compile main.cpp
:
Follow these step:
type g++ main.cpp
in the terminal inside intelliJ
type ./a.out
in the terminal inside intelliJ
And it will start to run your C/C++ program!