Search:

Type: Posts; User: ronkane

Search: Search took 0.01 seconds.

  1. Thanks...

    Hello,

    In the FindNode function, I attempt to find a record using the ".Key" field the first part:


    current = head; // start all 3 pointers at front of list
    ...
  2. Re-post: Finding a node in a linked list...

    Hello,

    Here is a re-post of my previous message with the "code" tags. Sorry. 8) I'm attempting to use a FindNode function for both a Retrieve and Delete. Here are the function codes:



    bool...
  3. Replies
    0
    Views
    1,045

    Finding a node in a linked list...

    Hello,

    I'm attempting to use a FindNode function for both a Retrieve and Delete. Here are the function codes:

    bool SortedType::RetrieveItem(student& item)
    {
    if (FindNode (item)) ...
  4. Replies
    2
    Views
    855

    Thanks!

    Thanks Ken!

    I thought about it and put in a ".Key" notation for comparing the key fields and it worked. I thought originally it would go character by character and do the comparison.

    Thanks for...
  5. Replies
    2
    Views
    855

    comparison problems...

    Hello,

    I am trying to do a comparison between a variable passed into a function and a pointer. The function is within a class that I set up called SortedType:

    class SortedType
    {
    public:...
  6. Replies
    0
    Views
    967

    testing constructors..

    I have been given the following class structure:

    class UnsortedType
    {
    public:
    UnsortedType(); // default constructor
    UnsortedType(int); // regular constructor...
  7. Replies
    3
    Views
    1,272

    Thanks!

    Thanks Matt..

    Sorry for the private. I am so frustrated that this simple (!cin) notation is not working. Our instructor specifically taught us about this in previous classes so I simply looked...
  8. Replies
    3
    Views
    1,272

    checking for valid numeric field..

    I am attempting to check for a valid numeric field using the following notation:

    // Type declarations

    enum GenderType {MALE, FEMALE};
    enum RegistrationType {T, M, U};

    struct StudentRecord...
  9. Replies
    2
    Views
    1,723

    Program logic not working..

    Hello,

    I am am writing a program that reads in data for a student record (first name, middle initial, last name, student id, etc) and then displays it on the screen for a report. Nothing fancy,...
  10. Thanks Stoned..

    I will look into using the cin.get. I had a previous program whereby I followed the same logic and it worked perfectly. I wonder tho if reading a reference point of a structure data type is causing a...
  11. Thanks!

    Hello Salem,

    Thanks for the suggestion. There's still a problem though. I put in a boolean as you suggested to change my logic slightly and it APPEARS to be working fine if you put in a...
  12. Problem checking for numeric value in a structure

    Hello,

    I've been trying to figure out why I can not check for a valid numeric field in a strucutre. Here are parts of my program:

    The structure...

    // Type declarations

    enum GenderType...
  13. Replies
    2
    Views
    913

    Thanks kuphryn!

    :D
  14. Replies
    2
    Views
    913

    cin.get question...

    Hello,

    I'm new to this board but was browsing through trying to find previous questions with the cin.get command. I am writing a program that creates reads in a student's first name (FirstName). ...
Results 1 to 14 of 14