Re: [programming] tanya map nya STL dong [oot bgt :-)]

2001-08-03 Terurut Topik el-anastasia
Mohamad Ilhami wrote: BTW, ini bukan tugas dari dosen anda kan? bukan ini demi sesuap nasi, hiks. ...dan segenggam berlian :-) -- Thu Aug 2 19:35:02 JAVT 2001 I'd love to go out with you, but I'm staying home to work on my cottage cheese sculpture. -- Utk berhenti langganan, kirim

Re: [programming] tanya map nya STL dong

2001-08-01 Terurut Topik Eko Bono
--- Mohamad Ilhami [EMAIL PROTECTED] schrieb: #include stdio.h #include stdlib.h #include string #include map struct ltstr { bool operator()(const char* s1, const char* s2) const { return strcmp(s1, s2) 0; } }; typedef struct tagFoo { int a; int b;

Re: [programming] tanya map nya STL dong

2001-08-01 Terurut Topik Benny Prijono
Mohamad Ilhami wrote: for (iter = M.begin(), i = 0; i M.size(); i++, iter++) { printf(M[%s] a=%2d b=%2d\n, iter-first, M[iter-first].a, M[iter-first].b); } Bisa nggak ya kita iterasi seluruh elemen M tanpa menggunakan variable i? cukup dengan iter. biasanya

Re: [programming] tanya map nya STL dong

2001-08-01 Terurut Topik Agus Budy Wuysang
Mohamad Ilhami wrote: for (iter = M.begin(), i = 0; i M.size(); i++, iter++) { printf(M[%s] a=%2d b=%2d\n, iter-first, M[iter-first].a, M[iter-first].b); } for (iter = M.begin(); iter (M.begin() + M.size()); iter++) BTW, ini bukan tugas dari dosen anda kan?

RE: [programming] tanya map nya STL dong

2001-08-01 Terurut Topik Slamet Puji Santuso
#include stdio.h #include stdlib.h #include string #include map struct ltstr { bool operator()(const char* s1, const char* s2) const { return strcmp(s1, s2) 0; } }; typedef struct tagFoo { int a; int b; } Foo; int main() { Foo a;

Re: [programming] tanya map nya STL dong

2001-08-01 Terurut Topik Mohamad Ilhami
On Wed, 1 Aug 2001, Agus Budy Wuysang wrote: Mohamad Ilhami wrote: for (iter = M.begin(), i = 0; i M.size(); i++, iter++) { printf(M[%s] a=%2d b=%2d\n, iter-first, M[iter-first].a, M[iter-first].b); } for (iter = M.begin(); iter (M.begin() +

Re: [programming] tanya map nya STL dong

2001-08-01 Terurut Topik Niko D. Barli
- On Thu, 2 Aug 2001 12:33:41 +0700 (JAVT), - Mohamad Ilhami [EMAIL PROTECTED] - in message ::: Re: [programming] tanya map nya STL dong ::: wrote, On Wed, 1 Aug 2001, Agus Budy Wuysang wrote: Mohamad Ilhami wrote: for (iter = M.begin(), i = 0; i M.size(); i

RE: [programming] tanya map nya STL dong

2001-08-01 Terurut Topik Mohamad Ilhami
On Wed, 1 Aug 2001, Slamet Puji Santuso wrote: #include stdio.h #include stdlib.h #include string #include map struct ltstr { bool operator()(const char* s1, const char* s2) const { return strcmp(s1, s2) 0; } }; typedef struct tagFoo { int