+1

How to add c++ class.h , class.cpp, main.cpp files separately in SoloLearn IDE . Please help me.

I want to make a code with seperate class.h file and class.cpp file and main.cpp file. Can i do that in SoloLearn IDE. Or should i write them in one C++ file. Then how should i do it .

4/18/2019 12:30:06 PM

Nithya Yamasinghe

3 Answers

New Answer

+1

~ swim ~ how to do that please can you explain me more

+1

Nithya Yamasinghe Unfortunately you can't do that in codeplayground. You have to type the hrader and implementation in same file here.

+1

Nithya Yamasinghe Paste the code of your header file (include guard doesn't matter) followed by your implementation. Followed by the contents of main. Comment out all statements which are including your header file.