using namespace std; int main(int argc, char *argv[]) { char c[] = {'0','.','5'}; //char c[] = "0.5"; float f = atof(c); cout << f*10; if(c[3] != '
using namespace std; int main(int argc, char *argv[]) { char c[] = {'0','.','5'}; //char c[] = "0.5"; float f = atof(c); cout << f*10; if(c[3] != '