Ronny Haryanto wrote:
>
> > Tapi, ngapain sih pass array by value? Bukannya malah nglambat2-in
> > program?
>
> Sekedar curious aja. Maksudnya sih kalo2 dikehendaki supaya jangan
> sampe mengubah arraynya by accident.
>
ah, fortunately our great great ancestor brian and dennis have thought
about this, so they created 'const' modifier.. ;)
btw, back to the original problem (kalo nggak salah di-singgung2
ttg.complex data structure), kenapa nggak pake C++? Ada std::list,
std::vector (u/ dynamic array), etc. Sekedar iseng, kalo di C++ kan bisa
pass array by value:
void func(std::vector<edge*> p);
> --
> Ronny Haryanto
>
--
cheers,
Benny
--------------------------------------------------------------------------------
Utk berhenti langganan, kirim email ke [EMAIL PROTECTED]
Informasi arsip di http://www.linux.or.id/milis.php3
Pengelola dapat dihubungi lewat [EMAIL PROTECTED]