strcpy works with cstrings, that's why I have to convert the string object date to a char array using the .c_str[] -

Alternatively, you could save yourself the bother of char arrays by working with C++ strings instead. strcpy works with c-strings, but = works with C++ strings.

I'm not sure what that compiler is having problems with.

year = date.substr(date.find("/")+1,date.length()); That line. The thing on the right is a C++ string. The thing on the left is a char array. The assignment operator = does not know how to assign a C++ string to a char array. But that's not relevant anyway; the code you posted in your first post isn't the code you're actually working with.

I am perpetually thrashing around with this posting interface. It seems to have a very strange memory. Sometimes I'll try to edit a post, and the post I get shown to edit was actually several posts previous.

What I'm trying to do here is extract the month from between the two back slashes, the strchr finds the first instance starting from the begining of the string and the strrchr starts it's search at the end. What's weird is the code works (or at least seems to) when I cout after every "parse" but when I cout at the end it goes nuts.

This parsing could be a breeze if you use C++ string and stringstream to parse ... using :

istringstream iss( cppStrToParse ); // construct iss
getline( iss, cppStrMth, '/' ); // to get month and then
getline( iss, cppStrDay, '/' ); // to get day and then
getline( iss, cppStrYr ); // to get the year at the end

If you need to use C string types ... I have a readWord.h with readWord that will parse a C string line into (dynamic C string) words ... with your choice of delimiters.

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...