Results 1 to 12 of 12
Thread: :)
Hybrid View
-
3rd October 2013 19:47 #1Registered User
Join Date: Dec:2011
Location:
Posts: 45
:)
. ( ). :
:Code://kursova rabota variant 24 #include<iostream> #define max 30 using namespace std; struct pacienti { char ime[30]; char prezime[30]; char familia[30]; long int egn; } grupa1[max]; int menu() { int izbor; cout<<"Menu"<<endl; cout<<"1. Dobavqne na zapis."<<endl; cout<<"2. Tyrsene na pacient po EGN."<<endl; cout<<"3. Izhod"<<endl; cin>>"Izbor: "; return izbor; void main() { int i;br;iz;egn;tegn int nomer = 0; cout<<"Broi Pacienti "; cin>>br; do { iz=menu() switch(iz) { case 1: { ++(nomer<br) { cout<<"Vyvedete nomer za pacient"<<nomer+1 cout<<"Vyvedete ime: "; cin>>grupa1[nomer].ime; cout<<"Vyvedete prezime: "; cin>>grupa1[nomer].prezime; cout<<"Vyvedete familia: "; cin>>grupa1[nomer].familia; cout<<"Vyvedete EGN: "; cin>>grupa1[nomer].egn; nomer++; }break case 2: { cout<<"Vyvedete EGN: "; cin>>tegn; for(i=0;i<br;i++) if(tegn==grupa1[i].egn) { cout<<"Ime: "<<grupa1.ime<<endl; cout<<"Prezime: "<<grupa1.prezime<<endl; cout<<"Familiq: "<<grupa1.familia<<endl; cout>>"EGN: "<<grupa1.egn<<endl; }break else cout<<"Nqma takuf pacient!"<<endl;break; }break default:cout<<"Krai na programata"<<endl; }while(iz!=3); } } } }
C:\Program Files\Microsoft Visual Studio\MyProjects\kursova rabota\hospital.cpp(25) : error C2601: 'main' : local function definitions are illegal
Living on the moment !!!
-
3rd October 2013 20:14 #2
, . 23. izbor, , , , cout. C++, iostream /? 23, . 25 , ";" int, tegn. 26 int.
De jure de facto - !
, , , , , !
-
3rd October 2013 21:49 #3
Join Date: Apr:2006
Location:
Posts: 8,666
:
, 1 . Shit happens ...//kursova rabota variant 24
-
4th October 2013 00:26 #4
-
4th October 2013 11:09 #5Registered User
Join Date: Dec:2011
Location:
Posts: 45
void main() ?
Living on the moment !!!
-
4th October 2013 13:45 #6
- void main() "" int menu().
, .
.
, :
++(nomer<br)
. pacienti . long int 4 , , .ASRock B550M Pro 4; Ryzen R5 3600; 2x16 GiB G.SKILL Aegis 3200; 1TB Samsung QVO 960 + 3TB Seagate IronWolf; Zalman Z1
-
4th October 2013 18:40 #7
-
5th October 2013 23:49 #8
, " , ", - " ' , , , / ". , , , .
Just sayin' : )UD3R|Q9550+1283|4x2 G.Skill@1066|MX500+1002FAEX+640AAKS+ST31 60|RX580-8GB|1841BLT|SS-760XP|Define7|z24i|Edifier S350DB
geniusloci: ) ; ) ; ) ?
nope|r.i.p.




Reply With Quote

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