Hello guy's , i'm a new fag who studing C language just this week and my teacher give me this home work :"Make a student id that have "Name , year of birth , job , work place" :
and i made this crap :
#include <stdio.h>
int main (void)
{
char ten[16];
printf("Ho va ten:");
scanf("%S",ten);
char job[16];
printf("Chuc vu:");
scanf("%s",job);
char Place [16];
printf("Noi lam viec:");
scanf("%s",Place);
int tuoi;
printf("Nam sinh:");
scanf("%d",tuoi);
return 0;
}
Every time i give a "space" the whole thing behind the line is fucked . I don't know where i did wrong , pls help , am retarded .
and i made this crap :
#include <stdio.h>
int main (void)
{
char ten[16];
printf("Ho va ten:");
scanf("%S",ten);
char job[16];
printf("Chuc vu:");
scanf("%s",job);
char Place [16];
printf("Noi lam viec:");
scanf("%s",Place);
int tuoi;
printf("Nam sinh:");
scanf("%d",tuoi);
return 0;
}
Every time i give a "space" the whole thing behind the line is fucked . I don't know where i did wrong , pls help , am retarded .
