In C++, what is a const char*? And when using const char* would this be well suited or just using string&? As well as why do I get an error when I try having the username has const char, but I do not...


In C++, what is a const char*? And when using const char* would this be well suited or just using string&?


As well as why do I get an error when I try having the username has const char, but I do not get an error when making
const char username
into a
const char* username? What is the reason for this error I am getting?


17<br>class PlayerApplications {<br>18<br>Potected:<br>const char username;<br>19<br>20<br>const char *password;<br>21<br>static int generate_ID; // Generating users id's<br>22<br>unordered_map<string, int> usersID;<br>23<br>unordered_map<string, string> players_information;<br>24<br>public:<br>25 5<br>PlayerApplications();<br>PlayerApplications(string & username);<br>26<br>27<br>28<br>void create account ();<br>29<br>30<br>31<br>void choose factions ();<br>32<br>33<br>34<br>

Extracted text: 17 class PlayerApplications { 18 Potected: const char username; 19 20 const char *password; 21 static int generate_ID; // Generating users id's 22 unordered_map usersID; 23 unordered_map players_information; 24 public: 25 5 PlayerApplications(); PlayerApplications(string & username); 26 27 28 void create account (); 29 30 31 void choose factions (); 32 33 34
| Battle_Arena_Game ~/Desktop/Battle_Aren 1<br>| cmake-build-debug<br>#include
ullıi External Libraries username = ""; C+ password = "". Scratches and Consoles 7 . Structure I Proje "/>
Extracted text: | Battle_Arena_Game ~/Desktop/Battle_Aren 1 | cmake-build-debug #include "PlayerApplications.h" using namespace std; PlayerApplications 3. CMakeLists.txt 4 5 PlayerApplications::PlayerApplications() { 2 main.cpp > ullıi External Libraries username = ""; C+ password = "". Scratches and Consoles 7 . Structure I Proje

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here