Parse string, store into array

So I have been working on some code for 3 weeks. It should only use functions in main. The purpose of the program is to take a user input string, parse it for words while stripping out any non character and storing these words into an array. Preferably a dynamic string array. The only problem I'm having is tokenizing and I need to do this without vectors or tokenizing include directives. Thanks in advance.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include<iostream>
#include<string>

using namespace std;

const int SIZE=80;	//max string size

string input(void);
void extract(string);


int main()
{
	string inputString;
	

	inputString=input();


	extract(inputString);

    cin.get();
    cin.get();
}

string input(void)
{
	string tmp;
	cout<<"Please enter a string."<<endl<<endl;
	cin>>tmp;
	
	return tmp;
}

void extract(string input)
{
	int length=input.length();
	string tokens;
	string *strArray;

	for(int i=0;i<=length;i++)
	{
		
			

	

	}
	
	
}
Topic archived. No new replies allowed.