Click here to Skip to main content
16,017,448 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How To Paste Clipboard data in TextBox In Other Dialog Pin
Zhen-Xlogic17-May-07 23:14
Zhen-Xlogic17-May-07 23:14 
GeneralRe: How To Paste Clipboard data in TextBox In Other Dialog Pin
Hans Dietrich18-May-07 3:02
mentorHans Dietrich18-May-07 3:02 
Questioncompiler error with << operator overloading [modified] Pin
Dj_Lordas17-May-07 0:16
Dj_Lordas17-May-07 0:16 
AnswerRe: compiler error with << operator overloading Pin
Hans Dietrich17-May-07 0:37
mentorHans Dietrich17-May-07 0:37 
GeneralRe: compiler error with << operator overloading Pin
Dj_Lordas17-May-07 2:29
Dj_Lordas17-May-07 2:29 
GeneralRe: compiler error with << operator overloading Pin
David Crow17-May-07 2:44
David Crow17-May-07 2:44 
GeneralRe: compiler error with << operator overloading Pin
Dj_Lordas17-May-07 3:15
Dj_Lordas17-May-07 3:15 
QuestionRe: compiler error with << operator overloading Pin
David Crow17-May-07 3:58
David Crow17-May-07 3:58 
Dj_Lordas wrote:
templateostream& Tstack::operator<< (Tkontaktai* duom){ ostream& outstr; outstr << duom->s_vardas() << " " << duom->s_tel() << endl; return ostr;}


Shouldn't this be:

class Tkontaktai
{
public:
    friend ostream& operator<<( ostream&, const Tkontaktai& );
};
ostream& operator<<( ostream &os, const Tkontaktai &duom )
{
    return os << duom.vardas << " " << duom.tel << endl;
}



"A good athlete is the result of a good and worthy opponent." - David Crow

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


AnswerRe: compiler error with &amp;amp;amp;amp;amp;amp;lt;&amp;amp;amp;amp;amp;amp;lt; operator overloading Pin
Dj_Lordas17-May-07 4:11
Dj_Lordas17-May-07 4:11 
QuestionBarcode reading Pin
kk.tvm17-May-07 0:11
kk.tvm17-May-07 0:11 
AnswerRe: Barcode reading Pin
toxcct17-May-07 0:45
toxcct17-May-07 0:45 
AnswerRe: Barcode reading Pin
Hans Dietrich17-May-07 1:30
mentorHans Dietrich17-May-07 1:30 
QuestionApplication & Citrix Pin
Sivaraman Dhamodaran17-May-07 0:03
Sivaraman Dhamodaran17-May-07 0:03 
AnswerRe: Application & Citrix Pin
Hans Dietrich17-May-07 1:38
mentorHans Dietrich17-May-07 1:38 
Questioninstalled path Pin
deeps_cute16-May-07 23:45
deeps_cute16-May-07 23:45 
AnswerRe: installed path Pin
Mark Salsbery17-May-07 5:37
Mark Salsbery17-May-07 5:37 
AnswerRe: installed path Pin
Nelek17-May-07 20:18
protectorNelek17-May-07 20:18 
QuestionCommon Database within Systems in Network for VC++ Application Pin
Andy Rama16-May-07 23:44
Andy Rama16-May-07 23:44 
AnswerRe: Common Database within Systems in Network for VC++ Application Pin
Mark Salsbery17-May-07 5:40
Mark Salsbery17-May-07 5:40 
QuestionHelp for making a DLL Pin
Sunil KC16-May-07 23:19
Sunil KC16-May-07 23:19 
AnswerRe: Help for making a DLL Pin
Hamid_RT17-May-07 1:35
Hamid_RT17-May-07 1:35 
GeneralRe: Help for making a DLL Pin
Sunil KC17-May-07 21:00
Sunil KC17-May-07 21:00 
GeneralRe: Help for making a DLL Pin
Hamid_RT18-May-07 2:09
Hamid_RT18-May-07 2:09 
Question"application failed to initialize properly(0xc0000142)" error in Vista [modified] Pin
rp_suman16-May-07 22:56
rp_suman16-May-07 22:56 
AnswerRe: 0xc0000142 error in Vista Pin
Paresh Chitte16-May-07 23:58
Paresh Chitte16-May-07 23:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.