Please help and resend your replies...my other account got deleted (it was handle iamnew2c) and I wasn't able to read the replies you sent to this question...How do I change my code so that I get 1..2 is not a float, or if there is a + or - sign in the string so that it gives me the number is neither?
Thanks again and I've provided the code again :>
C:\Borland\bcc55\Bin>0210a
Enter a string or EOF to end:
01234
String: 01234
This IS an Integer: 01234
The string 01234 IS NOT a floating point number
Enter a string or EOF to end:
1..2
String: 1..2
The string 1..2 IS NOT an integer
This is a Float: 1..2
Enter a string or EOF to end:
1.2
String: 1.2
The string 1.2 IS NOT an integer
This is a Float: 1.2
Enter a string or EOF to end:
eof
String: eof
The string eof IS NOT an integer
The string eof IS NOT a floating point number
The string eof IS NOT a floating point number or integer
Enter a string or EOF to end:
EOF
String: EOF
The string EOF IS NOT an integer
The string EOF IS NOT a floating point number
The string EOF IS NOT a floating point number or integer
C:\Borland\bcc55\Bin>bcc32 0210a.c
Borland C++ 5.5 for Win32 Copyright (c) 1993, 2000 Borland
0210a.c:
Warning W8004 0210a.c 14: 'isFloat' is assigned a value that is never used in fu
nction main
Warning W8004 0210a.c 13: 'length' is assigned a value that is never used in fun
ction main
Warning W8004 0210a.c 12: 'inc' is assigned a value that is never used in functi
on main
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
C:\Borland\bcc55\Bin>
Thanks again and I've provided the code again :>
C:\Borland\bcc55\Bin>0210a
Enter a string or EOF to end:
01234
String: 01234
This IS an Integer: 01234
The string 01234 IS NOT a floating point number
Enter a string or EOF to end:
1..2
String: 1..2
The string 1..2 IS NOT an integer
This is a Float: 1..2
Enter a string or EOF to end:
1.2
String: 1.2
The string 1.2 IS NOT an integer
This is a Float: 1.2
Enter a string or EOF to end:
eof
String: eof
The string eof IS NOT an integer
The string eof IS NOT a floating point number
The string eof IS NOT a floating point number or integer
Enter a string or EOF to end:
EOF
String: EOF
The string EOF IS NOT an integer
The string EOF IS NOT a floating point number
The string EOF IS NOT a floating point number or integer
C:\Borland\bcc55\Bin>bcc32 0210a.c
Borland C++ 5.5 for Win32 Copyright (c) 1993, 2000 Borland
0210a.c:
Warning W8004 0210a.c 14: 'isFloat' is assigned a value that is never used in fu
nction main
Warning W8004 0210a.c 13: 'length' is assigned a value that is never used in fun
ction main
Warning W8004 0210a.c 12: 'inc' is assigned a value that is never used in functi
on main
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
C:\Borland\bcc55\Bin>