How do I create a new cpp file using cc++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do I create a new cpp file using cc++

Hello folks, Anyone has any idea how can I create a new cpp file using cc++ ? Right now I have main.cpp and I want to add another file,a subcategory to proced this file. Waiting for your suggestions! Regards, Mirabela Vasile

26th Jul 2017, 4:50 PM
Mirabela Vasile
Mirabela Vasile - avatar
2 Answers
+ 8
which ide are you using? should be a simple matter of creating a new text file in the same directory as your main.cpp and naming the new file with a .h or .cpp extension.
26th Jul 2017, 5:01 PM
jay
jay - avatar
0
code::Blocks 16.01.tried that but I am not allowed to do it.any other suggestion how to add?
26th Jul 2017, 5:58 PM
Mirabela Vasile
Mirabela Vasile - avatar