Results 1 to 5 of 5

Thread: C++

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Jun:2007
    Location: Sofia
    Posts: 11

    C++

    ,
    , .
    #include <iostream.h>
    #include <conio.h>
    #include <string.h>
    #include <fstream.h>
    class sklad
    struct elementi
    {
    char rezistori[15];
    char diodi[10];
    char is[15];
    char svetodiodi[15];
    char tranziostori[20];
    char broi[10];
    char data[15];
    char oboznachenie[15];
    };
    void vhod(elementi&p)
    {
    cout<<"rezistori: ";
    cin>>p.rezistori;
    cout<<"diodi: ";
    cin>>p.diodi;
    cout<<"is: ";
    cin>>p.is;
    cout<<"svetodiodi: ";
    cin>>p.svetodiodi;
    cout<<"tranzistori: ";
    cin>>p.tranziostori;
    cout<<"broi: ";
    cin>>p.broi;
    cout<<"data: ";
    cin>>p.data;
    cout<<"oboznachenie: ";
    cin>>p.oboznachenie;
    }
    void uslovie()
    {cout<<"Da se mapishe programa na C++, obrabotvashta structura v klas s ime sklad i poleta:rezistori, diodi, integralni shem, svetodiodi, tranzistori, broi, data, proizvodstvo, oboznachenie. Da se izpolzvat fakilove za chetene i zapis, operatori i funkcii syotvetno za uslovieto i avtora na zadachata i izvejdane na masiva \n";
    cout<<"Martin Andreev,11b";
    }
    void main()
    void arr[5]
    {
    ofstream(file.txt ios::app)
    void new()
    ifstream(file.txt ios:ut)
    clrscr()
    cout<<"rezistori: "<<rezistori<<"\n";
    cin>>rezistori;
    cout<<"diodi: "<<diodi<<"\n";
    cin>>diodi;
    cout<<"is: "<<is<<"\n";
    cin>>is;
    cout<<"svetodiodi: "<<svetodiodi<<"\n";
    cin>>svetodiodi;
    cout<<"tranzistori: "<<tranzistori<<"\n";
    cin>>tranzistori;
    cout<<"broi: "<<broi<<"\n";
    cin>>broi;
    cout<<"data: "<<data<<"\n";
    cin>>data;
    cout<<"oboznachenie: "<<oboznachenie<<"\n";
    cin>>oboznachenie;
    clrscr();
    getch();
    delete();
    }

  2. #2
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448

    , [CDE] .. [/CDE], ( )
    , .
    Code:
    class sklad
    struct elementi
    , .

    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

  3. #3
    Executor Lan's Avatar
    Join Date: Nov:2005
    Location:
    Posts: 3,304
    ? martui, ( / { } ) 2 , , .
    I mourn thee by dusk | I mourn thee by dawn
    Crave for thy gloss | to seek the silent glades beyond

  4. #4
    Registered User vegasis's Avatar
    Join Date: Jun:2005
    Location:
    Posts: 1,156
    Quote Originally Posted by Lan View Post
    ?
    , (complete type).

  5. #5
    Registered User ceco91's Avatar
    Join Date: May:2007
    Location: Stara Zagora
    Posts: 274
    Code:
    class sklad
    struct elementi
    {
    char rezistori[15];
    char diodi[10];
    char is[15];
    char svetodiodi[15];
    char tranziostori[20];
    char broi[10];
    char data[15];
    char oboznachenie[15];
    };
    ....
    - :
    Code:
    class MyClass
    {
     int myVar;
    };

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 |