Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 11661

How can I use a class from a header file in a source file using extern but not #include?

$
0
0

If I have a class in outside.h like:

class Outside{   public:       Outside(int count);       GetCount();}

How can I use it in framework.cpp using the extern keyword, where I need to instantiate the class and call GetCount?


Edit:

#include is not allowed.


Viewing all articles
Browse latest Browse all 11661

Trending Articles



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