From 33ca09b6c603df3738699c0a6bd0b35e7a9f015b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1ndly=20Gerg=C5=91?= Date: Fri, 20 Mar 2020 10:03:34 +0200 Subject: [PATCH] chore: Lab03 --- lab03/02.cpp | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 lab03/02.cpp diff --git a/lab03/02.cpp b/lab03/02.cpp new file mode 100644 index 0000000..91c3800 --- /dev/null +++ b/lab03/02.cpp @@ -0,0 +1,37 @@ +#include +#include +using namespace std; + +int main(){ + ios::sync_with_stdio(false); + + cout<<"Numele elevului: "; + string nume; + cin>>nume; + + HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE); + SetConsoleCursorPosition(hConsole, {17, 0}); + + for(int i=0; i>incercare; + tries++; + if(nume == incercare){ + cout<<"Ai gasit numele din "<