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

Join 135,921 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,591 people online right now. Registration is fast and FREE... Join Now!




sparse table please

 
Reply to this topicStart new topic

sparse table please

zaiduaa
18 May, 2008 - 01:29 AM
Post #1

New D.I.C Head
*

Joined: 18 May, 2008
Posts: 5

ineed spares table pleaaaaaaaaaaaaaaaaaaaase


icon_up.gif

this is my mail

the_moon_1988@yahoo.com

please send code sparse table in c++ to me



This post has been edited by zaiduaa: 18 May, 2008 - 01:33 AM
User is offlineProfile CardPM
+Quote Post

KYA
RE: Sparse Table Please
18 May, 2008 - 01:55 AM
Post #2

#include <nerd.h>
Group Icon

Joined: 14 Sep, 2007
Posts: 4,733



Thanked: 89 times
Dream Kudos: 1200
My Contributions
Well since you used so many "a's" in please:

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.
User is online!Profile CardPM
+Quote Post

zaiduaa
RE: Sparse Table Please
18 May, 2008 - 02:03 AM
Post #3

New D.I.C Head
*

Joined: 18 May, 2008
Posts: 5

CODE

using namespace std;

class node
{
public:
    int studentNumber;
    int classNumber;
        char grade;
    node *nextStudent;
    node *nextClass;
    node()
    {
        nextStudent = NULL;
        nextClass=NULL;
    }
    node(int x ,int y ,node *next1 = NULL , node  *next2=NULL)
    {
        studentNumber = x;
        classNumber=y;
        nextStudent = next1;
        nextClass=next2;
    }
};


class  list
{    
    public:
        list()
    {
            head = tail = 0;
        }
    private:
        node *head, *tail;
    
};



void main()
{
    
}






its about to linked list sudent list and classes

the program should in put in this way


12b
13a
34d


the first number is student number
the secound number is the number of student class
and the charector is student grade in the class

This post has been edited by zaiduaa: 18 May, 2008 - 02:06 AM
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: Sparse Table Please
18 May, 2008 - 02:06 AM
Post #4

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 6,433



Thanked: 64 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
QUOTE(zaiduaa @ 18 May, 2008 - 06:03 AM) *

CODE

void main()
{
    
}


... ? Are you serious?
User is offlineProfile CardPM
+Quote Post

zaiduaa
RE: Sparse Table Please
18 May, 2008 - 02:08 AM
Post #5

New D.I.C Head
*

Joined: 18 May, 2008
Posts: 5



? Are you serious?

yes biggrin.gif
User is offlineProfile CardPM
+Quote Post

KYA
RE: Sparse Table Please
18 May, 2008 - 02:10 AM
Post #6

#include <nerd.h>
Group Icon

Joined: 14 Sep, 2007
Posts: 4,733



Thanked: 89 times
Dream Kudos: 1200
My Contributions
I think the point no2pencil was trying to make is that even though you appear to have class code, an empty main() shows no attempt by yourself to solve the problem/create a solution
User is online!Profile CardPM
+Quote Post

zaiduaa
RE: Sparse Table Please
18 May, 2008 - 11:44 PM
Post #7

New D.I.C Head
*

Joined: 18 May, 2008
Posts: 5

sorry

in the main
you should call the function and insert the data

like this
12a
33d
.
.
.
.

then
cuot the data

by
student number
and by class number



EX:

by student number

if we put number 1 or 2 or 3 or any number
then the program cout all classes that the student tack it and his mark in it


by the number of class

if we put number 2 or 3 or any number of class

the program cout all student that they have this class and ther mark in it
User is offlineProfile CardPM
+Quote Post

zaiduaa
RE: Sparse Table Please
18 May, 2008 - 11:51 PM
Post #8

New D.I.C Head
*

Joined: 18 May, 2008
Posts: 5

hello


any budy there?


please i need help confused.gif




User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/1/08 08:09AM

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