代码搜索结果
找到约 10,000 项符合
LED Matrix 的代码
matrix.cpp
// test matrix class
#include
#include "matrix.h"
void main(void)
{
try {
Matrix X(3,2), Y, Z;
int i, j;
for (i = 1; i
matrix.out
X(3,1) = 7
X is
3 4
5 6
7 8
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
16 18
-(Y + X) is
-8 -10
-12 -14
matrix.h
#ifndef Matrix_
#define Matrix_
#include "xcept.h"
template
class Matrix {
friend ostream& operator
matrix.cpp
// test matrix class
#include
#include "matrix.h"
void main(void)
{
try {
Matrix X(3,2), Y, Z;
int i, j;
for (i = 1; i
matrix.out
X(3,1) = 7
X is
3 4
5 6
7 8
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
16 18
-(Y + X) is
-8 -10
-12 -14
matrix.h
// Matrix.h: interface for the CMatrix class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MATRIX_H__D58D0A47_68B4_11D6_AD90_00B0D0652E95__INCLUDED_)
matrix.cpp
// Matrix.cpp: implementation of the CMatrix class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Matrix.h"
#ifdef _DEBUG
#undef THI
matrix.h
/////////////////////////////////////////////////////////////////////////////
// Matrix.h :
// Interface of the class CMatrix
// Author : freeia
// Modified Date : 3/11/2003
// E-mail : freeia@
matrix.h
/////////////////////////////////////////////////////////////////////////////
// Matrix.h :
// Interface of the class CMatrix
// Author : freeia
// Modified Date : 3/11/2003
// E-mail : freeia@
matrix.cpp
/////////////////////////////////////////////////////////////////////////////
// Matrix.cpp : Implementation of the class Matrix
//
/////////////////////////////////////////////////////////////////