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. C / C++ / MFC
  4. [Message Deleted]

[Message Deleted]

Scheduled Pinned Locked Moved C / C++ / MFC
5 Posts 4 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.
  • I Offline
    I Offline
    iMikki
    wrote on last edited by
    #1

    This post can get deleted - I hoped to take the replies with it.

    modified on Wednesday, November 4, 2009 2:50 PM

    M _ 2 Replies Last reply
    0
    • I iMikki

      This post can get deleted - I hoped to take the replies with it.

      modified on Wednesday, November 4, 2009 2:50 PM

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      nope... (I'm not familiar with PHP, but it is probably creating "dummy" associative arrays for each new variables)

      This signature was proudly tested on animals.

      1 Reply Last reply
      0
      • I iMikki

        This post can get deleted - I hoped to take the replies with it.

        modified on Wednesday, November 4, 2009 2:50 PM

        _ Offline
        _ Offline
        _Superman_
        wrote on last edited by
        #3

        Why do you need to do such a thing in C++. You could always create dynamic arrays using a vector.

        std::vectorstd::string name;
        for (unsigned i = 0; i < 10; ++i)
        name.push_back("some value");

        You can access the vector elements like -

        for (unsigned i = 0; i < 10; ++i)
        cout << name[i].c_str();

        «_Superman_» I love work. It gives me something to do between weekends.
        Microsoft MVP (Visual C++)

        I C 2 Replies Last reply
        0
        • _ _Superman_

          Why do you need to do such a thing in C++. You could always create dynamic arrays using a vector.

          std::vectorstd::string name;
          for (unsigned i = 0; i < 10; ++i)
          name.push_back("some value");

          You can access the vector elements like -

          for (unsigned i = 0; i < 10; ++i)
          cout << name[i].c_str();

          «_Superman_» I love work. It gives me something to do between weekends.
          Microsoft MVP (Visual C++)

          I Offline
          I Offline
          iMikki
          wrote on last edited by
          #4

          Im not really looking to using vectors. Ah well I think I'll do it otherwise then :p Thanks anyhows!

          1 Reply Last reply
          0
          • _ _Superman_

            Why do you need to do such a thing in C++. You could always create dynamic arrays using a vector.

            std::vectorstd::string name;
            for (unsigned i = 0; i < 10; ++i)
            name.push_back("some value");

            You can access the vector elements like -

            for (unsigned i = 0; i < 10; ++i)
            cout << name[i].c_str();

            «_Superman_» I love work. It gives me something to do between weekends.
            Microsoft MVP (Visual C++)

            C Offline
            C Offline
            Chris Losinger
            wrote on last edited by
            #5

            a map would be much better for this, IMO.

            image processing toolkits | batch image processing

            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