karinkuus
16.03.2022 03:07

Https://www.sweetpotatoknowledge.org/event/free-movieiflix-watch-extraction-2020-movie-online-free-on-movieiflix/
https://www.sweetpotatoknowledge.org/event/movieiflixhd-watch-extraction-2020-movie-online-free-on/
https://www.sweetpotatoknowledge.org/event/watch-after-we-collided-2020-full-movie-hd-online/
https://www.sweetpotatoknowledge.org/event/after-we-collided-after-2-full-movie-online-free/
https://www.sweetpotatoknowledge.org/event/123movies-watch-after-we-collided-2020-full-movie-hd/
https://www.sweetpotatoknowledge.org/event/watch-chal-mera-putt-2-2020-online-free-123movies/
https://www.sweetpotatoknowledge.org/event/123movies-chal-mera-putt-2-2020-hd-full-watch-online-free/
https://www.sweetpotatoknowledge.org/event/watch-chal-mera-putt-2-punjabi-hd-full-movie-online-free/
https://www.sweetpotatoknowledge.org/event/123movies-watch-365-days-full-movie-online-free/
https://www.sweetpotatoknowledge.org/event/putlockers-365-dni-hd-full-watch-online-for-free/
https://www.sweetpotatoknowledge.org/event/free-watch-365-dni-days-2020-full-movie-online/
https://www.sweetpotatoknowledge.org/event/free-watch-rising-high-2020-full-movie-online/
https://www.sweetpotatoknowledge.org/event/watch-rising-high-2020-full-movie-online-free/
https://www.sweetpotatoknowledge.org/event/watch-rising-high-2020-movie-online-free/
https://www.sweetpotatoknowledge.org/event/watch-earth-and-blood-2020-movie-online-free/
https://www.sweetpotatoknowledge.org/event/free-watch-earth-and-blood-2020-full-movie-online/
https://www.sweetpotatoknowledge.org/event/earth-and-blood-2020-full-movie-watch-online-123movies/
https://www.sweetpotatoknowledge.org/event/hd-watch-legado-en-los-huesos-2020-full-movie-online/
https://www.sweetpotatoknowledge.org/event/online-watch-legado-en-los-huesos-2020-full-movie-online/
https://www.sweetpotatoknowledge.org/event/free-watch-legado-en-los-huesos-2020-full-movie-online/
https://www.sweetpotatoknowledge.org/event/watch-sergio-2020-full-movie-online-free/
https://www.sweetpotatoknowledge.org/event/putlockers-hd-sergio-movie-2020-watch-online-full-free/
https://www.sweetpotatoknowledge.org/event/free-watch-sergio-2020-full-movie-online/
https://www.sweetpotatoknowledge.org/event/the-wretched-2020-watch-online-latest-movie-in-full-hd/
https://www.sweetpotatoknowledge.org/event/watch-the-wretched-2020-hd-full-movie-online-free/
https://www.sweetpotatoknowledge.org/event/free-watch-the-wretched-2020-full-movie-onlinee/
https://www.sweetpotatoknowledge.org/event/free-watch-dream-horse-2020-full-movie-online/
https://www.sweetpotatoknowledge.org/event/putlocker-dream-horse-2020-hd-full-movie-watch-online/
https://www.sweetpotatoknowledge.org/event/watch-dream-horse-2020-full-movie-subs-english/
https://www.sweetpotatoknowledge.org/event/the-invitation-2020-full-movie-watch-online-123movies/
https://www.sweetpotatoknowledge.org/event/the-invitation-2020-watch-hot-english-movies-free-online/
https://www.sweetpotatoknowledge.org/event/free-watch-the-invitation-2020-full-movie-online/
https://arizonawet.arizona.edu/users/movies-free-123movies-extraction-hd-2020-full-watch-online
https://arizonawet.arizona.edu/users/movies-hd-123movies-extraction-hd-2020-full-watch-online
https://arizonawet.arizona.edu/users/movies-watch-123movies-extraction-hd-2020-full-watch-online
https://arizonawet.arizona.edu/users/movies-watch-123movies-after-we-collided-hd-2020-full-watch-online-0
https://arizonawet.arizona.edu/users/movies-hd-123movies-after-we-collided-hd-2020-full-watch-online-0
https://arizonawet.arizona.edu/users/movies-free-123movies-after-we-collided-hd-2020-full-watch-online
https://arizonawet.arizona.edu/users/free-watch-365-dni-days-2020-hd-full-movie-online
https://arizonawet.arizona.edu/users/free-watch-365-dni-days-hd-2020-full-movie-online
https://arizonawet.arizona.edu/users/free-watch-365-dni-days-2020-full-movie-hd-online

