Expand|Select|Wrap|Line Numbers
- // main.h
- #ifndef __MYHEADER__
- #define __MYHEADER__
- // std c includes
- // defines
- // cpp prototypes
- void setVector(const int &, const int &, const unsigned char &);
- // compiler didn't like this, so changed to
- void setVector(const int, const int, const unsigned char);
- #endif
Expand|Select|Wrap|Line Numbers
- // vec.cpp
- #include <vector>
- #include "main.h"
- using std::vector;
- // declared global vector here
- void setVector(const int row, const int col, const unsigned char ch)
- {
- myvec[row][col] = ch;
- }
I'm using visual C++ express 2008.
TIA