i have a problem with this few lines of code. It works fine in any other compiler than Visual Studio.
int i = 0;
char* func[20];
char com[15];
while (true)
{
scanf_s("%s", com);
//printf("%s\n", com);
if (com == "ACTUAL\0")
cout << "TE\n";
i++;
}
I try to scan a word to char variable ( i have to use chars, cant use string in this exercise ). Im getting this error: (in english it means :Access violation while saving to location )
But everything works fine in other compilers. I get mad because i'm looking at posts about scan strings into char and it looks very similar to my code. (Sorry if i should tag C instead C++)