This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <math.h> | |
typedef struct nokta{ | |
int X; | |
int Y; | |
}Nokta; | |
/*VS İÇİN | |
struct nokta{ | |
} | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
//kac eleman girilecek:5 | |
//Eleman giriniz: 1 | |
//Eleman giriniz: 2 | |
//Eleman giriniz: 3 | |
//Eleman giriniz: 4 | |
//Eleman giriniz: 5 | |
//Kaç tane daha girilecek: 3 | |
//sayi giriniz: 7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
/* | |
strrev | |
strlen | |
strcpy | |
strcmp ->compare | |
strcat ->cat | |
strncpy | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
/* | |
-Kullanıcıdan bir string alınız. | |
Bu mesajı tersten yazdırın ve ters çevrilen mesajı yazdırınız. | |
*/ | |
char kelime[10]; | |
char ters[10]; | |
int uzunlukBul(char *kelime){ | |
int sayac=0; | |
while(kelime[++sayac]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Referans aktarımı - değer aktarımı performans farkı | |
#include <stdio.h> | |
#include <time.h> | |
#define len 1000000 | |
typedef struct array{ | |
char dizi[len]; | |
}Dizi; | |
long fonkRef(Dizi *d){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <math.h> | |
/* | |
5-) a^2 + b^2 = c^2 denklemini sağlayan a , b , c değerlerini bulun ve ekrana yazdırın. | |
*/ | |
#define UST_SINIR 100 | |
int main(){ | |
int a=2,b=2; | |
for (a=2; a<UST_SINIR; a++) | |
for (b=2; b<UST_SINIR; b++) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0-100.000 arasında; | |
a) kaç tane asal sayı vardır adedini ekrana görüntüleyiniz? | |
b) kaç tane tam kare sayı vardır adedini ekrana görüntüleyiniz ? | |
c) kaç tane mükemmel sayı vardır adedini ekrana görüntüleyiniz? | |
#include <stdio.h> | |
#include <math.h> | |
int asalMi(int sayi){ | |
for(int i=2;i<sayi;i++) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
/* | |
x bir sayı olarak tanımlanmak üzere; tam kare olup olmadığını kontrol ediniz. | |
Tam kare olmasına bağlı olarak tam sayı olup olmadığı sonucuna ulaşarak x’in türünü sonuçlandırınız. | |
*/ | |
#include <stdio.h> | |
#include <math.h> | |
int main() { | |
int x; | |
printf("Bir sayi gir: "); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
class sinif{ | |
private: | |
int x; | |
public: | |
sinif(int X){ | |
x=X; | |
std::cout << "yapici" << std::endl; | |
} | |
~sinif(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
class Nokta{ | |
private: | |
int x,y,genislik,yukseklik; | |
public: | |
Nokta(){} | |
Nokta(int X,int Y,int Genislik,int Yukseklik){ | |
x=X;y=Y;genislik = Genislik;yukseklik = Yukseklik; | |
} | |
Nokta(int X1,int X2,float Y1,float Y2){ |