error C2039:'InputFromkeyboard' :is not a member of 'CMatrix'#include#include#include#includetemplateclass CMatrix{ int nNum;T**Mat;T**MatR;T**MatRefl;T**Matr;T**Matre;public:CMatrix();CMatrix(int n);CMatrix();void Show(int k=0); //输出矩阵void R

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/23 21:19:33
errorC2039:''InputFromkeyboard'':isnotamemberof''CMatrix''#include#include#include#includetemplateclassC

error C2039:'InputFromkeyboard' :is not a member of 'CMatrix'#include#include#include#includetemplateclass CMatrix{ int nNum;T**Mat;T**MatR;T**MatRefl;T**Matr;T**Matre;public:CMatrix();CMatrix(int n);CMatrix();void Show(int k=0); //输出矩阵void R
error C2039:'InputFromkeyboard' :is not a member of 'CMatrix'
#include
#include
#include
#include
template
class CMatrix
{
int nNum;
T**Mat;
T**MatR;
T**MatRefl;
T**Matr;
T**Matre;
public:
CMatrix();
CMatrix(int n);
CMatrix();
void Show(int k=0); //输出矩阵
void R90(); //旋转90度
void R180(); //旋转180度
void R270(); //旋转270度
void ReflectX(int k=0); //X轴反射
void ReflectY(int k=0); //Y轴反射
int LookForData(); //查找
int ModifyData(); //修改
int ModefyData(int row,int column); //修改
double Range(); //求模
void InputFromFile(char *filename); //从文件中输入矩阵
void InputFromKeyboard(); //从键盘中输入矩阵
};
CMatrixM;
//////////
void main()
{ int choice;
cout

error C2039:'InputFromkeyboard' :is not a member of 'CMatrix'#include#include#include#includetemplateclass CMatrix{ int nNum;T**Mat;T**MatR;T**MatRefl;T**Matr;T**Matre;public:CMatrix();CMatrix(int n);CMatrix();void Show(int k=0); //输出矩阵void R
把case 2:M.InputFromkeyboard();中的K改成大写.