Results 1 to 3 of 3

Thread: C++

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User jenih_a's Avatar
    Join Date: May:2008
    Location: Dobrich
    Posts: 813

    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

  2. #2
    Game 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.

  3. #3
    Registered User
    Join Date: Jun:2010
    Location: Haskovo
    Posts: 6
    . " " - "- " 3.

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 |