Results 1 to 2 of 2
Thread: c++
Hybrid View
-
29th May 2014 15:07 #1Registered 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);
}
-
29th May 2014 16:47 #2
Join Date: Apr:2006
Location:
Posts: 8,666
.
int. , unix timestamp.




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