Search:

Type: Posts; User: student111

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    675

    about pointers and node

    Hi,

    I have a program as:




    Event* remove()
    {
    if(size>0)
  2. Thread: A problem

    by student111
    Replies
    2
    Views
    691

    A problem

    Hi,

    I have made a small program and have added system("pause");
    at the end of the program file.

    I wanted to know that is it necessary that we should add this "system("pause"); at the end of a...
  3. Replies
    10
    Views
    828

    when I compile this program ,it gives me some...

    when I compile this program ,it gives me some errors including the error on line where I have
    newNode->setnext(Null);

    Also how do I define or declare a null pointer?
  4. Replies
    10
    Views
    828

    Sir, I have declared the "int node" and "int...

    Sir, I have declared the "int node" and "int newNode" in this program , I have seen some of the linked list programs which are written this way. I basically want to set the next pointer of newNode as...
  5. Replies
    10
    Views
    828

    I am using these nodes as I want to implement...

    I am using these nodes as I want to implement "Queues" using linked list.
  6. Replies
    10
    Views
    828

    thanks for the reply, I want to pass "int...

    thanks for the reply,

    I want to pass "int node" as an argument to this method "enqueue()" but ,it must also have a return type, but when I write it as:

    "int teller.enqueue(int node);"

    and...
  7. Replies
    10
    Views
    828

    about c program

    Hi,

    I am making a program a Teller class for queue and it is class which has a Teller, customer and a counter .




    class Teller
    {
  8. Replies
    4
    Views
    571

    thanks for your reply, but do we have to use...

    thanks for your reply,
    but do we have to use doubly linked list for such programs? will not singly linked list be useful in this case?
  9. Replies
    4
    Views
    571

    About Queues

    Hello Guys,

    I have some questions about Queues, their are pointers in queues eg.
    "front" and "rear". front is a pointer which points to the 1st element of the queue and rear is a pointer which...
  10. Replies
    1
    Views
    517

    About Queues

    Hi,

    I am making a class for Queue program and wanted to ask something.

    I have made a class as:
    -------------------------------------------------------------------------


    #include<iostream>
  11. Replies
    2
    Views
    491

    About Queues

    Hi,

    I am making a program of Queues and using its class, I wanted to know that can we implement Queues using the link list?

    Do we have to make a seperate class for link list and for Queues?
    ...
  12. Replies
    14
    Views
    1,859

    Hi, This is the program of the stack class, I...

    Hi,

    This is the program of the stack class, I have highlighted the changes with bold that I did.
    ...
  13. Replies
    14
    Views
    1,859

    This is what I did, I simply written "int"...

    This is what I did,

    I simply written "int" before push method and passed an argument "int p" to it ,when declaring it in public part of the class stack as:

    int push(int p); //for pushing...
  14. Replies
    14
    Views
    1,859

    I have already posted the public,private and main...

    I have already posted the public,private and main function part of my program above.
  15. Replies
    14
    Views
    1,859

    Hi, After checking and correcting it, when I...

    Hi,

    After checking and correcting it, when I compile this program, it gives me an error message of
    syntax error as:

    54 E:\ data\Stack Implementation.cpp syntax error before `)' token

    I...
  16. Replies
    14
    Views
    1,859

    Ok thanks I have checked it, do I have to enter...

    Ok thanks I have checked it, do I have to enter an argument with data type to the function or method when declaring it?
  17. Replies
    14
    Views
    1,859

    Ok, so it means that if I want to pass an...

    Ok, so it means that if I want to pass an argument or parameter to a method or a function, I need to define its return type (except for void)?
  18. Replies
    14
    Views
    1,859

    this is the remaining part of the class for stack...

    this is the remaining part of the class for stack program, I am actually using the method push() and have declared the object stack before it.
    ...
  19. Replies
    14
    Views
    1,859

    About stack program

    Hi,

    I have made a class for stack program on my Dev C++ and I have declared the objects that would be used in the program.


    ---------------------------------------------------------------------
  20. Thread: about stack

    by student111
    Replies
    1
    Views
    578

    about stack

    Hello,

    I am making a program on "stack" data structure and have used classes in them to make the C++ program.


    Is it necessary that we should put a return type for "isFull()" and "Isempty()"...
  21. Replies
    2
    Views
    1,129

    Their was a function that we have used in C++...

    Their was a function that we have used in C++ program eg. getch or library functions eg.

    "c=getchar();"

    Ok, so if I need to assign int values or numbers to a variable eg. "num", do I have to...
  22. Replies
    2
    Views
    1,129

    stack program

    Hi,

    I am working on a stack program and wanted to know that can we use "get function" with stack data structure?

    eg if I have list of int numbers and I want to get these numbers before pushing...
  23. Replies
    7
    Views
    742

    thanks for the reply, Can we use "if...

    thanks for the reply,

    Can we use "if statement" inside an "if statement"?
  24. Replies
    8
    Views
    877

    thanks for the reply, so if we just use the...

    thanks for the reply,

    so if we just use the interface methods of link list, or any other data structure in C++ program, then we don't need to include any .cpp file?
  25. Replies
    8
    Views
    877

    laser light, Thanks for your reply, So if...

    laser light,

    Thanks for your reply,

    So if we use standard library eg. <list> for linked lists, and use std:list, is this an implementation file or the interface file?

    Thanks
Results 1 to 25 of 98
Page 1 of 4 1 2 3 4