C++ Keyboard Input

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Thank you! I've been looking for this!

albinlindmark
Автор

Thank you for this tutorial. Amazingly informative and easy to understand. You earned a sub!!

walky
Автор

Great tutorial. Finally got to make a fun game with moveable character(s)! Thanks!

dashdroptv
Автор

I am new to coding and I am making a simple game and this is soooo helpful. you earned one more sub.

pandabobanda_
Автор

My compiler says getch() has been deprecated :((

YamamotoGenryusaiShigekuni
Автор

hi i want make left 4 dead 2 plugins you can do it? i can pay

memati
Автор

This is working but when i start the program and enter the name after that if i press x i quit but after pressing up, down etc... pressing x does not quit the program pls help

ashishkumar-sjos
Автор

man Char PlayerName like wrong i can explain
for like a Word Input we use String
well let me show you an code example


#include <iostream>
#include <string>
using namespace std;

int main(){
string str;
cout << "Please enter your name: ";
getline(cin, str);
cout << "Hello " << str << " and welcome to my game!";

return 0;

}


And if am i wrong explain me i will understand : )

edit:well i looked again at code so i add something
and this code shows like user input his name

mikamargaryan
Автор

Can i ask where you find the numbers for the arrow keys?

gravitashebynimus