The method does not show any error but I am unable to use it in main method to display the list.
if (userinput.equalsIgnoreCase("push") )
{ calc.push(value);
calc.displaylist();
System.out.println(calc.getValues());
}
else if (userinput.equalsIgnoreCase("mult"))
{ calc.push(calc.mult());
ca...
Hi,
I am working on a simulation. For this simulation I need 20 nodes (static) and then each node has a queue associated with it. This queue could hold any number of values. What would be the best way to implement this in C? I was aiming at having each of the queues being a simple linked list, but how can I effectively create several qu...
Hi all, We need to find a way to programatically *link all the tables* in a SQL Server database to an access db. We will be invoking this access database from a program that uses .net/SQL Server 2008.
While invoking the application we would like to add the linked tables so that the users can just run the reports/modules from access with...
Hey everyone,
I am new to C and I am working on an XOR linked list for a project. I have most of the code done, but I can't seem to get the delete function of the list to work properly. It seems able to delete some numbers, but not any number you pass into the function. Could anyone experienced with C take a look and possibly point out w...
I create a linked list dynamically and initialize the first node in main(), and I add to the list every time I spawn a worker process. Before the worker process exits, I print the list. Also, I print the list inside my sigchld signal handler.
in main():
head = NULL;
tail = NULL;
// linked list to keep track of worker process
dll_node_t...
I have a C assignment. It is a lot longer than the code shown below, and we are given the function prototypes and instructions only. I have done my best at writing code, but I am stuck with segmentation faults. When I compile and run the program below on Linux, at "735 NaN" it will terminate, indicating a segfault occurred. Why? What am ...
Consider the following list:
[LinkNode * head -- LinkNode * node1 -- LinkNode * node2]
I'm creating a stack of FIFO.
I Call pop() which I want to pop node1.
LinkNode::LinkNode(int numIn) {
this->numIn = numIn;
next = null;
}
.
.
.
int LinkNode::pop() {
Link * temp = head->next;
head = temp->next;
int popped =...
I am trying to determine the best approach when designing a new Access based application. Due to decisions made by others I have to use Access 2003 as my front end and SQL Server as my back-end data store (I would have preferred to use Winforms/WPF and SQL Server 2008 but that is another story).
Originally I was thinking of using Access...
Hi there,
I created a program that contains linked lists that are passed various methods. While this works just fine in Java... a style checker program we have to use doesn't like it
It says: Declaring variables, return values or parameters of
type 'LinkedList' is not allowed.
If I declare them as simply List then I don't have acces...
My problem is deleting a node from linked list.
I have two structs :
typedef struct inner_list
{
int count;
char word[100];
inner_list*next;
} inner_list;
typedef struct outer_list
{
char word [100];
inner_list * head;
int count;
outer_list * next;
} outer_list;
My problem is in deleting a node from outer_list linked list....
struct person
{
int age;
char name[100];
struct person *next;
};
void delfirst(struct person **p)// For deleting the beginning
{
struct person *tmp,*m;
m = (*p);
tmp = (*p)->next;
free(m);
return;
}
void delend(struct person **p)// For deleting the end
{
struct person *tmp,*m;
tmp=*p;
w...
Hi
I want to know that do "head" and "tail" store any value like the other nodes??
thanks
...
Hi!
I'm actually developping an application for iPhone and I need to use a library, initially dedicated to a Linux environment. Since I'm using a Mac (with Snow Leopard and Intel Core Duo), I guess it's possible to use this library in my app.
My library has 3 files: a file .h, a file .a and a file .so (both .a and .so are in /Developer...
Here is my current situation:
I have two tm structs, both set to the current time
I make a change to the hour in one of the structs
The change is occurring in the other struct magically....
How do I prevent this from occurring? I need to be able to compare and know the number of seconds between two different times -- the current time a...
Sorry if this is a duplicate post, not sure what happened with my original one.
I have a linked SSRS report (Report A) that links to Report B. One of Report B's parameters is controlled by a Dropdown/ComboBox. In the parameters dialog box that gets launched from the navigation tab, I have tried both 'VALUE' and simply putting VALUE with...
I have a copy of MS VC++ 6.0 which I do all my development in. I have just received a DLL that has been produced by VC++ 8.0. I need to use some of the functions contained in that DLL in my application. Will I be able to use this DLL in my VC++ 6.0 development environment?
...
I am trying to allocate a block of memory, and store a list of structures without using multiple mallocs for each... this is just a generic example, I don't have the original code I was working with earlier, but this is the general idea, but my problem was that I was getting heap corruption when other parts of my code executed after the ...
what I am trying to do is represented in my other question with code.
Basically I need to keep in memory a table of elements (structs), there's no fixed number of elements that can exist, but it is small, but I still can't use an array.
And I don't want to use a linked list of elements because I don't want to keep adding and deletin...
This .NET application used to work. When it did we were using the Oracle ODBC 9i. We moved to 10 g did not work anymore. Now at 11g stills does not work. I have set SQL Command Timeouts all over the place. I have set the connection timeout and the query timeout in the linked server properties to 120. I can run the proc from SQL Ser...
Is there any danger is creating a linked server?
I want to create linked server to a DB2 database from SQL Server 2005. Will the DB2 database be effected by this at all (performance wise) or is this all handled on the SQL Server side?
...