Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

atof - Converts String to float value(Sum of 2 Float Values) in C++

//ATOI() FUNCTION : Sum of 2 float values

#include<stdio.h>
#include<iostream.h>
#include<stdlib.h>
#include<conio.h>
void main()
{
char num1[40],num2[40];
cout<<"enter first:";
gets(num1);
cout<<"enter second:";
gets(num2);
cout<<"The sum is:"<< atoi(num1)+atoi(num2);
getch();
}