Можно создать дубликат:
main.cpp access member function of another .cpp witin same source fileдоступ два .cpp файл в одном исходном файле в VC++
я использую два CPP файлы в одном Исходный_файл another.cpp здесь я использую один класс и член функция как,
Another.cpp
class A
{
public :
int Add();
};
int A::Add()
{
-----
-------
}
------------------
main.cpp
here also,
class B
{
--------
}
int main()
{
here ,can i possible to create an object for class A and access Add function without(using without header file is important)...
return 0;
}
заранее спасибо ..
Дубликат http://stackoverflow.com/questions/1304035/main-cpp-access-member-function-of-another-cpp-witin-same-source-file Пожалуйста, отредактируйте исходный вопрос, а не задайте новый один. – Naveen
ok fine..thanks for ur advice – Rajakumar