Little help please, anyone?
Type: Posts; User: bob2509
Little help please, anyone?
Tough One Here:
I'm trying to, as the subject says, create a linked list from an array but I can't quite visualize it. Here's what I've got: I've created an array of nodes, each with next...
Here is the class header file:
#ifndef LIST_H
#define LIST_H
typedef char keytype;
Hi All,
Need some help here with a copy constructor. I'm trying to copy a character array instance. Here's what i have so far:
listType::listType(const listType & init) // Copy...
I figured it out. Thanks.
The code prints the address space and not the information in the node. How do deallocate in order to print the node's data rather than the node's address space.
Hi All,
I'm trying to print information from each node in a linked list.
Here's the code for the print:
if (preloc == NULL)
Nevermind all. Got it working. Thanks for all your help.
OK, got it working. Only it will not open the socket. Any ideas why?
Here's the output:
$ udpClient db1-atb data.txt
udpClient: sending data to 'www' (IP:...
Wow -- another typeo problem. Well, all typeos fix. Now when I compile I get this.
$ gcc *Client* -o Client
Undefined first...
OK, I fixed the argument, it was a typeo.
Still getting one error in which I can't figure out.
$ gcc *Client* -o Client
udpClient.c:101: parse error before `return'
...
Thank you for the advice. I entered what you suggested and got the following:
$ gcc *Client* -o Client
udpClient.c: In function `main': ...
Here's line 76:
for (i = 2; 1 < argv[i]; i++)
Hi All,
I'm trying to reading in data from a file and send that data to a server, but I'm getting a data read error. Here's the following error:
$ gcc *Client* -o *Client* ...
Hi All,
I'm using the free version of Borland and have come across a strange complie error. Here it is:
Error: Unresolved external 'Personnel::Personnel()' referenced from...
Thanks, but still same errors -- good idea though.
Hi All,
I'm trying to use a struct in conjuction with a class but am getting errors. Here's the code I'm trying to implement:
struct DataRec
{
char DataType;
Sorry if I'm a bit confusing here. I'm trying to take an unsorted list and sort it by itemNumber. The ReadInfo function takes in the data as unsorted. The SortInfo function then is suppose to sort...
I put the class in a header file and still get the same error.
Here's the header file:
const int MAX_ITEMS = 100; // Variable Decleration
typedef int ItemType;
I tried that and this is what I got:
C:\c++\Project2_beta2\Project2_beta2\Project2_beta2.cpp(703) : error C2228: left of '.DataNumber' must have class/struct/union type
It's still not...
Hi All,
I think I have a simple problem here that's befuddling me: an ADT unsorted list that needs to be sorted by item number. I'm having a problem passing that array to a function defined in a...
figured it out.
Hi All,
I'm trying to extract whitespace from a string that I've pulled from a text file. Here's the code:
fileLinePrice = fileLine.substr(30, 5);
while (loop < 5)
{
Well, I figured out what the problem is: there is a bug in the VC++ 6.0 version of the header files defining the getline function. Therefore, the code above should work, but it doesn't in...
Use switch statement as follows:
while (loopCount < firstRoman.length())
{
switch(firstRoman[loopCount++])
{
case 'I':