wats the error over here:
void addlist(node* headptr,int c)
{
cout<<"headptr value after being passed"<<headptr->val<<endl;
node* temptr11 = new node;
node* temptr1 = headptr;
Type: Posts; User: sairakhalid
wats the error over here:
void addlist(node* headptr,int c)
{
cout<<"headptr value after being passed"<<headptr->val<<endl;
node* temptr11 = new node;
node* temptr1 = headptr;
How can i make addition in my linked lists if the nodes are stroing two values:
1) int element
2) int colomnvalue
i have to make the addition on the basis that the nodes having the same...
this code only makes two nodes and at the time of making third node it stucks
void addnode(int x, int r,int c)//+++++++++++++++++++++++++++++=addnode
{
node* nodeptr = new node;...
yeah it worked out well!but now how i will pass this 2 D array as a function parameter if i have to decide on runtime the colommn size of the array after reading from the file?
How can i declare a 2 D array in Visual Studio C++ 6.0 ?
my code is giving errror;
class sparseadd
{
int *p;
int row;