Vergiss das goto schnell, sondern mach lieber eine while-Schleife.
Entweder while(1) mit break.
Oder while(lng < 3) mit init auf Null davor.
Das sind natürlich nur einige Möglichkeiten.
Stimmt .....
NEUER CODE MIT WHILE SCHLEIFE
Code:
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>
int main (int argc, char *argv[])
{
system ("color 0A");
char acc [100];
char pw [100];
printf ("Gebe deinen Accountname ein: ");
scanf ("%s",&acc);
fflush (stdin);
while (strlen(pw) < 3)
{
printf ("Gebe deinen Passwort ein min 3 Zeichen: ");
scanf ("%s",&pw);
if (strlen(pw)<3)
{
printf ("\n\nPasswort ist zu kurz");
}
}
printf ("\nAccountname: %s\nPasswort: %s\n",acc,pw);
system ("PAUSE");
return 0;
}