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


Joined
Nov 9, 2020
Messages
1
Reaction score
0
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 <iostream>
#include <bits/stdc++.h>

using namespace std;

list<string> list_name(99999, Aaren
Aarika
Abagael
...
but I don't really feel like spending hours putting quotation marks around every name. Is there a way I can get around this?
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top