Thread: Problems: Operator overloading.

  1. #16
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    No, I do not... could that be causing the problem? I mean, I could see why. I'll try it out now. Thanks for the input.

  2. #17
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    I thought you did have that in your header and you were only defining the const version of the function. Honestly, I don't know what the problem is .
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  3. #18
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    AHA! I had an awakening... I was lying on my bed, reading when I thought; maybe it doesn't have anything to do with the definition at all. Maybe it has something to do with my main cpp file which is testing all the methods.

    Although I've narrowed it down, I still have no idea why I am getting unresolved externals..

    // Matrix.cpp : Defines the entry point for the console application.
    #include "stdafx.h"
    #include "CMatrix.h"
    #include <iostream>
    int main(int argc, char* argv[])
    	// Testing...
    	using std::endl;
    	CMatrix Matrix(5, 5);
    	Matrix.SetSingle(3, 4, 4.302);
    	Matrix.Redimension(6, 6);
    	CMatrix CopyMatrix(6, 6);
    	CopyMatrix.SetSingle(3, 4, 4.232);
    	Matrix.Redimension(6, 6);
    	for (int x = 0; x < Matrix.GetRows(); x++)
    		Matrix.SetRow(x, 3.32, 4.32, 5.13, 6.75, 7.87, 6.55);
    	for (int i = 0; i < Matrix.GetRows(); i++)
    		for (int ii = 0; ii < Matrix.GetColumns(); ii++)
    			std::cout << Matrix.GetSingle(i, ii) << endl;
    	return 0;

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. No clue how to make a code to solve problems!
    By ctnzn in forum C Programming
    Replies: 8
    Last Post: 10-16-2008, 02:59 AM
  2. C Pointers Problems
    By mhelal in forum C Programming
    Replies: 8
    Last Post: 01-10-2007, 06:35 AM
  3. String Manipulation problems -_-
    By Astra in forum C Programming
    Replies: 5
    Last Post: 12-13-2006, 05:48 PM
  4. contest problems on my site
    By DavidP in forum Contests Board
    Replies: 4
    Last Post: 01-10-2004, 09:19 PM
  5. DJGPP problems
    By stormswift in forum C Programming
    Replies: 2
    Last Post: 02-26-2002, 04:35 PM