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
...
Type: Posts; User: ronkane
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
...
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...
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)) ...
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...
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:...
I have been given the following class structure:
class UnsortedType
{
public:
UnsortedType(); // default constructor
UnsortedType(int); // regular constructor...
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...
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...
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,...
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...
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...
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...
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). ...