İçeriğe geç
ShiftDelete.Net
Haber ara/ SDN'ye SorGiriş
Haber Akışı SDNTV İnceleme Forum Yapay Zeka Akıllı Telefon Elektrikli Otomobil Oyun ShiftDelete.Net Global Teknoloji Haberleri Mobil Otomobil Donanım Savunma Bilim Sosyal Medya İnternet Giyilebilir Teknoloji Rehber Ürünler Sinema Dizi Akıllı Ev Motosiklet Mikromobilite Kripto Para Sağlık Teknolojileri Son dakika Yazarlar
  1. Ana sayfa
  2. SDN Forum
  3. Yazılım
  4. Diğer Yazılım Konuları
Diğer Yazılım Konuları

EXE DURDURULDU DİYOR YARDIM PLS!!!

Konu bilgisi

0cevap
899görüntüleme
19.03.2017açıldı
19.03.2017son cevap

#1
#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;
}

Cevabını yaz

Cevap yazmak için giriş yap ya da üye ol. Eski forum kullanıcı adın ve parolanla girebilirsin.

Reklam