English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i'm try to format the writing on the page
i was told to use
#define space (/t/t/t/t/)
then
space(); in the main progran but it does not work
what i'm i doing wrong

2007-11-02 10:30:17 · 2 answers · asked by Jmloverboy 2 in Computers & Internet Programming & Design

2 answers

If it is a tab that you are after then the escape sequence should be \t !!!!!

2007-11-02 10:36:58 · answer #1 · answered by AnalProgrammer 7 · 0 0

#define FOUR_TABS "\t\t\t\t"

printf(FOUR_TABS "hello\n"); // note no comma

or

printf("%shello\n", FOUR_TABS);

or

cout << FOUR_TABS << "hello\n";

2007-11-02 17:43:46 · answer #2 · answered by muon 3 · 0 0

fedest.com, questions and answers