#include <iostream.h>
#include <conio.h>
int main()
{
double Number, Decimal;
int Integer;
cout << "Enter decimal number: ";
cin >> Number; cin.ignore();
cout << "\nIntegerl: " << Integer << " and decimal: " << Decimal;
cout << "\n\npress a button"; getch();
return 0;
}
So if i enter 19.84444
I want it to say Integer 19 and decimal 0.84444
I have no idea how to use the split() function
Can someone please help ?