Search found 3 matches

by BGY95
27 Oct 2018, 16:59
Forum: Programare
Topic: Joc in C++ 6/49
Replies: 0
Views: 506

Joc in C++ 6/49

#include <iostream> #include <cstdlib> #include <ctime> #define culoare5A system("color 5A") #define clear system("cls") using namespace std; int main() { culoare5A; int a[6],i,n[6], gasite=0, raspuns, vector[6], indice=1, salveazaNR; bool alegere = true, dublura = false; while (alegere) { cout << "...
by BGY95
27 Oct 2018, 12:34
Forum: Programare
Topic: Joc C++ "Ghiceste Numarul Secret" 2018
Replies: 1
Views: 156

Re: Joc C++ "Ghiceste Numarul Secret" 2018

Modificat: Genereaza numarul automat, nu mai trebuie tastat la inceputul programului. Genereaza numere intre -100 si +100 #include <iostream> #include <cstdlib> #include <ctime> #define clear_screen system("cls") #define sa_se_faca_lumina system("color 5A") using namespace std; int vector[50]; void ...
by BGY95
27 Oct 2018, 10:23
Forum: Programare
Topic: Joc C++ "Ghiceste Numarul Secret" 2018
Replies: 1
Views: 156

Joc C++ "Ghiceste Numarul Secret" 2018

Sper sa va placa. Eu folosesc DEV C++ (Nu l-am testat pe Microsoft Visual). #include <iostream> #define clear_screen system("cls") #define sa_se_faca_lumina system("color 5A") using namespace std; int vector[50]; void Citire_n_secret(int &n_secret) { cout << "Introdu numarul secret: "; cin >> n_secr...

Go to advanced search