Answer the question
In order to leave comments, you need to log in
How to fix the Visual Studio encoding so that there are Russian letters in the console?
#include <stdio.h>
#include <string.h>
int main() {
char string1[] = "В зеленом горшочке.";
char string2[] = "зел";
int i = strstr(string1, string2);
if (i != -1)
{
printf("Строка найдена. Ее адрес %i \n", i);
}
}
╤ЄЁюър эрщфхэр. ┼х рфЁхё 313523066
Answer the question
In order to leave comments, you need to log in
In the source code, in principle, you should not use any language other than English. For localization, use the appropriate libraries.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question