Search:

Type: Posts; User: bob2509

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,053

    Little help please, anyone?

    Little help please, anyone?
  2. Replies
    3
    Views
    1,053

    Creating Linked List From Array

    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...
  3. Replies
    5
    Views
    2,892

    Here is the class header file: #ifndef...

    Here is the class header file:




    #ifndef LIST_H
    #define LIST_H

    typedef char keytype;
  4. Replies
    5
    Views
    2,892

    Copy Constructor crashing program

    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...
  5. Replies
    4
    Views
    4,014

    I figured it out. Thanks.

    I figured it out. Thanks.
  6. Replies
    4
    Views
    4,014

    The code prints the address space and not the...

    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.
  7. Replies
    4
    Views
    4,014

    Printing Node Info in Linked List

    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)
  8. Replies
    8
    Views
    3,116

    Nevermind all. Got it working. Thanks for all...

    Nevermind all. Got it working. Thanks for all your help.
  9. Replies
    8
    Views
    3,116

    OK, got it working. Only it will not open the...

    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:...
  10. Replies
    8
    Views
    3,116

    Wow -- another typeo problem. Well, all typeos...

    Wow -- another typeo problem. Well, all typeos fix. Now when I compile I get this.

    $ gcc *Client* -o Client
    Undefined first...
  11. Replies
    8
    Views
    3,116

    OK, I fixed the argument, it was a typeo. ...

    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'
    ...
  12. Replies
    8
    Views
    3,116

    Thank you for the advice. I entered what you...

    Thank you for the advice. I entered what you suggested and got the following:

    $ gcc *Client* -o Client
    udpClient.c: In function `main': ...
  13. Replies
    8
    Views
    3,116

    Here's line 76: for (i = 2; 1 < argv[i]; i++)

    Here's line 76:

    for (i = 2; 1 < argv[i]; i++)
  14. Replies
    8
    Views
    3,116

    Client-Server Data Read Problem

    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* ...
  15. Replies
    0
    Views
    791

    Borland Compile Error?

    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...
  16. Replies
    4
    Views
    1,332

    Thanks, but still same errors -- good idea though.

    Thanks, but still same errors -- good idea though.
  17. Replies
    4
    Views
    1,332

    Using Struct and Class?

    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;
  18. Replies
    7
    Views
    1,893

    Sorry if I'm a bit confusing here. I'm trying to...

    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...
  19. Replies
    7
    Views
    1,893

    I put the class in a header file and still get...

    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;
  20. Replies
    7
    Views
    1,893

    I tried that and this is what I got: ...

    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...
  21. Replies
    7
    Views
    1,893

    Sorting an Array of Structures

    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...
  22. Replies
    1
    Views
    959

    figured it out.

    figured it out.
  23. Replies
    1
    Views
    959

    Extracting Whitespace from String

    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)
    {
  24. Replies
    20
    Views
    3,646

    Well, I figured out what the problem is: there is...

    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...
  25. Replies
    8
    Views
    7,946

    Use switch statement as follows: while...

    Use switch statement as follows:




    while (loopCount < firstRoman.length())
    {
    switch(firstRoman[loopCount++])
    {
    case 'I':
Results 1 to 25 of 47
Page 1 of 2 1 2