the program actually runs smoothly on my computer,
but .....
Search found 3 matches
- Sun Jan 16, 2005 4:40 am
- Forum: Volume 4 (400-499)
- Topic: 476 - Points in Figures: Rectangles
- Replies: 87
- Views: 18915
- Sun Jan 16, 2005 4:35 am
- Forum: Volume 4 (400-499)
- Topic: 476 - Points in Figures: Rectangles
- Replies: 87
- Views: 18915
476 " Invalid memory reference" again .... and a
#include <stdio.h>
int main(int argc, char **argv)
{
float a[10];
float b[10];
float c[10];
float d[10];
float x[100];
float y[100];
int flag;
int count1;
int count2;
int count3;
int index;
int exit;
float input1,input2;
char waste;
count1=0;
exit=0;
while ((count1<=10 ...
- Sun Jan 16, 2005 4:30 am
- Forum: Volume 100 (10000-10099)
- Topic: 10071 - Back to High School Physics
- Replies: 49
- Views: 15450
10071 Wa !?
#include <stdio.h>
int main(int argc, char **argv)
{
int v1,t1,v2,t2;
scanf("%d %d",&v1,&t1);
printf("%d\n",2*v1*t1);
scanf("%d %d",&v2,&t2);
printf("%d",2*v2*t2);
return 0;
}
Why's that wrong ?
I don't believe it....
It specifies the 2 inputs are integers,
and so it is......
Why ...