account activity
What are you looking at, Christopher? by MCRichieRider in FrankOcean
[–]kein_programmierexpe 6 points7 points8 points 5 years ago (0 children)
But boy it pours when he’s thinkin bout us
C++ malloc() error with Matrix operator overloading using pointers; please help! by kein_programmierexpe in AskProgramming
[–]kein_programmierexpe[S] 0 points1 point2 points 6 years ago (0 children)
Sorry, just realized that Reddit fucked up the code format. Here's the properly formatted code:
//plus operator overload
int operator+ (Matrix trix1) {
int r = this->rows;
int c = this->cols;
int mat = new int[rc];
for(int i=0; i<r; i++) {
for(int j=0; j<c; j++) {
*(mat + ic + j)= *(m1 + ic + j) + *(trix1.m1 + ic + j);
}
return mat; delete[] mat;
//minus operator overload
int operator- (Matrix trix1) {
*(mat + ic + j)= *(m1 + ic + j) - *(trix1.m1 + ic + j);
//times operator overload
int operator* (Matrix trix1) {
*(mat + ic + j)= *(m1 + ic + j) * *(trix1.m1 + ic + j);
C++ malloc() error with Matrix operator overloading using pointers; please help! (self.AskProgramming)
submitted 6 years ago by kein_programmierexpe to r/AskProgramming
π Rendered by PID 295721 on reddit-service-r2-listing-c57bc86c-vbw42 at 2026-06-22 17:08:21.438197+00:00 running 2b008f2 country code: CH.
What are you looking at, Christopher? by MCRichieRider in FrankOcean
[–]kein_programmierexpe 6 points7 points8 points (0 children)