Could the reason that 'm4trix' was not seeing the error message sent by 'die' be due to the STDERR being re-directed away from STDOUT on that machine? OR that the window in which the error message is being displayed is being terminated before you get chance to see it.
I am VERY new to Perl...
It's already sort of been covered, but I just wanted to re-iterate the point... the name of an array is defined as the address of the first element of the array (so in the case of int a[10]; a is the same as &a[0], i.e. effectively, it is a pointer.
However, the name of an array is a special...
There are 2 ways that I know of, these are:
(1) insert the following code after the scanf:
while (getc (stdin) != '\n');
i.e. getc will continue to pull the remining characters from the stdin buffer until the 'end of line' character is received.
(2) use the fflush library function to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.