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.
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..
0
how you include the file ?
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.
0
I was expected it easy as import statement on python cause I learned python months ago.
0
I'm not using Sololearn playground I'm using dev-c++.