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. The Lounge
  3. Is there a way to add strings to a list without the quotation marks in C++?

Is there a way to add strings to a list without the quotation marks in C++?

Scheduled Pinned Locked Moved The Lounge
c++question
6 Posts 5 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.
  • M Offline
    M Offline
    Marketing Media Hub
    wrote on last edited by
    #1

    I have a C++ file with over 4000 lines of first names, and I put all of the names in a list using

    C++:
    #include
    #include

    using namespace std;

    list list_name(99999, Aaren
    Aarika
    Abagael
    ...

    M OriginalGriffO L 3 Replies Last reply
    0
    • M Marketing Media Hub

      I have a C++ file with over 4000 lines of first names, and I put all of the names in a list using

      C++:
      #include
      #include

      using namespace std;

      list list_name(99999, Aaren
      Aarika
      Abagael
      ...

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

      See the red "Got a programming question?" link at the top. Not a good start as part of the community. :rolleyes:

      CI/CD = Continuous Impediment/Continuous Despair

      OriginalGriffO 1 Reply Last reply
      0
      • M Marketing Media Hub

        I have a C++ file with over 4000 lines of first names, and I put all of the names in a list using

        C++:
        #include
        #include

        using namespace std;

        list list_name(99999, Aaren
        Aarika
        Abagael
        ...

        OriginalGriffO Offline
        OriginalGriffO Offline
        OriginalGriff
        wrote on last edited by
        #3

        What's not a secret signal is the stuff at the top of the page that you ignored. Ask here: https://www.codeproject.com/Questions/ask.aspx[^]

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

        1 Reply Last reply
        0
        • M Maximilien

          See the red "Got a programming question?" link at the top. Not a good start as part of the community. :rolleyes:

          CI/CD = Continuous Impediment/Continuous Despair

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #4

          I'm guessing the name means "Idiot finding out what I can get away with" - marketing dweebs don't care about accuracy ...

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

          1 Reply Last reply
          0
          • M Marketing Media Hub

            I have a C++ file with over 4000 lines of first names, and I put all of the names in a list using

            C++:
            #include
            #include

            using namespace std;

            list list_name(99999, Aaren
            Aarika
            Abagael
            ...

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

            No offence but everything about this is wrong. Posted in the wrong place, with the wrong formatting, using `std::list` is probably wrong (the C++ name for a list is `std::vector`), including `bits/stdc++.h` is wrong, `using namespace std` is .. OK not exactly *wrong* but a bad practice, and putting your data directly in the code instead of loading it from a file or resource is also questionable.

            K 1 Reply Last reply
            0
            • L Lost User

              No offence but everything about this is wrong. Posted in the wrong place, with the wrong formatting, using `std::list` is probably wrong (the C++ name for a list is `std::vector`), including `bits/stdc++.h` is wrong, `using namespace std` is .. OK not exactly *wrong* but a bad practice, and putting your data directly in the code instead of loading it from a file or resource is also questionable.

              K Offline
              K Offline
              KarstenK
              wrote on last edited by
              #6

              a newbee at "I can scramble some code" to bring other to help me. :suss:

              Press F1 for help or google it. Greetings from Germany

              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