Code:
#include <stdio.h>
#include <string.h>
#include <iostream>

using namespace std;

int main ()
{
  char str;
  cout<<"Enter a string:"<<flush;
  cin >> str;
  char * pch;
  cout<<"You're splitting"<<str<<endl;
  pch = strtok (str,",.-");
  while (pch != NULL)
  {
    cout<<"%s\n"<<pch<<endl;
    pch = strtok (NULL, " ,.-");
  }
  system ("pause");
  return 0;
}
ok here's the latest i've tried.. but still not getting the right result..

any help?? pls?