IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası

IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası (https://www.ircforumlari.net/)
-   C ve C++ (https://www.ircforumlari.net/c-ve-c/)
-   -   Kordinat sistemi uzaklık hesaplama (https://www.ircforumlari.net/c-ve-c/477352-kordinat-sistemi-uzaklik-hesaplama.html)

MorfiN 28 Nisan 2012 10:33

Kordinat sistemi uzaklık hesaplama
 
PHP- Kodu:

#include<iostream>
#include<fstream>
#include<math.h>
using namespace std;
class 
uzunluk{
      private:
             
int x,y;
             
float sonuc;
 
      public:
             
void degerAl(){
 
             
int x1,y1;
             
cout<<"x y degerlerini giriniz=";cin>>x1>>y1;
             
x1 y1;
 
             }
 
             
void hesapla(){
             
int a,b;
             
float sonuc1;
             
sonuc1=sqrt((float) a*b*);
              
sonuc=sonuc1;
             }
             
void yaz(){
             
cout<<"sonuc="<<sonuc<<endl;
             }
             };       
 
             
int main()
             {
              
uzunluk hesap;
              
hesap.degerAl();
              
hesap.hesapla();
              
hesap.yaz();
 
              
system("pause");
              return 
0;
              } 



Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 04:31.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO
Copyright ©2004 - 2025 IRCForumlari.Net Sparhawk