This file contains hidden or 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> | |
using namespace std; | |
/* | |
int number(int a,int b=0){ return(a==0 ? b : number(a/10,b*10+a%10));} | |
understandable form of this recursive call | |
*/ | |
int number(int i,int a,int b=0) |
This file contains hidden or 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> | |
using namespace std; | |
template<class T> | |
T findSmallest(T* arr,int size) | |
{ | |
if(size==1) | |
return arr[0]; | |
else{ |
This file contains hidden or 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
/* | |
* | |
* CREATED BY: Sinan NAR | |
* CREATION DATE:02/03/2011 | |
* | |
* DESCRİPTİON | |
* Alinan uc harfli bi kelimenin harflerini buyuk harfe cevirir | |
* | |
* | |
* |
This file contains hidden or 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
/* | |
* | |
* CREATED BY: Sinan NAR | |
* CREATION DATE:02/03/2011 | |
* | |
* DESCRİPTİON | |
* Verilen bir saniye bilgisini saat, dakika, saniye cinsinden hesaplayan bir program yaziniz. | |
* ( Mesela 20000 saniye: 5 saat, 33 dakika, 20 saniyeye eşittir.) | |
*a)Konsol: Kullanıcı saniyeyi konsoldan girer ve sonuçlar ekrana basılır. | |
* |
This file contains hidden or 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
/* | |
* HW2_091044005_PART_2.c | |
* | |
* CREATED BY: Sinan Nar | |
* CEATION DATE :20/03/2011 | |
* | |
* ACIKLAMA: | |
* dort tabaninda iki basamakli sayi ureten ve kullanicinin tahmin etmesini isteyen program | |
* |
This file contains hidden or 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
/* | |
* HW2_091044005_PART_3.c | |
* | |
* CREATED BY: Sinan Nar | |
* CEATION DATE :20/03/2011 | |
* | |
* ACIKLAMA: | |
* girilen elektrik degerleri icin ve hesabinizin turune gore elektrik faturasi hesaplayan program | |
* | |
* |
This file contains hidden or 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
/* | |
* HW03_091044005_PPART_1.c | |
* | |
* CREATED BY :Sinan NAR | |
* CREATING DATE :25/03/2011 | |
* | |
* DESCRIPTION | |
* This program get an odd number from user | |
* And check this number that is between 1-21 and is it an odd number | |
* if these statements are okey, |
This file contains hidden or 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
/* | |
* HW03_091044005_PPART_2.c | |
* | |
* CREATED BY :Sinan NAR | |
* CREATING DATE :25/03/2011 | |
* | |
* DESCRIPTION | |
* This code is a source of a game that is a stock market game | |
* two player should be infront of the computer to play these game | |
* and players goals should be make to maximum asset with logically invesment |
This file contains hidden or 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 "mathFromSinan.h" | |
int factorialForInt(const int __input_Value ) | |
{ | |
if( __input_Value == 0 || __input_Value == 1 ) | |
return 1; | |
else | |
return __input_Value * factorialForInt(__input_Value-1); | |
} |
This file contains hidden or 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
/* | |
* Created By: EKREM ÇOBAN | |
* Editted By: Sinan NAR | |
* | |
* Dinamic allocation and Function Pointer Usage | |
* | |
*/ | |
/* Dinamik olarak elde edilen alanın başlangıç adresine dönen fonksiyon */ |