Results 1 to 3 of 3
Thread: C++
Hybrid View
-
24th May 2010 21:41 #1
C++
, , . :
: - , .Code:/* : , , , , . : - ; - , . */ #include <iostream.h> #include <string.h> #include <stdlib.h> #include <conio.h> class futbolisti { public: char ime[21],fam[21],otbor[76]; float golove; void getData(); void display(); }; void futbolisti::getData() { cin.ignore(); cout<<": "; cin.getline(ime,20); cout<<": "; cin.getline(fam,20); cout<<": "; cin.getline(otbor,75); cout<<": "; cin>>golove; } void main() { system("chcp 1251"); char KodOp; int i,BrKn=0; Kniga Grupa[10]; do { cout<<" ------------------ ---------------\n"; cout<<"|1- |\n"; cout<<"|2- |\n"; cout<<"| '0' |\n"; cout<<" ------------------------------------------------- \n"; switch (KodOp) { case '0':break; case '1':Grupa[BrKn++].getData();break; case '2':for (i=0;i<BrKn;i++) Grupa[i].display();break; default: cout<<" .\n"; } } while (KodOp!='0'); }PC: None
Notebook: Lenovo Y50-70
-
24th May 2010 21:53 #2Game programmer
Join Date: Feb:2007
Location:
Posts: 1,948
3
:
, ... - playsFor(char *team), 0 1.Last edited by Todor032; 24th May 2010 at 22:09.
-
1st June 2010 19:22 #3Registered User
Join Date: Jun:2010
Location: Haskovo
Posts: 6
. " " - "- " 3.




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in