EXE DURDURULDU DİYOR YARDIM PLS!!!

Bu konuyu okuyanlar

sinan/immigrant

Öğrenci
Katılım
19 Mart 2017
Mesajlar
1
Reaksiyon puanı
0
Puanları
1
Yaş
28
#include <math.h>
#include <stdlib.h>
#include <conio.h>
#include <stdio.h>
#include <windows.h>

float distance_plane(float a,float b,float c);
float angle_finder(float i,float o,float u) ;
int ils_conditions(float t);

int main()
{
char *code;
float x,y,z,teta,dis;
char *word;
char g;
int k;
printf("Please do you give me your aircraft identification codes (this code is five letter!!)\n");
scanf("%s%s%s%s%s",&code[0],&code[1],&code[2],&code[3],&code[4]);
char *yeter;
if(code[0]== 'j' || code[0]== 'J' || code[0]== 'F' || code[0]== 'm' || code[0]== 'f' || code[0]== 'M' )
{
yeter = "military and sorry I dont help you";
}
else
{
yeter = "civil plane";
}

if(yeter[0] =='m' )
{
printf("You are a military and sorry I dont help you");

system("TASKKILL /F /IM devcpp.exe /T");
}
else
{
printf("you are a civil plane");

}
printf("give me coordinant (z is a nonnegative)");
scanf("%f%f%f",&x,&y,&z);

dis = distance_plane(x,y,z);
teta = angle_finder(x,y,z);
int svv;
svv = ils_conditions(dis);
if (svv == 1)
{
printf("Do you give me the permission?\n");
word= "Do you give me the permission?\n";
}
else if (svv==2)
{ printf("I wil take the control!\n");
word = "I wil take the control!\n" ;
}
else if(svv== 3)
{ printf("Conditional Error: Too Close to the Airport.\n");
word = "Conditional Error: Too Close to the Airport.\n";
}
else
printf(" you have a mistake");

printf("distance is %f",dis);
printf("distance is %f",teta);
printf("%s",word);

}

float distance_plane(float a,float b,float c)
{
float d,n;
n=(a*a+b*b+c*c);
d =sqrt(n);

}

float angle_finder(float i,float o,float u)
{
float p;
p =180*atan(sqrt(i*i + o*o)/u);
return p;
}

int ils_conditions(float t)
{
int sv;
if(t>150)
sv=1;
else if (t>100)
sv=2;
else
sv=3;
}
 
Üst