Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Member declaration not found.

$
0
0
When I was shown how classes are coded in c++ I was shown all in one file.
When I use eclipse to create a class is does it with a header file.

But when I do the following code it says member declaration not found.

inside header
void mymethod();


inside source file
void myclass::mymethod(){};


Spin off question is...should I get used to using classes with header and source files, or should I just mitigate this problem by using one file?

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>