LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-22-2002, 08:56 AM   #1
kyoavk
LQ Newbie
 
Registered: Jul 2002
Posts: 1

Rep: Reputation: 0
C++ question in linux


I have list name PartialList:

std::list<Partial>PartialList;

Now I want to make pointer to the beginning of the list. How should I define this pointer?

_______________ ListPointer = PartialList.begin();


Thanks Yoav
 
Old 07-22-2002, 09:44 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
You would create an iterator for that:

std::list<Partial>::iterator it = PartialList.begin();
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Not really a Linux Question rm6990 General 5 10-12-2004 02:13 AM
Linux Question.... ommy Linux - General 6 06-10-2004 09:54 PM
Yet Another Linux HD Question egs4029 Linux - Newbie 5 05-29-2004 10:51 AM
Another Lilo dual boot (Linux+Linux) question tigerflag Slackware 11 05-22-2004 04:14 PM
Question: Which is better, linux or windows. Or, no : Why isn't linux mainstream yet? qanopus General 2 06-23-2003 04:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration