CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 280

Threaded View

  1. #11
    Join Date
    Jun 2003
    Location
    Armenia, Yerevan
    Posts
    720
    Originally posted by oktronic
    First for kevin:
    Check out the STL code Vector in the include directory. You will find that it is indeed a linked list.
    Excuse me, but:
    Code:
    std::vector<int> s(2);
    s[0]=129;
    s[1]=981218;
    
    int *arr=s.begin();
    if(arr[1]==981218) // if this is safe
    	cout << "definitely not a list";
    This is in MS and SGI STLs.
    Last edited by AvDav; November 24th, 2003 at 08:55 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured