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
--- 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;
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
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?
#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;
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() +
- 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
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