Results 1 to 12 of 12

Thread: :)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered 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 !!!

  2. #2
    Registered User jjjjjk's Avatar
    Join Date: Nov:2009
    Location: Nowhere
    Posts: 4,079
    , . 23. izbor, , , , cout. C++, iostream /? 23, . 25 , ";" int, tegn. 26 int.
    De jure de facto - !
    , , , , , !

  3. #3

    Join Date: Apr:2006
    Location:
    Posts: 8,666
    :
    //kursova rabota variant 24
    , 1 . Shit happens ...

  4. #4
    Cheaters Always Win wysiwyg's Avatar
    Join Date: Sep:2006
    Location: Sofia
    Posts: 3,285
    Quote Originally Posted by walkingcurse View Post
    . ( , .) . ( ). :
    ...
    , ( ) :
    C:\Program Files\Microsoft Visual Studio\MyProjects\kursova rabota\hospital.cpp(25) : error C2601: 'main' : local function definitions are illegal
    ,
    , , ...

  5. #5
    Registered User
    Join Date: Dec:2011
    Location:
    Posts: 45
    void main() ?
    Living on the moment !!!

  6. #6
    Registered User hateras's Avatar
    Join Date: Jan:2011
    Location: Kronos III
    Posts: 1,028
    - 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

  7. #7
    Deleted User 4eRNoBiL's Avatar
    Join Date: Oct:2005
    Location:
    Posts: 739
    Quote Originally Posted by hateras View Post
    , :
    ++(nomer<br)
    , 5 (++), CodeBlocks, . - .

    walkingcurse - , , , ++. , . - " , ", 5-6 . .
    Fujistu Lifebook E756 | Core i7-6500U / 400MHz-3.1GHz | 8 GB DDR4-2133 | Samsung PM871 / 256 GB SSD | 15" 1920x1080 | Manjaro Linux + kernel 4.19

  8. #8
    System.gc()'s Avatar
    Join Date: Apr:2007
    Location: back in time
    Posts: 1,075
    , " , ", - " ' , , , / ". , , , .
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |