I wan't to store words in an array sort of like the array below. Everytime i try it it gives me weird results in the output(weird charactors in the output). The code below works fine for me, but the words are already in the array, I want to get words from a string and store them in the array though.
Code:
#include <iostream>
using namespace std;
int main()
{
char array[7][10] = {"Sun","Mon","Tues","Wed","Thurs","Fri","Sat"};
int x;
for (x=0;x<7;x++)
{
cout <<array[x];
cout <<endl;
}
cin.get();
return 0;
}