Results 1 to 2 of 2

Thread: c++

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Apr:2014
    Location: Plovdiv
    Posts: 8

    c++

    , - . , .. , , . ;(. , .. , , , .. , , - .. ..

    #include "stdafx.h"
    #include <iostream>
    using namespace std;
    const int N=101, L=26;
    struct date {int min, our;};
    struct date {int den, mes, god;};

    struct programa
    {
    char zag[L];
    char text[250];
    date datezav;
    date dateval;
    date dateakt;
    date chas;
    char prd[16];
    };
    void inprograma (programa &a)
    {
    cout<<"Vyvedete zaglavie na suobshtenieto:";
    cin.getline(a.zag,L);
    cout<<"Vyvedete text na suobshtenieto:";
    cin.getline(a.text,250);
    cout<<"Vyvedete data na zavejdane:";
    cin>>a.datezav.den>>a.datezav.mes>>a.dat ezav.god;
    cout<<"Vyvedete data na validnost:";
    cin>>a.dateval.den>>a.dateval.mes>>a.dat eval.god;
    cout<<"Vyvedete data za aktivirane na prilojenie:";
    cin>>a.dateakt.den>>a.dateakt.mes>>a.dat eakt.god;
    cout<<"Vyvedete chas za aktivirane na prilojenie";
    cin>>a.chas.min>>a.chas.our;
    cout<<"Vyvedete prednaznachenie na suobshtenieto:";
    cin.getline(a.prd,16);
    }

  2. #2

    Join Date: Apr:2006
    Location:
    Posts: 8,666
    .

    int. , unix timestamp.

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 |