Jump to content

Printf e gets_s a funcionar mal


Recommended Posts

Quando executo este código passa logo para o "Inserir Linhas":

Na consola faz isto:

    Inserir o Texto

    Inserir linhas

não para no "Inserir o Texto" porquê?

Alguem me pode ajudar ?

	printf("Inserir o Texto \n");
//scanf("%s", &texto_l[tot_ln][0],80);
for (i=1;i<=25;i++)
	printf("Inserir linhas \n");
	//scanf("%s", &texto_l[tot_ln][i],80);
	if (strcmp(texto_l[tot_ln][i], "end") == 0)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.