hi again I did this in dev c++ works fine .. this was actually a converted program from vector arrays then to pointers I used this line to convert vector arrays to work with pointers as I saw this example.. it worked
Now I tried it on ms visual c++ 6.0 it gives me this error
pointer' : is not a member of 'vector<int,class std::allocator<int> >
So I m trying to hand trace and understand compiler differences.. and maybe I did the pointers syntax wrong.. I think
Question is why did it work in dev c++ and not in ms vc++ 6.00?
vector<int>::pointer ptr = &v[0];
What's up with this convoluted syntax?
Write int* ptr=&v[0]; instead.
VC6 is not standard-compliant and outdated, do not use it.
Dev-C++ and the version of MinGW that comes with it is outdated as well, don't use it either.
Get yourself a copy of the Code::Blocks+MinGW bundle or a recent version of Visual Studio Express.
You guys rock.... Athar.. thanks for the comment I like that..
convoluted syntax... Man.. this is the best forum ever.. that of course.. I have
not tried others...
and vlad thanks unfortunately right now Schools and the stiff academia do not understand what compiling is so they use outmoded versions but hey it works .. but thank you both...