Skip to content
Sign upLog in
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
4

Creating header files for a C++ class

kmcrae
kmcrae

I have a classroom set up for my C++ students and we are now learning about creating our own classes. I need to be able to define the class structure in a file saved as a header file. Can this be done on Repl.it? I tried just naming it with the .h extension but I get all kinds of errors related to not knowing what the Class type is, which I am sure relates to the header file.

4 years ago
You are viewing a single comment. View All
4
2
kmcrae
kmcrae

@SPQR
I actually got it to work now. Thanks for replying. It was just an inconsistent naming issue that I didn't see at first.

4 years ago
1
JerryLatham
JerryLatham

How did you get it to work? I am trying to do the same thing, but the lecture is using code [email protected]

3 years ago
2
BillyLandis
BillyLandis

@kmcrae
can you share your solution?

3 years ago
1
MajidGomainy
MajidGomainy

@SPQR
Though is not related! How can we use the OpenGL for c++ in repl.it?

2 years ago