代码搜索结果
找到约 10,000 项符合
LED Matrix 的代码
matrix.output
Initialized x(i,j) = 2*i + j
x(3,1) = 7
x is
3 4
5 6
7 8
Assigned y = x
y is
3 4
5 6
7 8
x incremented by 2 is
5 6
7 8
9 10
y + x is
8 10
12 14
matrix.h
#ifndef matrix_
#define matrix_
#include "myExceptions.h"
using namespace std;
template
class matrix
{
friend ostream& operator
matrix.cpp
// test matrix class
#include
#include "matrix.h"
using namespace std;
int main(void)
{
try
{
matrix x(3,2), y, z;
int i, j;
for (i = 1; i
matrix.h
/* * * * * * * * * * * * * * * * * * * * *
* FileName: Matrix.h
* Description: Matrix Class
*
* Version: 1.0
* Author: wxs
* Finish Time: 2001年7月2日
* * * * * * * * * * * * * * *
matrix.cpp
/* * * * * * * * * * * * * * * * * * * * *
* FileName: Matrix.h
* Description: Matrix Class
*
* Version: 1.0
* Author: wxs
* Finish Time: 2001年7月2日
* * * * * * * * * * * * * * *
matrix.inl
// Matrix.inl 矩阵模板类函数(方法)定义
// Ver 1.0.0.0
// 版权所有(C) 何渝, 2002
// 最后修改: 2002.5.31
#ifndef _MATRIX_INL
#define _MATRIX_INL
//矩阵乘法函数
template //最后结