E
ehabaziz2001
When I rename the variables d,p TO : do,po in all the module of :
void convert_meter(float *me,float *d,float *p)
I got an error of that line of : void convert_meter(float *me,float
*d,float *p)
E:\programs\c_lang\iti01\tc201\ch05\own>tcc pnt02o04
Turbo C Version 2.01 Copyright (c) 1987, 1988 Borland International
pnt02o04.c:
Error pnt02o04.c 44: Declaration syntax error
*** 1 errors in Compile ***
Available memory 396264
#include "stdio.h"
void main()
{
float meter,dots,points;
void input_meter();
void convert_meter();
char another();
do {
input_meter(&meter);
convert_meter(&meter,&dots,&points);
} while (another()=='y');
}
void input_meter(float *me)
{
printf("\nEnter size in meter : ");
scanf("%f",me);
}
void convert_meter(float *me,float *d,float *p)
{
*d=((*me)*300)/(0.0254);
*p=((*me)*720)/(0.0254);
printf("\n %f Meter is = %f dots %f points",*me,*d,*p);
}
char another()
{
char ans;
printf("\n\n Do you want to procees (y/n) : ");
scanf("\n");
scanf("%c",&ans);
return ans;
}
void convert_meter(float *me,float *d,float *p)
I got an error of that line of : void convert_meter(float *me,float
*d,float *p)
E:\programs\c_lang\iti01\tc201\ch05\own>tcc pnt02o04
Turbo C Version 2.01 Copyright (c) 1987, 1988 Borland International
pnt02o04.c:
Error pnt02o04.c 44: Declaration syntax error
*** 1 errors in Compile ***
Available memory 396264
#include "stdio.h"
void main()
{
float meter,dots,points;
void input_meter();
void convert_meter();
char another();
do {
input_meter(&meter);
convert_meter(&meter,&dots,&points);
} while (another()=='y');
}
void input_meter(float *me)
{
printf("\nEnter size in meter : ");
scanf("%f",me);
}
void convert_meter(float *me,float *d,float *p)
{
*d=((*me)*300)/(0.0254);
*p=((*me)*720)/(0.0254);
printf("\n %f Meter is = %f dots %f points",*me,*d,*p);
}
char another()
{
char ans;
printf("\n\n Do you want to procees (y/n) : ");
scanf("\n");
scanf("%c",&ans);
return ans;
}