[C++/Java] How to use objects with headers in app? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

[C++/Java] How to use objects with headers in app?

In object-oriented programming, you utilize multiple objects in different files which you import into your main file. How can you connect and import multiple files in SoloLearn? And if you can’t do it on this app, does anyone know of any iPhone apps which allow this?

26th Mar 2018, 5:37 PM
Adam Stebbing
Adam Stebbing - avatar
4 Answers
+ 2
CppDroid, CxxDroid, and C4Droid support external headers. Maybe some of these are available for iPhone as well. https://www.sololearn.com/discuss/366870/?ref=app
27th Mar 2018, 2:14 PM
Kinshuk Vasisht
Kinshuk Vasisht - avatar
+ 5
on sololearn it is not possible....... sorry don't know about other apps..
26th Mar 2018, 5:41 PM
Raj Chhatrala
Raj Chhatrala - avatar
+ 2
As Raj mentioned, that's not possible here. Online compiler operates from their server, so you're limited in what you have access to and what you can do overall. This is for both security and resource purposes, as I'm sure you can imagine the types of things people online would do if given free reign. Unfortunately, not everyone has good intentions for others. Personally, I don't know of any apps that'll allow that for anything non-web related. Best bet is to install an IDE onto your computer and operate from there. That way you can fully use the language and test out whatever you want. Either way, best of luck to ya!
26th Mar 2018, 5:52 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 1
Thanks, I guess there isn’t any iPhone apps available. For those wondering, you can still go onto HackerRank from your phone browser and solve problems there. It’s a great way to practice.
28th Mar 2018, 12:23 AM
Adam Stebbing
Adam Stebbing - avatar