Use atoi function to convert. The header file is located in stdio.h.
Example reference:
#include
#include
char x[10] ={'1','6','2','8','3','7','\0'};
int main(void)
{
int y=atoi(x);
printf("This is a string.\n");
printf("%s\ n", x);
printf("This is a number.\n");
printf("%d\n", y);
< p> system("pause");return 0;
}
Make-up is not so good in China, such as domestic lipstick, which is really unacceptable in bright colors.
Put a lipstick on the dark years.