R
Rajesh
struct symbol
{
char ch;
float probability;
char *codeword;
};
void get_user_input(struct symbol **sptr)
{
.....
scanf("%c%f",&((*sptr).ch),&((*sptr).probability));
.....
}
Turbo C++ compiler (3.0) gave me
"floating point formats not linked. Abnormal program termination"
error.
If I scanned them into temp. vars and then assigned indivisually it
works just fine....
May I know what's problem here, compiler bug.....?
{
char ch;
float probability;
char *codeword;
};
void get_user_input(struct symbol **sptr)
{
.....
scanf("%c%f",&((*sptr).ch),&((*sptr).probability));
.....
}
Turbo C++ compiler (3.0) gave me
"floating point formats not linked. Abnormal program termination"
error.
If I scanned them into temp. vars and then assigned indivisually it
works just fine....
May I know what's problem here, compiler bug.....?