Hi,
I have a program as:
Event* remove()
{
if(size>0)
Type: Posts; User: student111
Hi,
I have a program as:
Event* remove()
{
if(size>0)
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...
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?
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...
I am using these nodes as I want to implement "Queues" using linked list.
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...
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
{
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?
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...
Hi,
I am making a class for Queue program and wanted to ask something.
I have made a class as:
-------------------------------------------------------------------------
#include<iostream>
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?
...
Hi,
This is the program of the stack class, I have highlighted the changes with bold that I did.
...
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...
I have already posted the public,private and main function part of my program above.
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...
Ok thanks I have checked it, do I have to enter an argument with data type to the function or method when declaring it?
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)?
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.
...
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.
---------------------------------------------------------------------
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()"...
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...
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...
thanks for the reply,
Can we use "if statement" inside an "if statement"?
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?
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