R00ki3 M1stak3

1

votes
1

answer
51

views

Input validation to filter out chars, strings, and a range of ints

I have looked in several places on the Internet but cannot find what I am looking for. Basically I am trying to understand data validation and filter out all user input except either the number 1 or 2. I have found information for validating ints. Found stuff on filtering out chars and strings....
R00ki3 M1stak3
1

votes
1

answer
48

views

Using pointers to access object data members in an array

I am trying to allow user input to create new objects to add to an array. Each object has a data member that I am then trying to get and then set with different values. As I have been reviewing this, I have been able to set the array subscript to call the constructor, get the age of the Monkey ob...
R00ki3 M1stak3
-1

votes
1

answer
47

views

NULL substitute for a double in C language 99 standard

I am working on a Circularly-Doubly-Linked List with a sentinel in the C language with the 99 standard. The headers I am allowed to use for class are stdio.h, stdlib.h, and assert.h only. The sentinel is a struct and the structs have a value data member which is a double value. I was wondering if...
R00ki3 M1stak3