Can some one give me a simple C++ source code for multiplying two sparse mtarices. Efficiency is not an issue
Santosh Thankachan
Email id :santoshthankachan@yahoo.com
sorry the last code is not behaving properly
i didn't tested it properly .
When i get time i will try to look into it . please excuse me
Santosh Thankachan
Email id :santoshthankachan@yahoo.com
hi bodhi , i have tried to modify ur code a bit . This may work properly. ne ways if u have ne thing related with heap please do give me and answer my query on my thread .
here is the modified code
VOID compare (WORD x, WORD y, INT &comparison)
// Compare two 16 bit binary numbers.
{
if...
Mr. Bodhi u have really done great . I must admit it , but there is a small problem.
if (!x^y)
The statment will always be true just check it . U have done a slight typing mistake but this mistake will not make ur program work properly . Instead give
if (! (x^y))
ne ways keep up the good...
hi revit here is a small example how u can do this. My name is santosh thankachan. Reply me if it has been of ne help to u . My email id is : santoshthankachan@hotmail.com
# include <vector>
class Employee
{
int empid ;
char empName[80] ;
} ;
typedef vector <class Employee *> EmpVector ...
hi !
Please reply me if u find it useful. I am also a learner and I will be a learner throughtout my life.
# include <stdio.h>
//# include <algorithm>
# include <iterator>
using namespace std ;
template< typename T, typename Allocator=allocator<T> > class Array
{
public:
// typedefs...
firstly ,
comparision should be done using == opeartor because = is the asignment operator
secondly , function parameteres shoudl be explicitly defined so float a , float b not float a, b
and one more thing everyone is the beginner first time . But always prepare ur logic in the paper first...
well my friend u need to include <graphics.h>
u need to initialise the graphics driver first and then try to use basic funcions like line , circle , etc. then u have to consider ur code to be doing that .
UR problem is not that difficult . As far as connecing lines is concerned there is...
can some one give me ne idea how to align memory pages allocated by heap alloc . I am using heap alloc to allocate memory space equivalent to 40 system pages (ie physical ones)
please help me how to alsign them properly so that reduce the memory wastages arising from improper page alignment
look & operator may tell u whther both are equal or not but it will not tell u which one is greater or smaller number . for that u have to add a bit of extra code .
if i get time i will give u the code afterwards u can mail me a reminder
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.