If I use cout<<stak->operator[](2) It works
But If I use
cout<<stak[2]<<endl
I shows a lot errors from ostream
----------------
error: no match for 'operator<<' in 'std::cout << *(
and many more
-----------
I think this means stak[2] is not returning int
but stak->operator[](2) is returning
I cant understand any reasons for this
can anybody help me out Plese ??
I am using GCC on Debian
with KDevelop IDE
My Full source Code is
http://rapidshare.com/files/11053475...st.tar.gz.html
If you are browsing the source Code Look at line 50 and 51 of linkedlist.cpp



LinkBack URL
About LinkBacks




CornedBee