Using strchr() and moving the cursor up one row
My first question is this:
Is there a way that I can use strchr() to find the next character occurance, not the first or last, or for it to find the character after a certain point? I tried
Code:
char input[]="abcdabcdabcd";
int x=5;
strchr(input[x], 'd')
but it returns an error message: error C2664: 'strchr' : cannot convert parameter 1 from 'char' to 'const char *'.
My second question is:
Is it possible to move the cursor(in the command prompt screen) up one row? I have this really old Turbo C++ book that says I must use ANSI.SYS, but thats for DOS(from like before 1990).
Thanks