// howardconv.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "mstring.h" // class for reading string until termination character #include #include #include #include using namespace std; int main(int argc, char* argv[]) { if(argc!=3) return 0; ifstream ins; char buffer[50]; int i; mstring ms; // count number of x to see how many rows ins.open(argv[1]); int length=0; do{ ins>>buffer; if(mstring(buffer)=="x"){ length++; } }while(ins.good()); char * *x=new char *[length]; char * *y=new char *[length]; char * *z=new char *[length]; char * *ux=new char *[length]; char * *uy=new char *[length]; char * *uz=new char *[length]; char * *r=new char *[length]; // create arrays with lenght to match number of rows for( i=0;i>buffer; cout<