> #include <iostream>
>
> using namespace std;
>
> class friend_ex
> {
> public:
> int data_;
> friend_ex (int p_data)
> {
> data_ = p_data;
> }
> friend void a_friend_func(friend_ex * friend_ex_obj);
> void a_class_funct();
> };
>
> void friend_ex::a_class_funct()
> {
> cout << "data_=" << data_ << endl;
> }
>
> void a_friend_func(friend_ex * friend_ex_obj)
> {
> friend_ex_obj->a_class_funct();
> }
>
> int main()
> {
> friend_ex a_friend_obj(12345);
> a_friend_func(&a_friend_obj);
> return 0;
> }
>
Brother i am also doing samething read carefully..................:(
--
Parvinder Rajput
website:- www.parvinder.co.in
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest