--------------------------------------------------------------------------------------------------------------------
Hocam ben bu kodda hata alıyorum, işlemleri yapmıyor sebebi nedir?
Aldığınız hatanın ekran görüntüsünü paylaşabilir misiniz?
--------------------------------------------------------------------------------------------------------------------
Hocam ben bu kodda hata alıyorum, işlemleri yapmıyor sebebi nedir?
#include <stdio.h>
int main()
{
int sayi=0;
int t=0;
printf("Kac adet ogrenci var? : ");
scanf("%d", &sayi);
int dizi[sayi];
printf(" \n %d sayisini girdiniz.", sayi);
for (int i=0; i<sayi; i++)
{
printf("\n Lutfen %d. ogrencinin notunu giriniz: ", i+1);
scanf("%d", &dizi[i]);
t=t+dizi[i]; }
printf("Sinifin ortalamasi : %d", t/sayi);
getchar ();
}
#include <stdio.h>
#include <windows.h>
**** kokbul(int a){
int i;
int j;
for(j=0;j<1;j++){
for(i=0;i<a;i++){
if(i*i==a){
printf("",i);
break;
}
}
if(i*i!=a){
system("color c");
printf("\nGirdiginiz sayinin karekoku bilinmemektedir.\n\n");
break;
}
if(i*i==a){
system("color a");
printf("\nGiridginiz sayinin karekoku %d dir.\n\n",i);
break;
}
}
}
int main(){
int b;
system("color f");
printf("Karekokunu ogrenmek istediginiz sayiyi giriniz.>");
scanf("%d",&b);
kokbul(b);
system("pause");
return 0;
}
#include <stdio.h>
#include <windows.h>
int main(){
system("color c");
int a,b,i,c=1;
printf("Taban:");
scanf("%d",&a);
printf("Us:");
scanf("%d",&b);
for(i=0;i<b;i++){
c=c*a;
}
system("color a");
printf("\nUslu ifadenin degeri : %d\n\n\n\n",c);
system("pause");
return 0;
}
#include <stdio.h>
int main()
{
int sm;
int aanotu=0,bbnotu=0,ccnotu=0,ddnotu=0;
int toplam=0;
printf("Lutfen sinif mevcudunu giriniz: ");
scanf("%d", &sm);
int puan[sm];
for (int i=0; i<sm; i++)
{
printf(" \n Lutfen %d. ogrencinin notunu giriniz: ", i+1);
scanf("%d", &puan[i]);
toplam+=puan[i];
}
for(int i=0; i<sm; i++)
{
if( puan[i]<=100 && puan[i]>=90)
{
printf("\n %d. ogrencinin harf notu: AA ", i+1);
aanotu+=1;
}
else if ( puan[i]<90 && puan[i]>=80)
{
printf("\n %d. ogrencinin harf notu: BB", i+1);
bbnotu+=1;
}
else if (puan[i]<80 && puan[i]>=70)
{
printf("\n %d. ogrencinin harf notu: CC", i+1);
ccnotu+=1;
}
else if (puan[i]<70 && puan[i]>=60)
{
printf("\n %d. ogrencinin harf notu: DD", i+1);
ddnotu+=1;
}
}
printf("\nAA notu alanlarin sayisi: %d", aanotu);
printf("\nBB notu alanlarin sayisi: %d", bbnotu);
printf("\nCC notu alanlarin sayisi: %d", ccnotu);
printf("\nDD notu alanlarin sayisi: %d", ddnotu);
getchar ();
}
#include <windows.h>
/* This is where all the input to the window goes to */
LRESULT CALLBACK WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) {
switch(Message) {
/* Upon destruction, tell the main thread to stop */
case WM_DESTROY: {
PostQuitMessage(0);
break;
}
/* All other messages (a lot of them) are processed using default procedures */
default:
return DefWindowProc(hwnd, Message, wParam, lParam);
}
return 0;
}
/* The 'main' function of Win32 GUI programs: this is where execution starts */
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
WNDCLASSEX wc; /* A properties struct of our window */
HWND hwnd; /* A 'HANDLE', hence the H, or a pointer to our window */
MSG msg; /* A temporary ******** for all messages */
/* zero out the struct and set the stuff we want to modify */
memset(&wc,0,sizeof(wc));
wc.cbSize = sizeof(WNDCLASSEX);
wc.lpfnWndProc = WndProc; /* This is where we will send messages to */
wc.hInstance = hInstance;
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
/* White, COLOR_WINDOW is just a #define for a system color, try Ctrl+Clicking it */
wc.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
wc.lpszClassName = "WindowClass";
wc.hIcon = LoadIcon(NULL, IDI_APPLICATION); /* Load a standard icon */
wc.hIconSm = LoadIcon(NULL, IDI_APPLICATION); /* use the name "A" to use the project icon */
if(!RegisterClassEx(&wc)) {
MessageBox(NULL, "Window Registration Failed!","Error!",MB_ICONEXCLAMATION|MB_OK);
return 0;
}
hwnd = CreateWindowEx(WS_EX_CLIENTEDGE,"WindowClass","Cap tion",WS_VISIBLE|WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, /* x */
CW_USEDEFAULT, /* y */
640, /* width */
480, /* height */
NULL,NULL,hInstance,NULL);
if(hwnd == NULL) {
MessageBox(NULL, "Window Creation Failed!","Error!",MB_ICONEXCLAMATION|MB_OK);
return 0;
}
/*
This is the heart of our program where all input is processed and
sent to WndProc. Note that GetMessage blocks code flow until it receives something, so
this loop will not produce unreasonably high CPU usage
*/
while(GetMessage(&msg, NULL, 0, 0) > 0) { /* If no error is received... */
TranslateMessage(&msg); /* Translate key codes to chars if present */
DispatchMessage(&msg); /* Send it to WndProc */
}
return msg.wParam;
}
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.