Hi. I started the computer science course this year and until then I had never been able to study programming at all, so maybe that's why I'm having such basic errors like this.
My problem now is with the C library, which I have to use to do the final work of my story, which is a game.
The teacher passed some activities to us to learn how to use the conio, but for now the only thing I could do was install it hahaha The first activity outside this was "2) Implement a void function that prints a letter read from the keyboard at the position (x, y) using the Conio functions. "Looking at the functions of, I found that the" putchxy "function does just that, but by putting it in my program and compiling it, I think it is doing absolutely nothing because it should print the read character and does not do that. I used arbitrary values defined within the program for x and y.
#include <stdio.h>
#include <conio2.h>
#include <conio.h>
int main ()
{
char ch;
int x = 5, y = 5;
printf("Digite uma letra no teclado:\n");
scanf(" %c", &ch);
void putchxy (int x, int y, char ch);
return (0);
}
Since this was the last class, I'm still in doubt as to whether I'm doing it right. But looking at past slides in class, reading about the function inside the library itself, looking for similar cases here in the stack overflow, I could not find anything that would indicate an error in my code.
I have tried to write in other ways, tried to create another function myself, tried to invert, put the numbers themselves, but in this way no other compiles properly.
Where did I go wrong?