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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Adding a int array inside CStringArray

Adding a int array inside CStringArray

Scheduled Pinned Locked Moved C / C++ / MFC
questiondata-structures
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.
  • V Offline
    V Offline
    VCProgrammer
    wrote on last edited by
    #1

    Hi all, i have made a CStringArray, and inside that array i have put 5 items of CString type, but i want to add one more item which is int array inside that item. How can i do this? Thanks in advance

    CPalliniC L 2 Replies Last reply
    0
    • V VCProgrammer

      Hi all, i have made a CStringArray, and inside that array i have put 5 items of CString type, but i want to add one more item which is int array inside that item. How can i do this? Thanks in advance

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #2

      What do you really need to do? Do you have to store the integers or their string representation?

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      In testa che avete, signor di Ceprano?

      1 Reply Last reply
      0
      • V VCProgrammer

        Hi all, i have made a CStringArray, and inside that array i have put 5 items of CString type, but i want to add one more item which is int array inside that item. How can i do this? Thanks in advance

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        You need to rethink your design; don't mix different types in this way, it will likely lead to problems in the future.

        Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

        A 1 Reply Last reply
        0
        • L Lost User

          You need to rethink your design; don't mix different types in this way, it will likely lead to problems in the future.

          Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

          A Offline
          A Offline
          Albert Holguin
          wrote on last edited by
          #4

          +5, don't store an int array in a CStringArray

          L 1 Reply Last reply
          0
          • A Albert Holguin

            +5, don't store an int array in a CStringArray

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            :thumbsup:

            Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

            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