How can I use separated class in dev-c++. Sololearn's instructions is not working with it. | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

How can I use separated class in dev-c++. Sololearn's instructions is not working with it.

I am learning c++ with this app but I don't have visu al c++. I am using dev-c++. Whenever I make separate class file it says file not found. I put my .h and .cpp file and my main.cpp file in the same folder but it never goes right.

18th Aug 2020, 9:09 AM
Jherson Clorado
Jherson Clorado - avatar
5 Respuestas
+ 1
SoloLearn can't support including user defined external file including.. Everything you need to deal with single current code file in SoloLearn.. (i.e creation, manipulation in current file..) Because of its dealing with server limitations, you can't import user defined files..
18th Aug 2020, 9:32 AM
Jayakrishna 🇮🇳
0
how you include the file ?
18th Aug 2020, 9:17 AM
Rei
Rei - avatar
0
In my .h: #ifndef MYCLASS_H #define MYCLASS_H In my .cpp class #include "myclass.h" In my main cpp #include"myclass.h" I copied it from sololearn correctly.
18th Aug 2020, 9:23 AM
Jherson Clorado
Jherson Clorado - avatar
0
I was expected it easy as import statement on python cause I learned python months ago.
18th Aug 2020, 9:24 AM
Jherson Clorado
Jherson Clorado - avatar
0
I'm not using Sololearn playground I'm using dev-c++.
19th Aug 2020, 2:30 AM
Jherson Clorado
Jherson Clorado - avatar