double operator()(size_t i,size_t j)const
{
if(i>=0 && i<length_of_row && j>=0 && j<length_of_col) return _Matrix[i][j];
else throw MatrixError(1);
}
i am using this code...
Type: Posts; User: maruf10
double operator()(size_t i,size_t j)const
{
if(i>=0 && i<length_of_row && j>=0 && j<length_of_col) return _Matrix[i][j];
else throw MatrixError(1);
}
i am using this code...
Thanks for your help :)
need some help again
I have initialized a 3x4 matrix using "Matrix b(3,3)".Here 'b' is an object of Matrix class.now i want to use "b(2,2)=1" this statement to place 1 at...
@ Shanuka : I dont want to change "cout << m(2,2) << endl" ... so i need operator overloading.
@ Memloop : would you please give an example ??
#include <iostream>
#include <cstring>
using namespace std;
class Matrix{
private:
int i,j;
public:
int mat[5][5];
Matrix(int x,int y,int p){
will anyone say what does this line mean in this code...???
strcat(tmpPath, "\\*");
and
if(FindData.cFileName[0]=='.') //what does this line mean??
return;
and what is the difference...
this seems a strange problem
this code sometimes delete all newfoder.exe files and sometimes not :(
whats the prob?
if it deletes all newfoder.exe file once , why it is failed for the next time?
using DeleteFile(filePath) my code can not delete all "newfolder.exe" file.where is the bug?
it produces the following output:
C:\Documents and Settings\maruf\Desktop\newfolder.exe
file delete...
i have fixed it :)
how can i use GetLogicalDriveStrings() this function?
:(
yes.i have got it
"subPath[strlen(Path) + strlen(FindData.cFileName) + 2];"it has no use
but using "\*" shows much file than using "\\*"... i am confused
still this code can't open some...
:(
" strcat(tmpPath, "\\*"); "does not work at all
i want to print every file of my PC
but this code is not searching subfolder(depth value is 2)
besides how can i search all drives(C:\,D:\......)one after one using this code...??
#include...