Commit 785df2a9 authored by ferhat tamer's avatar ferhat tamer 💬
Browse files

Update 2048.cpp

conio.h kütüphanesini ekleyerek girdiyi cin yerine getch ile aldım
parent 9ffcfd7e
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#include <ctime> #include <ctime>
#include <cstdlib> #include <cstdlib>
#include <iomanip> #include <iomanip>
#include <conio.h>
using namespace std; using namespace std;
int tablo [4][4]; int tablo [4][4];
...@@ -93,7 +94,7 @@ int main() ...@@ -93,7 +94,7 @@ int main()
while(true) { while(true) {
printMenu(); printMenu();
char islem; char islem;
cin>>islem; islem=getch();
if(islem == 'n') if(islem == 'n')
YeniOyun(); YeniOyun();
else if (islem == 'q') else if (islem == 'q')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment