정수행렬과 문자 행렬 곱을 어떻게 해야할까요
연산자 오버로딩을 이용해보라고 해서 이용 해봤는데;;
도저히 모르겠네요
matrix<string> operator* (const matrix<int>& mat_int_A, const matrix<string>& mat_str_B)
{
matrix<string> TAX(mat_int_A.numrows(), mat_int_A.numcols());
for (int row = 0; row < TAX.numrows(); row++)
for (int col = 0; col < TAX.numcols(); col++)
TAX[row][col] =
return TAX;
1 2 3 com happy mouse com happyhappy mousemousemouse
4 3 3 * int string vector = intintintint stringstringstring vectorvectorvector
1 2 3 mask phone table mask phonephone tabletabletable
결과는 위에 처럼 나와야합니다...
0

0
댓글 0