Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. Vector list

Vector list

Scheduled Pinned Locked Moved Managed C++/CLI
c++graphicsdesigngame-devhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GameDesignerXIX
    wrote on last edited by
    #1

    I am a new C++ video game design student. I'm really not loving this C++ class cause my teacher is from tiawan and only knows like 100 words of english and when he puts them together in a sentence they are in the wrong order anyways. So i'm NOT understanding what it is he is telling us or asking of us. But i need help, or i need the code written for me or something. but we are on vectors and he wants us to make a list using 'iterators' that we can input our favorite video games. list them, and erase them. then he wants a quit fucntion to end the program. can someone please help me.

    C O 2 Replies Last reply
    0
    • G GameDesignerXIX

      I am a new C++ video game design student. I'm really not loving this C++ class cause my teacher is from tiawan and only knows like 100 words of english and when he puts them together in a sentence they are in the wrong order anyways. So i'm NOT understanding what it is he is telling us or asking of us. But i need help, or i need the code written for me or something. but we are on vectors and he wants us to make a list using 'iterators' that we can input our favorite video games. list them, and erase them. then he wants a quit fucntion to end the program. can someone please help me.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You should also learn to read sticky notes in forums. This forum is for C++/CLI questions only, your question is off topic here. It's generally rude to crosspost, in any case.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      1 Reply Last reply
      0
      • G GameDesignerXIX

        I am a new C++ video game design student. I'm really not loving this C++ class cause my teacher is from tiawan and only knows like 100 words of english and when he puts them together in a sentence they are in the wrong order anyways. So i'm NOT understanding what it is he is telling us or asking of us. But i need help, or i need the code written for me or something. but we are on vectors and he wants us to make a list using 'iterators' that we can input our favorite video games. list them, and erase them. then he wants a quit fucntion to end the program. can someone please help me.

        O Offline
        O Offline
        OrcBighter2
        wrote on last edited by
        #3

        You are not clear, but it sounds like you want the Standard Template Library (STL) It a simple and easy to use library. here is a simple example for you, straight from the help files which you should probably read first before posting a question: #include "stdafx.h" #include using namespace std; int _tmain(int argc, _TCHAR* argv[]) { vector myVector; // an empty string vector vector::iterator myIter; // an iterator for the string vector myVector.push_back( 0 ); myVector.push_back( 1 ); myVector.push_back( 2 ); myVector.push_back( 3 ); myVector.push_back( 4 ); myVector.push_back( 5 ); for ( myIter = myVector.begin(); myIter != myVector.end(); myIter++ ) { cout << " " << *myIter << endl; } cout << endl; return 0; } OrcBighter2

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups