Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Help.. std::vector

Name: Anonymous 2008-08-15 4:10


#include <iostream>
#include <vector>
#include <string>
using std::cout;
using std::cin;
using std::string;
using std::vector;

int main(unsigned int argc, char** argv)
  {
  vector<int> ints;
  ints.push_back(1);
  ints.push_back(2);
  for(vector<int>::iterator iter = ints.begin(); iter!=ints.end(); iter++)
    cout<<"  "<<*iter<<"\n";
  cin.get();
  return 0;
  }


1>------ Build started: Project: Test, Configuration: Debug Win32 ------
1>Compiling...
1>main.cpp
1>c:\program files\microsoft visual studio 9.0\vc\include\xutility(708) : error C2504: 'x' : base class undefined
1>        c:\program files\microsoft visual studio 9.0\vc\include\xutility(734) : see reference to class template instantiation 'std::_Iterator_with_base<_Category,_Ty,_Diff,_Pointer,_Reference>' being compiled
1>        with
1>        [
1>            _Category=std::random_access_iterator_tag,
1>            _Ty=int,
1>            _Diff=std::allocator<int>::difference_type,
1>            _Pointer=const int *,
1>            _Reference=const int &
1>        ]
1>        c:\program files\microsoft visual studio 9.0\vc\include\vector(26) : see reference to class template instantiation 'std::_Ranit<_Ty,_Diff,_Pointer,_Reference>' being compiled
1>        with
1>        [
1>            _Ty=int,
1>            _Diff=std::allocator<int>::difference_type,
1>            _Pointer=const int *,
1>            _Reference=const int &
1>        ]
1>        c:\program files\microsoft visual studio 9.0\vc\include\vector(289) : see reference to class template instantiation 'std::_Vector_const_iterator<_Ty,_Alloc>' being compiled
1>        with
1>        [
1>            _Ty=int,
1>            _Alloc=std::allocator<int>
1>        ]
1>        c:\documents and settings\administrator\my documents\visual studio 2008\projects\test\test\main.cpp(14) : see reference to class template instantiation 'std::_Vector_iterator<_Ty,_Alloc>' being compiled
1>        with
1>        [
1>            _Ty=int,
1>            _Alloc=std::allocator<int>
1>        ]
1>Build log was saved at "file://c:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\Test\Test\Debug\BuildLog.htm"
1>Test - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped =========

Name: Anonymous 2008-08-15 9:07

Check your includes in the VC++ config.

Name: Anonymous 2008-08-15 9:12

>>3-kun, this is message board about programming, not configuring proprietary compilers. Don't help him.

Name: Anonymous 2008-08-15 9:42

>>4-kun, you need to work on your quoting.

Name: Anonymous 2008-08-15 10:18

>>5
No. Shiichan needs to work on my quoting.

Name: Anonymous 2008-08-15 10:33

Name: Anonymous 2008-08-15 12:07

thank you mr. 3 will check it out

Name: Anonymous 2008-08-15 12:17

and it turns out that I earned great success ^^

Name: Anonymous 2008-08-15 13:42

[M][B][U]NEVER HELP HIM[/U][/B][/M]

Name: Anonymous 2008-08-15 13:43

>>10
SHIT

Name: Sageing fail since 1463 2008-08-15 13:49

>>10,11
Nigger.

Name: Anonymous 2008-08-15 14:38

>>3
YOU HELPED HIM

Name: Anonymous 2008-08-21 17:01

Why don't you get over it? Last time I checked, programmers are supposed to help out other programmers. It's why we're > artists.

Name: Anonymous 2008-08-21 17:13

It's why we're > artists.
8/10

Name: Anonymous 2008-08-21 17:17

(why it (> we artists))

Name: Anonymous 2008-08-21 18:56

why ++ foldr we loeb > artists $

Name: EY MEME FAN 2008-08-21 18:57

why ++ feydy we yeeb > eyyeyyy $

Name: Anonymous 2008-08-21 19:46

Where's that saging namefag when we need him?

Name: Sageing namefag since blah etc 2008-08-21 20:04

>>19
Yes?

Name: Anonymous 2008-08-21 21:15

I'M MCCARTHY
SON OF A BITCH HASKELL
HASKELL IS PIG
DO YOU WANT A MONAD?
DO YOU WANT STATIC TYPING?
SIMON PEYTON JONES IS A MURDERER
FUCKING SYNTAX

Name: 15 2008-08-21 23:28

>>16
Before your post I thought >>14 meant "becoming artists" or something like that, but now that I can see it expressed in beautiful sexpr I understand much better.

I have been involuntary trolled.

Name: Anonymous 2008-08-22 3:31

>>21
I'M MCCARTHY
SON OF A BITCH HASKELL
HASKELL IS PIG
DO YOU WANT A MONAD?
DO YOU WANT STATIC TYPING?
SIMON PEYTON JONES IS A MURDERER
FUCKING SYNTAX

Name: Anonymous 2009-03-06 11:09


Sheer lack of support   for newbies by   newbies On the   one true path   to leadership and   direction is to   not use it   for sysadmin tasks   or text munging   Of course I   pronounce it queen.

Name: Anonymous 2010-11-16 4:21

Name: Anonymous 2010-11-25 6:47

Name: Anonymous 2011-02-04 16:36

<

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List