Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 05-16-2004, 12:16 PM   #1 (permalink)
jello
Registered User
 
Join Date: May 2004
Location: cincinnati
Posts: 3
jello is on a distinguished road
Send a message via AIM to jello
copying a list

Is there a copy function in the list library of c++? I'm sure there has to be. I just don't know the syntax.
jello is offline   Reply With Quote
Old 05-16-2004, 03:11 PM   #2 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
Yes there is. It is called "copy".
Code:
vector<int> MyIntVector;
//load vector here with your ints: MyInVector.push_back(5); etc...
copy(MyIntVector.begin(), MyInVector.end(), myothercontainer) )
__________________
Valmont is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code For Displaying files in List Box shash MS Technologies ( ASP, VB, C#, .NET ) 1 08-23-2004 09:53 PM
Linker errors on my linked list... Danish Standard C, C++ 1 03-02-2003 07:59 PM
Dropdown list in HTML JoeyJoeJo HTML, XML, Javascript, AJAX 8 02-26-2003 11:00 AM
List your forum for free SiteTutor Lounge 2 06-04-2002 11:03 AM


All times are GMT -8. The time now is 11:37 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting