Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,094 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,594 people online right now. Registration is fast and FREE... Join Now!




linklist polynomials

 
Reply to this topicStart new topic

linklist polynomials

saberjustice
3 Oct, 2007 - 01:32 AM
Post #1

New D.I.C Head
*

Joined: 6 Sep, 2007
Posts: 8


My Contributions
i dont know what is wrong with this
CODE
#include<iostream>
#include"Polynomial.h"
using namespace std;

void input(node *alpha, int num, int x, int y, int z)
{
    alpha->number = num;
    alpha->xvalue = x;
    alpha->yvalue = y;
    alpha->zvalue = z;
    alpha = alpha->next;
}

int main(){
    int a = 0,poly1,poly2;
    int num,x,y,z;
    struct node *alpha;
    cout<<"Please input the number of polynomials:";
    cin>>poly1;
    do
    {
    cin>>num>>x>>y>>z;
    input(alpha, num, x, y,z);
    a++;
    }while( a != poly1);
    a = 0;
    
    return 0;
}


CODE
using namespace std;

struct node{
    int number;
    int xvalue;
    int yvalue;
    int zvalue;
    struct node* next;
    struct node* prev;
};

void input(node *alpha, int num, int x, int y, int z);

please help

User is offlineProfile CardPM
+Quote Post

jjhaag
RE: Linklist Polynomials
3 Oct, 2007 - 02:25 AM
Post #2

me editor am smartastic
Group Icon

Joined: 18 Sep, 2007
Posts: 1,789



Thanked: 2 times
Dream Kudos: 775
Expert In: C,C++

My Contributions
what are your errors? are they compile-time errors, run-time errors, or problems with the operations that the program performs?

the more specific you are with your questions, the better we will be able to help.

-jjh
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/1/08 08:25PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month