Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: question hooking virtual table / class functions Pin
Stuart Dootson24-Jan-10 20:40
professionalStuart Dootson24-Jan-10 20:40 
Questioniterator & operator overloading error Pin
khomeyni24-Jan-10 7:19
khomeyni24-Jan-10 7:19 
AnswerRe: iterator & operator overloading error Pin
Avi Berger24-Jan-10 7:31
Avi Berger24-Jan-10 7:31 
GeneralRe: iterator & operator overloading error Pin
khomeyni24-Jan-10 7:38
khomeyni24-Jan-10 7:38 
GeneralRe: iterator & operator overloading error Pin
Avi Berger24-Jan-10 8:29
Avi Berger24-Jan-10 8:29 
GeneralRe: iterator & operator overloading error Pin
khomeyni24-Jan-10 8:35
khomeyni24-Jan-10 8:35 
GeneralRe: iterator & operator overloading error Pin
khomeyni24-Jan-10 8:51
khomeyni24-Jan-10 8:51 
GeneralRe: iterator & operator overloading error Pin
Avi Berger24-Jan-10 8:55
Avi Berger24-Jan-10 8: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 8:58
khomeyni24-Jan-10 8:58 
GeneralRe: iterator & operator overloading error Pin
Avi Berger24-Jan-10 9:10
Avi Berger24-Jan-10 9:10 
GeneralRe: iterator & operator overloading error Pin
khomeyni24-Jan-10 9:23
khomeyni24-Jan-10 9:23 
GeneralRe: iterator & operator overloading error Pin
khomeyni24-Jan-10 9:27
khomeyni24-Jan-10 9:27 
GeneralRe: iterator & operator overloading error Pin
Avi Berger24-Jan-10 9:35
Avi Berger24-Jan-10 9:35 
Questionwhat are these process with user name SYSTEM Pin
Joseph Marzbani24-Jan-10 5:20
Joseph Marzbani24-Jan-10 5:20 
AnswerRe: what are these process with user name SYSTEM Pin
«_Superman_»24-Jan-10 15:53
professional«_Superman_»24-Jan-10 15:53 
QuestionMove "CArchive" file pointer backward. Pin
CODEPC23-Jan-10 8:11
CODEPC23-Jan-10 8:11 
AnswerRe: Move "CArchive" file pointer backward. [modified] Pin
Emilio Garavaglia23-Jan-10 10:42
Emilio Garavaglia23-Jan-10 10:42 
QuestionMessage Removed Pin
23-Jan-10 6:55
CODEPC23-Jan-10 6:55 
QuestionRe: CFile seek backward Pin
David Crow23-Jan-10 7:07
David Crow23-Jan-10 7:07 
AnswerRe: CFile seek backward Pin
Emilio Garavaglia23-Jan-10 10:44
Emilio Garavaglia23-Jan-10 10:44 
Questionhow to send params to php script Pin
tfzxyinhao23-Jan-10 5:43
tfzxyinhao23-Jan-10 5:43 
AnswerRe: how to send params to php script Pin
Rajesh R Subramanian23-Jan-10 5:46
professionalRajesh R Subramanian23-Jan-10 5:46 
GeneralRe: how to send params to php script Pin
tfzxyinhao23-Jan-10 5:59
tfzxyinhao23-Jan-10 5:59 
AnswerRe: how to send params to php script Pin
Code-o-mat24-Jan-10 0:45
Code-o-mat24-Jan-10 0:45 
GeneralRe: how to send params to php script Pin
tfzxyinhao24-Jan-10 20:18
tfzxyinhao24-Jan-10 20:18 

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.