all of you have been very patient in helping me but now Im faced with a problem of integrating code from people who used different styles. I understand how each works but Im not so sure how to get them to work together.
The main part of the program simply collects an array of numbers using double as the type. Someone was kind enough to help me with a simple verification function so invalid characters could not be entered.
The problem I have is how can I take my arrary using a double data type and ?convert? it to use this function which uses a string.Code://Code by: Prelude bool validate ( std::string val ) { int i, j; const std::string valid = "0123456789-."; for ( i = 0; i < val.length(); i++ ) { for ( j = 0; j < valid.length(); j++ ) if ( val[i] == valid[j] ) break; if ( j == valid.length() ) return false; } return true; }