Click here to Skip to main content
14,459,186 members

C / C++ / MFC

 
GeneralRe: question hooking virtual table / class functions Pin
Stuart Dootson24-Jan-10 21:40
professionalStuart Dootson24-Jan-10 21:40 
Questioniterator & operator overloading error Pin
khomeyni24-Jan-10 8:19
Memberkhomeyni24-Jan-10 8:19 
AnswerRe: iterator & operator overloading error Pin
Avi Berger24-Jan-10 8:31
MemberAvi Berger24-Jan-10 8:31 
GeneralRe: iterator & operator overloading error Pin
khomeyni24-Jan-10 8:38
Memberkhomeyni24-Jan-10 8:38 
GeneralRe: iterator & operator overloading error Pin
Avi Berger24-Jan-10 9:29
MemberAvi Berger24-Jan-10 9:29 
GeneralRe: iterator & operator overloading error Pin
khomeyni24-Jan-10 9:35
Memberkhomeyni24-Jan-10 9:35 
GeneralRe: iterator & operator overloading error Pin
khomeyni24-Jan-10 9:51
Memberkhomeyni24-Jan-10 9:51 
GeneralRe: iterator & operator overloading error Pin
Avi Berger24-Jan-10 9:55
MemberAvi Berger24-Jan-10 9:55 
True, you still have this problem. Why don't you take a closer look at it.

khomeyni wrote:

int main(int argc,char **argv)
{
    if(argc==1)
    {
        cout<<"you haven't entered a file! exiting..."<<endl;
        return 1;
    }
    list<code_ch>w;
    int *a=new int [200];//for saving the number of each ch
    for(int i=0;i<200;i++)
        a[i]=0;

    list<code_ch>::iterator l=w.begin();
    cout<<"the list is:"<<endl;
    copy(l.begin(),l.end(),ostream_iterator<code_ch>(cout," "));
}

;

And your error message was:

khomeyni wrote:
c++file.cpp: In function ‘int main(int, char**)’:
c++file.cpp:66: error: ‘struct std::_List_iterator<code_ch>’ has no member named ‘begin’
c++file.cpp:66: error: ‘struct std::_List_iterator<code_ch>’ has no member named ‘end’


That says that your iterator does not have a begin or end member. It is right, iterators don't. What does have a begin and end? What is it that you want to be copying from?

You should be able to get it from here.
GeneralRe: iterator & operator overloading error Pin
khomeyni24-Jan-10 9:58
Memberkhomeyni24-Jan-10 9:58 
GeneralRe: iterator & operator overloading error Pin
Avi Berger24-Jan-10 10:10
MemberAvi Berger24-Jan-10 10:10 
GeneralRe: iterator & operator overloading error Pin
khomeyni24-Jan-10 10:23
Memberkhomeyni24-Jan-10 10:23 
GeneralRe: iterator & operator overloading error Pin
khomeyni24-Jan-10 10:27
Memberkhomeyni24-Jan-10 10:27 
GeneralRe: iterator & operator overloading error Pin
Avi Berger24-Jan-10 10:35
MemberAvi Berger24-Jan-10 10:35 
Questionwhat are these process with user name SYSTEM Pin
Joseph Marzbani24-Jan-10 6:20
MemberJoseph Marzbani24-Jan-10 6:20 
AnswerRe: what are these process with user name SYSTEM Pin
«_Superman_»24-Jan-10 16:53
professional«_Superman_»24-Jan-10 16:53 
QuestionMove "CArchive" file pointer backward. Pin
CODEPC23-Jan-10 9:11
MemberCODEPC23-Jan-10 9:11 
AnswerRe: Move "CArchive" file pointer backward. [modified] Pin
Emilio Garavaglia23-Jan-10 11:42
MemberEmilio Garavaglia23-Jan-10 11:42 
QuestionRe: CFile seek backward Pin
David Crow23-Jan-10 8:07
MemberDavid Crow23-Jan-10 8:07 
AnswerRe: CFile seek backward Pin
Emilio Garavaglia23-Jan-10 11:44
MemberEmilio Garavaglia23-Jan-10 11:44 
Questionhow to send params to php script Pin
tfzxyinhao23-Jan-10 6:43
Membertfzxyinhao23-Jan-10 6:43 
AnswerRe: how to send params to php script Pin
Rajesh R Subramanian23-Jan-10 6:46
professionalRajesh R Subramanian23-Jan-10 6:46 
GeneralRe: how to send params to php script Pin
tfzxyinhao23-Jan-10 6:59
Membertfzxyinhao23-Jan-10 6:59 
AnswerRe: how to send params to php script Pin
Code-o-mat24-Jan-10 1:45
MemberCode-o-mat24-Jan-10 1:45 
GeneralRe: how to send params to php script Pin
tfzxyinhao24-Jan-10 21:18
Membertfzxyinhao24-Jan-10 21:18 
GeneralRe: how to send params to php script Pin
Code-o-mat24-Jan-10 22:54
MemberCode-o-mat24-Jan-10 22:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.