I'm new at C programming.
What I am looking to do is to find a way to freeze the " | " that are in the printf statements, mainly the ones to the right of the code.
What happens is that as you can see in the code if I put anything inside those printf statements that generate a variable amount of characters it moves the " | " accordingly to the amount of characters it generates.
So I'm hoping to see if someone could help me with this, so that what ever is generated within the printf does not shift the position of the " |".
Here's the code so that you guys have an idea f what I'm talking about.
#include <stdio.h>
int main ()
{
char Employee1_NameF[20];
char Employee1_NameL[20];
printf("Employee Name: ");
scanf("%s %s", &Employee1_NameF,&Employee1_NameL);
printf(" __________________________________________________________________________________________________ \n");
printf("| |\n");
printf("| |\n");
printf("|--------------------------------------------------------------------------------------------------|\n");
printf("| |\n");
printf("| |\n");
printf("| |\n");
printf("| |\n");
printf("| |\n");
printf("| |\n");
printf("| |\n");;
printf("|__________________________________________________________________________________________________|\n");
printf("|--------------------------------------------------------------------------------------------------|\n");
printf("| THE FACE OF THIS DOCUMENT HAS A MULTICOLORED BACKGROUND ON WHITE PAPER |\n");
printf("|--------------------------------------------------------------------------------------------------|\n");
printf("| |\n");
printf("| |\n");
printf("| |\n");
printf("| |\n");
printf("| %s %s |\n", Employee1_NameF, Employee1_NameL);
printf("| |\n");
printf("| |\n");
printf("| |\n");
printf("| |\n");
printf("| |\n");
printf("| |\n");
printf("| |\n");
printf("| |\n");
printf("| |\n");
printf("| |\n");
printf("| |\n");
printf("| |\n");
printf("| |\n");
printf("|__________________________________________________________________________________________________|\n");
}