Нажмите на рекламу ниже и сразу увидите ответ
Популярные вопросы:
Ответ:
dariamaniakova
05.07.2021 05:34

#include

#include

#include

#include

#include

#include

typedef struct

{

char imya[40];

char familiya[40];

char otchestvo[40];

int telefon;

int texpasport;

float pages ;

}gor;

void form(char mass[10], char *imya, char *familiya, char *otchestvo, int telefon, int texpasport)

{

file *f;

gor y;

int i;

if ((f=fopen(mass,"w"))==null) exit(1);

for (i=1; i< =3; i++)

{

cout< < "vvedite imya: ";

cin> > imya;

cout< < "vvedite familiya: ";

cin> > familiya;

cout< < "vvedite otchestvo: ";

cin> > otchestvo;

cout< < "vvedite telefon: ";

cin> > telefon;

cout< < "vvedite texpasport: ";

cin> > texpasport;

fwrite(& y,sizeof(gor),1,f);

if(ferror(f)! =null)

exit(2);

}

fclose(f);

}

void vivod(char mass[50])

{

file *f;

gor z;

if ((f=fopen(mass, "r"))==null) exit(3);

cout< < "fail: "<

while (! feof(f)) {

fread (& z,sizeof(gor),1,f);

if (! feof(f))

{

cout< < "imya: "<

cout< < "familiya: "<

cout< < "otchestvo: "<

cout< < "telefon: "<

cout< < "texpasport: "<

}

fclose(f);

}

}

void del(char fo[10], char fi[10])

{

file *f1,*f2;

gor d;

//char temp[40];

if ((f1=fopen(fi,"r"))==null) exit(4);

if ((f2=fopen(fo,"w"))==null) exit(5);

//cout < < "vvedite nazvanie na ydalenie - ";

//cin > > temp;

for (int i=0; i< 3; i++)

{

fread(& d,sizeof(gor),1,f1);

if (feof(f1)) break;

if (i> 2)

fwrite (& d,sizeof(gor),1,f2);

}

fclose(f2);

fclose(f1);

}

void dobav(char fi[10], char fo[10],char *imya, char *familiya, char *otchestvo, int telefon, int texpasport)

{

int q;

int i;

gor d;

file *f1,*f2;

char temp[40];

if ((f1=fopen(fi, "r"))==null) exit(4);

if ((f2=fopen(fo,"r+"))==null) exit(5);

cout < < "vvedite familiu, pered kotorym nuzno dobavit element: ";

cin > > temp;

for (i=0; i< 10; i++)

{

fread(& d,sizeof(gor),1,f2);

if (feof(f2)) break;

if (strcmp(d.familiya, temp)) break;

q=i;

}

for (i=0; i< 10; i++)

{

if (feof(f2)) break;

fwrite (& d,sizeof(gor),1,f2);

if (i==q-1)

{

cout< < "vvedite imya: ";

cin> > imya;

cout< < "vvedite familiya: ";

cin> > familiya;

cout< < "vvedite otchestvo: ";

cin> > otchestvo;

cout< < "vvedite telefon: ";

cin> > telefon;

cout< < "vvedite texpasport: ";

cin> > texpasport;

cout <

}

}

fclose(f2);

fclose(f1);

}

void main()

{

int n=10;

//cout < < "vvedite kol-vo zapisey: - ";

//cin> > n;

//cout <

form("f1.txt",n);

vivod("f1.txt");

del("f1.txt","f2.txt");

cout < < "posle udalenia: \n";

vivod("f2.txt");

getch();

n=1;

system("cls");

dobav ("f2.txt","f2.txt");

cout < < "posle dobavlenia: \n";

vivod ("f2.txt");

getch();

}

0,0(0 оценок)
Ответ:
hs2
14.08.2020 14:21

uses crt;

var i,sum,k: integer;

begin

      sum: =0;

      k: =0;

      writeln('вводите числа. 0 - конец последовательности');

      repeat

          read(i);

          if i mod 2=1 then begin

              sum: =sum+i;

              inc(k);

          end;

      until i=0;

      writeln;

      writeln('среднее  арифметическое нечетных чисел: ',sum/k: 5: 3);

end.

0,0(0 оценок)
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota Оформи подписку
logo
Начни делиться знаниями
Вход Регистрация
Что ты хочешь узнать?
Спроси ai-бота