Skip to content

Commit bbcc235

Browse files
authored
wstring pro title
+ srozumitelnější text
1 parent 8638317 commit bbcc235

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

spam.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ int main() {
2525

2626

2727
// Základní nastavení
28-
SetConsoleTitleA(chooseRandElem(titleText).c_str()); // Narrow string protože se mi nechce dìlat funkce na pøevod
28+
SetConsoleTitleW(chooseRandElem(titleText).c_str());
2929
setlocale(LC_ALL, "cs_CZ");
3030
SetConsoleCP(1250);
3131

@@ -83,9 +83,9 @@ int main() {
8383

8484
setColor(B_GREEN);
8585

86-
cout << "\nProdleva nastavena na základní (" << delay << "ms).\n";
87-
cout << "Locale nastaven na základní (" << sLocale << ").\n";
88-
cout << "Codepage nastaven na základní (" << codepage << ").\n"; // Také lži. Ne, neplánuji s tím nic dìlat
86+
cout << "\nProdleva nastavena na doporuèenou (" << delay << "ms).\n";
87+
cout << "Locale nastaven na doporuèený (" << sLocale << ").\n";
88+
cout << "Codepage nastaven na doporuèený (" << codepage << ").\n"; // Také lži. Ne, neplánuji s tím nic dìlat
8989
}
9090

9191

spam.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ int delay;
1515

1616
// Arrays
1717
vector<string> splashText = { "Le fishe au chocolat.", "Napajedla neexistují.", "Praise Gabèa.", "Python je cringe.", "Garance špagetového kódu.", "Schváleno Kuncišem.", "Spamujte s tím Hendrycha.", "Isn't it?", "Nenávidím tento jazyk.", "Poøád stabilnìjší než Fallout 76.", "Amogus sus." };
18-
vector<string> titleText = { "Audacity", "Photomath", "paint.net", "Imagine", "Paint 3D", "PSDiagram", "PyCharm", "Counter-Strike: Global Offensive", "Minecraft", "Among Us", "Microsoft Excel" }; // Není wstring!
18+
vector<wstring> titleText = { L"Audacity", L"Photomath", L"paint.net", L"Imagine", L"Malování 3D", L"PSDiagram", L"PyCharm", L"Counter-Strike: Global Offensive", L"Minecraft", L"Among Us", L"Microsoft Excel" }; // L kvùli wstring
1919

2020
void sendText() {
2121

0 commit comments

Comments
 (0)