- Poruka
- 4.066
#include <stdio.h>
float radius, height, zap;
float Zap (float, float);
int main()
{
printf("Unesi redom precnik i visinu valjka\n");
scanf("%f\n%f\n", radius, height);
zap = Zap(radius, height);
printf("Zapremina je: %f", zap);
return 0;
}
float Zap (float radius, float height)
{
zap = (radius/2)*(radius/2)*height*3,14;
return zap;
}
sto nece da radi?
pokrenem program, ukucam prvi broj, i izbaci poruku - program has performed an illegal operation blablabla, send, dont send
pokrenem debug i izbaci -
Process 62C started
Thread 158 started
Loading untitled at 00400000
Loading ntdll.dll at 77F50000
Loading KERNEL32.dll at 77E60000
Exception: Access Violation
u onom dole delu gde izbacuje i rezultate kompajliranja, a zbaci i ovo exception: access violation u posebnom prozoru
wtf?
inace nece da mi se instalira visual studio...kaze nesto kao da sistem nije pogodan za pokretanje ms dos aplikacija. isto i za turbo pascal...
float radius, height, zap;
float Zap (float, float);
int main()
{
printf("Unesi redom precnik i visinu valjka\n");
scanf("%f\n%f\n", radius, height);
zap = Zap(radius, height);
printf("Zapremina je: %f", zap);
return 0;
}
float Zap (float radius, float height)
{
zap = (radius/2)*(radius/2)*height*3,14;
return zap;
}
sto nece da radi?
pokrenem program, ukucam prvi broj, i izbaci poruku - program has performed an illegal operation blablabla, send, dont send
pokrenem debug i izbaci -
Process 62C started
Thread 158 started
Loading untitled at 00400000
Loading ntdll.dll at 77F50000
Loading KERNEL32.dll at 77E60000
Exception: Access Violation
u onom dole delu gde izbacuje i rezultate kompajliranja, a zbaci i ovo exception: access violation u posebnom prozoru
wtf?
inace nece da mi se instalira visual studio...kaze nesto kao da sistem nije pogodan za pokretanje ms dos aplikacija. isto i za turbo pascal...