[Dev-C++] using classes in seprate files
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: faramarz y. <far...@ho...> - 2004-04-14 17:45:06
|
hi anybody
i have a problem to using seprate c++ classes.
i have write a class "Search.cpp",it has two function in it.
it has not any main function.
now i want to write another file for example test_search
i want to instantiate an object from Search class in it and use it's
function there.
i wrote:
Search s;
s.linear();
but i can not use class Search in it because compiler does not know it.
what should i do?
in dev_c++ or borland c++?
thank u in advanced
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
|