C++ problem with program

This programs seems to run perfectly fine. but there is a bug in the get_number function I tried to find for hours but I couldnt. See if you guys can help me. Any help is greatly appreciated. Thanks

fconvert.h

// This is the header file for the functions used in
// the character string to real number conversion
// program (CharToFloat).
#include <iostream>
#include <fstream>
#include <cstring>
#include <cmath>
#include <iomanip>
using namespace std;
void get_number(ifstream& numbers, char cfloat[]);
// This function reads a real number as chars from
// file numbers and returns it as a string. This
// function ignores any characters other than digits
// and periods.
float convert_number(char cfloat[]);
// This function takes as a parameter the real number
// as a character string (cfloat), converts it to a
// floating-point number (a float) and returns the
// float.
void print_number(char cfloat[],float fnumber);
// This function takes the real number character string
// (cfloat) and its floating-point counterpart (fnumber)
// and prints them with appropriate labels.

Well, your file contains 2 numbers that do not have '.' in them, and the code has an error message that says "Error - no '.' detected.". Therefore I wouldn't expect the file to work.

Making the assumption there's even more you haven't mentioned (like there's a real bug in the code) I'd suggest the following things:

1) format your code consisently. It's very hard to follow with the haphazard indentation you're using
2) add output statements to follow your code as it executes. Then you can see where your code deviates from what you expect to happen.
3) more details!!!! We need to understand the problem. "it doesn't work" tells us nothing. Explain in detail what it does, what it doesn't do, why you expect different results, etc...

Remember,
A) we did not write the code - therefore we don't know what's supposed to happen
B) we cannot run your code - therefore we can't see what actually happened. Most of us are probably not going to create a project in our compiler just to execute your code.
C) so all we can do is look over your code. Therefore, if we don't know what we're looking for, it's very hard to find.