To read char. char c; scanf("%*[ \t\n]%c",&c); scanf(“%2d”, &x);. In this example we have, a number located between the % and d which in this case is 2.
確定! 回上一頁