so i fixed those errors,, but i still get the following outputs for an input file that contains the data:
real 5.5
integer 2
character c
OUTPUT:
Number of Lines: 3
eal 5.500000
Invalid!...
Type: Posts; User: m_programmer
so i fixed those errors,, but i still get the following outputs for an input file that contains the data:
real 5.5
integer 2
character c
OUTPUT:
Number of Lines: 3
eal 5.500000
Invalid!...
@qny, thanks that worked... but nowww when i run the program with a file like this:
real 5.5
integer 2
character c
i get an output something like this:
Number of Lines: 3
eal 0
Invalid!...
hi,
i have a struct that holds variables of different data types. i am trying to read the first character of data from a data file and store the data into the struct..
the file holds data like...