i'm learning C right now (the basics) and for some reason when i put \t to create a tab it works fine but sometimes it won't create a tab and i have to use 2 \t's to create just one tab. i've rechecked the code many times and there isn't anything wrong. the debugger shows no errors as well.
here's an example of the code i (have to) used:
you see how i needed to use 2 \t to create just one tab.
i don't know why certain parts require 2 \t to create just one tab.
i copied the exact code from the book and it does the same thing but the code from the book only uses 1 \t when needed.
is it a bug with Xcode?
here's an example of the code i (have to) used:
Code:
#include <stdio.h>
int main()
{
printf ("Sun\tMon\tTue[COLOR="Red"]\t\t[/COLOR]Wed\tThur\tFri[COLOR="red"]\t\t[/COLOR]Sat\n");
printf ("\t\t\t\t\t1\t\t2\t\t3\n");
printf ("4\t5\t6\t7\t8\t9\t10\n");
printf ("11\t12\t13\t14\t15\t16\t17\n");
printf ("18\t19\t20\t21\t22\t23\t24\n");
printf ("25\t26\t27\t28\t29\t30\t31\n");
}
i don't know why certain parts require 2 \t to create just one tab.
i copied the exact code from the book and it does the same thing but the code from the book only uses 1 \t when needed.
is it a bug with Xcode?