- 9 Eyl 2012
- 323
- 0
kodlama işine tamamen 0'dan başlayanlar bana ö.m atsın yardım ederim
#include <stdio.h>
#include <conio.h>
int main()
{
int s,i ;
char b=' ' ;
char kac_kelime[256] ;
puts("Kelime sayisini saydirmak istediginiz cumleyi giriniz.") ;
fgets(kac_kelime,256,stdin) ;
for(i=0; i=256 ;i++ )
{
if(b==kac_kelime[i])
s=s+1 ;
}
printf("Cumlede %d tane kelime vardir.",s+1) ;
getch() ;
return 0 ;
}
#include <iostream>
#include <windows.h>
#include <string>
using namespace std;
int main () {
int program;
SetConsoleTitle("Hello! Welcome to Calculator");
START_PROGRAM:
cout << endl;
cout << " <Welcome to Calculator> " << endl;
long numberOne, numberTwo;
int process;
cout << "1. Number : ";
cin >> numberOne;
cout << "2. Number : ";
cin >> numberTwo;
cout << endl;
cout << "1 : + " << endl;
cout << "2 : - " << endl;
cout << "3 : * " << endl;
cout << "4 : / " << endl;
cout << endl;
cout << "transaction number : ";
cin>>process;
switch (process) {
case 1:
system("cls");
cout << endl;
cout << "Result : " << numberOne + numberTwo;
cout << endl;
goto START_PROGRAM;
break;
case 2:
system("cls");
cout << endl;
cout << "Result : " << numberOne - numberTwo;
cout << endl;
goto START_PROGRAM;
break;
case 3:
system("cls");
cout << endl;
cout << "Result : " << numberOne * numberTwo;
cout << endl;
goto START_PROGRAM;
break;
case 4:
system("cls");
cout << endl;
cout << "Result : " << numberOne / numberTwo;
cout << endl;
goto START_PROGRAM;
break;
default:
system("cls");
cout << "error number ! " << endl;
cout << endl;
goto START_PROGRAM;
}
cin >> program;
}
#include <iostream>
#include <string>
#include <windows.h>
using namespace std;
int main () {
int program;
SetConsoleTitle ("Sifre 3 Deneme Hakki / Snare");
int denemeHakki;
string sifre, sifre1;
denemeHakki = 3;
sifre = "123456";
giris:
cout << "\n";
cout << " Sifreyi Giriniz : ";
cin >> sifre;
if (denemeHakki ==1 )
{
cout << "\n";
cout << "Programa Giris engellendi 3 deneme hakkiniz bitti !";
}
else
{
if (sifre == "123456")
{
cout << "Tebrikler ! Programa Giris Yaptiniz.";
}
else
{
cout << "\n";
cout << "Hata!! Programa giris yapilmadi. " << denemeHakki - 1 << " hakkiniz kaldi "<<endl;
denemeHakki = denemeHakki - 1;
goto giris;
}
}
cin >> program;
}
Turkhackteam.org internet sitesi 5651 sayılı kanun’un 2. maddesinin 1. fıkrasının m) bendi ile aynı kanunun 5. maddesi kapsamında "Yer Sağlayıcı" konumundadır. İçerikler ön onay olmaksızın tamamen kullanıcılar tarafından oluşturulmaktadır. Turkhackteam.org; Yer sağlayıcı olarak, kullanıcılar tarafından oluşturulan içeriği ya da hukuka aykırı paylaşımı kontrol etmekle ya da araştırmakla yükümlü değildir. Türkhackteam saldırı timleri Türk sitelerine hiçbir zararlı faaliyette bulunmaz. Türkhackteam üyelerinin yaptığı bireysel hack faaliyetlerinden Türkhackteam sorumlu değildir. Sitelerinize Türkhackteam ismi kullanılarak hack faaliyetinde bulunulursa, site-sunucu erişim loglarından bu faaliyeti gerçekleştiren ip adresini tespit edip diğer kanıtlarla birlikte savcılığa suç duyurusunda bulununuz.