// tokenizer.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <cstring>
#include <iostream>

using namespace std;

char mystr[] = "(10, 20) ; (dvaese, triese) ;;;;;;;...( 60, 70) (1,1),2,2,3,4,5,6,7";

int main () {
char *ptr;


ptr = strtok(mystr, "() ,;.");
do {
cout << '[' << ptr << ']' << endl;

} while (ptr = strtok(NULL, "() ,;"));

///////////////////////////////////////////////

Last modified: Friday, 31 May 2013, 11:42 AM