Hey,
ich erstelle mir grad einen Passwort Generator, jedoch möchte der nicht "laufen".
Im Spoiler ist die Fehlermeldung. Ich benutzte VS 2013 Ultimate.
Hier der Source Code:
ich erstelle mir grad einen Passwort Generator, jedoch möchte der nicht "laufen".
Im Spoiler ist die Fehlermeldung. Ich benutzte VS 2013 Ultimate.
Hier der Source Code:
Code:
#include <iostream>
#include <Windows.h>
#include <string>
#include <cmath>
#include <fstream>
#pragma comment(lib, "winmm.lib")
int main()
{
static const TCHAR* myTitle = TEXT("Passwort-Generator");
SetConsoleTitle(myTitle);
std::string Buchstaben = "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz0123456789";
std::string Passwort;
int laenge;
srand(timeGetTime());
std::cout << "Wie lang soll das Passwort werden: ";
std::cin >> laenge;
for (int i = 0; i < laenge; i++)
{
Passwort += Buchstaben[rand() % (sizeof(Buchstaben))];
}
std::cout << Passwort << "\n";
std::cin.get();
return 0;
}