Click here to Skip to main content
15,886,919 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionSTL Map Pin
VVVimal22-Sep-09 4:10
VVVimal22-Sep-09 4:10 
AnswerRe: STL Map Pin
Michael Dunn22-Sep-09 12:54
sitebuilderMichael Dunn22-Sep-09 12:54 
AnswerRe: STL Map Pin
Andy Moore23-Sep-09 5:19
Andy Moore23-Sep-09 5:19 
QuestionSYSTEMTIME Pin
VVVimal14-Sep-09 19:17
VVVimal14-Sep-09 19:17 
AnswerRe: SYSTEMTIME Pin
Stuart Dootson15-Sep-09 0:18
professionalStuart Dootson15-Sep-09 0:18 
AnswerRe: SYSTEMTIME Pin
BlueSkycpp26-Oct-09 18:47
BlueSkycpp26-Oct-09 18:47 
QuestionCompare two different STL list Pin
VVVimal13-Sep-09 21:56
VVVimal13-Sep-09 21:56 
AnswerRe: Compare two different STL list Pin
Stuart Dootson13-Sep-09 23:07
professionalStuart Dootson13-Sep-09 23:07 
No, it's not the best way - the best way would be to define an operator== for Student, then use the operator== defined for std::list. Also - isn't the 'name' member a std::string? In which case that has an operator==

Anyway - I'd do this:

class Student
{
public:
std::string name;
int age;
friend bool operator==(Student const& left, Student const& right)
{ return left.age==right.age && left.name==right.name; }
};
std::list<Student> _studentList1;
std::list<Student> _studentList2;


Then in code, I could do

if (_studentList1 == _studentList2)


Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

QuestionPreventing multiple instances of COM singleton??? Pin
kb-boxer30-Aug-09 20:52
kb-boxer30-Aug-09 20:52 
AnswerRe: Preventing multiple instances of COM singleton??? Pin
«_Superman_»30-Aug-09 21:20
professional«_Superman_»30-Aug-09 21:20 
GeneralRe: Preventing multiple instances of COM singleton??? Pin
kb-boxer31-Aug-09 0:23
kb-boxer31-Aug-09 0:23 
QuestionHow can I hide the WTL Dialog scrollbar in SmartPhone? Pin
Kiss Rain17-Aug-09 17:29
Kiss Rain17-Aug-09 17:29 
QuestionWhat should I do that I want to develop a MenuBar or ToolBar using ATL? [modified] Pin
Nothend11-Aug-09 19:37
Nothend11-Aug-09 19:37 
QuestionWhere to get more information about windows shell? Pin
mr.dot9-Aug-09 7:51
mr.dot9-Aug-09 7:51 
AnswerRe: Where to get more information about windows shell? [modified] Pin
Richard MacCutchan8-Sep-09 0:59
mveRichard MacCutchan8-Sep-09 0:59 
GeneralRe: Where to get more information about windows shell? Pin
mr.dot8-Sep-09 15:11
mr.dot8-Sep-09 15:11 
GeneralRe: Where to get more information about windows shell? Pin
Richard MacCutchan8-Sep-09 22:23
mveRichard MacCutchan8-Sep-09 22:23 
AnswerRe: Where to get more information about windows shell? Pin
David_LoveCpp28-Sep-09 21:26
David_LoveCpp28-Sep-09 21:26 
QuestionATL Services Cannot start? Pin
fitatc6-Aug-09 20:23
fitatc6-Aug-09 20:23 
Questionhow to find Textbox value in the DirectUI Pin
ChinaTJBoy23-Jul-09 21:28
ChinaTJBoy23-Jul-09 21:28 
AnswerRe: how to find Textbox value in the DirectUI Pin
Michael Dunn27-Jul-09 12:19
sitebuilderMichael Dunn27-Jul-09 12:19 
QuestionCan I use std::tr1::share_ptr in VS2008 SP1 to replace auto_ptr in my project? Pin
hawkgao012922-Jul-09 15:53
hawkgao012922-Jul-09 15:53 
AnswerRe: Can I use std::tr1::share_ptr in VS2008 SP1 to replace auto_ptr in my project? Pin
Stuart Dootson22-Jul-09 18:58
professionalStuart Dootson22-Jul-09 18:58 
GeneralRe: Can I use std::tr1::share_ptr in VS2008 SP1 to replace auto_ptr in my project? Pin
hawkgao012922-Jul-09 20:21
hawkgao012922-Jul-09 20:21 
GeneralRe: Can I use std::tr1::share_ptr in VS2008 SP1 to replace auto_ptr in my project? Pin
Stuart Dootson22-Jul-09 21:34
professionalStuart Dootson22-Jul-09 21:34 

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.