Re: newbie question
From: Emmanuel Delahaye (emdel_at_YOURBRAnoos.fr)
Date: 02/24/05
- Next message: Juggler: "calling external program from within C++"
- Previous message: Old Wolf: "Re: char (*ptr)[]"
- In reply to: some: "Re: newbie question"
- Next in thread: some: "Re: newbie question"
- Reply: some: "Re: newbie question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 24 Feb 2005 03:29:42 +0100
some wrote on 24/02/05 :
>> BTW: It is considered better to use blanks (spaces) instead of tabs for
>> code posted to newsgroups.
> You mean I should leave some blanks before and after I post code or
> something else instead of using /// like I did. Can you please explain
> so that I can be careful in future.
No, it's something else. For example, on your code :
int main(int argc,char *argv[]) {
int num;
^
| you have used the TAB character
here.
The problem is that some news readers clients (or is it some news
server, I don't know) strip the TAB and consequently, your code appears
like
int main(int argc,char *argv[]) {
int num;
which is not the expected way. To prevent that (and actually it solves
a lot of presentation elswere too), it is highly recommended to use
spaces instead of tabs:
[three spaces for a TAB]
int main(int argc,char *argv[]) {
int num;
Most of the text editors used to write code have this function ("insert
n spaces when TAB is pressed"). Lurk at(for, in? please correct me) the
options.
-- Emmanuel The C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html The C-library: http://www.dinkumware.com/refxc.html "Mal nommer les choses c'est ajouter du malheur au monde." -- Albert Camus.
- Next message: Juggler: "calling external program from within C++"
- Previous message: Old Wolf: "Re: char (*ptr)[]"
- In reply to: some: "Re: newbie question"
- Next in thread: some: "Re: newbie question"
- Reply: some: "Re: newbie question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|