Skip to content

Instantly share code, notes, and snippets.

program dynamic_structures;
type
student=record
fam,name,group:string[20];
year:integer;
sr:real
end;
pstud=^dstud;
dstud=record
s:student;
#include <stdio.h>
#include <conio.h>
#include <math.h>
void main(void)
{
int x,y;
float s = 0;
FILE *f,*g;
f=fopen("lab5.dat","w");
printf("Введите X Y (признак окончания ввода X=0 Y=0):\n");
#include <stdio.h>
#include <conio.h>
#include <string.h>
void main()
{
int i,j,n,k=0;
char *st="";
clrscr();
printf("Vvedite stroku: \n");
gets(st);
#include <stdio.h>
#include <conio.h>
#include <string.h>
void main()
{
int i,j,n,k=0;
char *st="";
clrscr();
printf("Vvedite stroku: \n");
gets(st);
#include <stdio.h>
#include <conio.h>
#include <math.h>
void main(void)
{
FILE *f,*g;
f=fopen("lab8.dat","w");
printf("Вводите целые числа, признак конца - 0:\n");
int k;
#include <stdio.h>
#include <conio.h>
#include <math.h>
void main(void)
{
FILE *f,*g;
f=fopen("lab8.dat","w");
printf("Вводите целые числа, признак конца - 0:\n");
int k;
#include <stdio.h>
#include <conio.h>
#include <graphics.h>
void axes(int xc, int yc)
{
line(xc-100,yc,xc+100,yc);
line(xc+100,yc,xc+95,yc-2);
line(xc+100,yc,xc+95,yc+2);
line(xc,yc-100,xc,yc+100);
line(xc,yc-100,xc-2,yc-95);
#include <stdio.h>
#include <conio.h>
#include <string.h>
void main()
{
int i,j,k=0;
char *st="";
clrscr();
printf("Введите строку: \n");
scanf("%s",st);
#include <stdio.h>
#include <conio.h>
#include <string.h>
void main()
{
int i,k;char *st="";
clrscr();
printf("vvedite stroku:\n");
scanf("%s",st);
printf("ishodn. stroka:\n%s\n",st);
#include <stdio.h>
#include <conio.h>
#include <string.h>
void main()
{
int i,k=0;
char *st="";
clrscr();
printf("Введите строку символов: \n");
scanf("%s",st);