convert it to an int, so we can show how...so that this code could be used to auto update/fix the db someday

This commit is contained in:
DarthArgus
2018-05-16 19:40:39 +00:00
parent 16ef0db4b3
commit d2b2fcd7a1

View File

@@ -16,6 +16,7 @@
int main() {
std::string name;
uint32_t uintname = 0;
int64_t brokenSuidContainer = 0;
char brokenSuid[50];
std::cout << "What is your username? ";
@@ -35,6 +36,9 @@ int main() {
// the below is a result of sprintf formatting with the hashing above
sprintf(brokenSuid, "%i", uintname);
std::cout << "Username [" << name << "] StationID [proper: " << uintname << " broken: " << brokenSuid << "]\n";
// get the above into an int field, partly to eximplify should we want to add this to the login code
brokenSuidContainer = std::stoi(brokenSuid);
std::cout << "Username [" << name << "] StationID [proper: " << uintname << " broken: " << brokenSuidContainer << "]\n";
}