Wednesday, April 22, 2015
Program Finding Shortest Point In Dev C++
Program Finding Shortest Point In Dev C++ US USA
Program Finding Shortest Point In Dev C++,Finding two points in the set have a short distance. By entering input with coordinates x and y, with a lot of points and how do I find the result. Let's look at programs.
To the program you can copy the following :
#include<iostream>//description of the calling cout and cin
#include<math.h>
#define SIZE 100
using namespace std;
struct Point{
float x,y;
};
void Cari2TitikTerdekat(Point p[], int n, Point &p1, Point &p2){
float d, dmin;
int i, j;
dmin=9999;
for(i=1;i<n;i++){
for(j=i+1; j<=n; j++){
d=sqrt(pow((p[i].x-p[j].x),2)+pow((p[i].y -p[j].y),2));
if(d<dmin){
dmin=d;
p1=p[i];
p2=p[j];
}
}
}
}
int main(int argc, char *argv[]){
int n,a,b;
Point p[SIZE];
Point p1,p2;
cout<<"Masukkan banyak titik : "; cin>>n;
for(int i=1;i<=n;i++){
cout<<"titik ["<<i<<"] x = "; cin>>p[i].x;
cout<<"titik ["<<i<<"] y = "; cin>>p[i].y;
}
Cari2TitikTerdekat(p,n, p1, p2);
cout<<"koordinat "<<p1.x<<","<<p1.y<<" dan "<<p2.x<<","<<p2.y;
cout<<endl;
for(int i=1;i<=n;i++){
if(p1.x==p[i].x && p1.y==p[i].y){
a=i;
}
if(p2.x==p[i].x && p2.y==p[i].y){
b=i;
}
}
cout<<"titiknya = "<<a<<" dan "<<b;
cout<<endl;
system("PAUSE");
return EXIT_SUCCESS;
}
Screenshot of the results you can see below:
Program Finding Shortest Point In Dev C++
To download the script, click on this link Download ScriptProgram Finding Shortest Point In Dev C++
Does it work (our links)?

TAGS: get full version setup crack product key serial number cheat hack tool official latest no survey 100% working legit direct download installer keygen patch registration license activation windows xp vista 7 8 10 ipad iphone mobile linux mac os-x lifetime activated apk app ios facebook youtube téléchargement gratuit telecharger gratuitement téléchargez descargar gratis descarga gratuita baixe gratuitamente download gratuito baixar scarica gratis downloaden kostenlos herunterladen kostenloser download kostenfreier download von aflaai gratis te downloaden scaricare gratuito hent gratis download vapauttaa gratis nedlasting laste ned gratis last ladda ner gratis nedladdning مجاني تحميل مجانا pulsuz yukle preuzimanje datoteka slobodan свободно изтегляне свали безплатно svobodno izteglyane svali bezplatno prezemete besplatno preuzeti preuzmite besplatno preuzimanje besplatni свободно изтегляне 免費下載 miǎnfèi xiàzài 免费下载 ke stažení zdarma stáhnout zdarma tasuta lae alla laadida i-download ang libreng pag-download ilmainen lataa ladata ilmaiseksi κατεβάσετε δωρεάν kateváste do̱reán להורדה בחינם הורדה חינם להוריד ללא תשלום मुफ्त डाउनलोड नि: शुल्क डाउनलोड करें। muphta ḍā-unalōḍa íoslódáil saor in aisce íosluchtaigh フリーダウンロード 無料ダウンロード muryō daunrōdo nemokamai parsisiųsti nemokama lejupielādēt bezmaksas lejuplādēt besplatno simnuvanje бесплатно симнување преземете бесплатно muat turun percuma скачать бесплатно besplatno skachat descărcare gratuită drum liber free dovnload slobodno uskrsnuća skidati slobodan фрее довнлоад слободно ускрснућа скидати слободан na stiahnutie zadarmo zadarmo k stiahnutiu prost travnato gričevje brezplačno prenesete ดาวน์โหลดฟรี ฟรีดาวน์โหลด frī dāwn̒h̄old ücretsiz indir bedava indirin скачати безкоштовно завантажити skachaty bezkoshtovno ingyenes letöltés ingyen ingyenesen letölthető tải xuống miễn phí tải về