home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!pagesat!netsys!ukma!tulane!rouge!rks9954
- From: rks9954@usl.edu (Srinivasa Rao K)
- Newsgroups: comp.lang.c++
- Subject: Friend ..Overload Assignment opertr ..
- Message-ID: <1993Jan22.075317.21062@usl.edu>
- Date: 22 Jan 93 07:53:17 GMT
- Organization: University of Southwestern Louisiana
- Lines: 37
-
-
-
-
-
- Hi C++ masters,
-
- I have small question ...
-
- I am writing a "string" class which i should be able
- to use like
-
-
- string str1;
-
- str1 = "Hello world" ;
-
-
-
- But We canot use a friend to overload the assignment oprator.
-
- So finally I had to convince myself to use something like
-
-
- str1 <= "Hello world"
-
-
- which works.
-
- Is there any way to do the first method ....
-
-
- Thanks for those who spend time reading this ....
-
-
-
-
- Rao.
-