0

I keep on receiving this error message:

'GetInt' has been explicitly marked deprecated here
int GetInt(void) __attribute__((deprecated));'

Please find my code below:

 n = GetInt();

Thanks in advance!

[EDIT: unrelated code removed for Honor Code compliance.]

1 Answer 1

1

The GetInt() function has been deprecated (deleted, last year?) and replaced with the more robust function get_int().

The new getint() function can be given a string as a parameter and it will print that string and then wait for input. For example:

int yum = get_int("How many ice cream cones do you want: ");

If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .