Hi,
I am new to c++ and just wanted to know how to split a sting e.g if someone were to enter their details like
John age 19 dob 10/06/1986
into a basic cin, how could I split the string to store John 19 10 06 1986 into different strings or values so I can process them each differently,
thanks!
Just something basic I have so far
#include <iostream>
#include <string>
using namespace std;
int main()
{
string details;
cout << "Enter Details:\n\n";
cin >> details;