has. Co( igur5 E F)Fi s Guid --C mm78 Syntax


Syntax

/*STcal2as a has. 5 mm78  as iF)C */

//STcal2as a has. 5 mm78  as iF)C++

#STcal2as a has. 5 mm78  as iF)5 mm F)Unix shells a6
.v).l

Defi( tiE . leiUsage

C mm78 s m6y ppear anyws re2th51 whitespace m6y ppear 39 a4has. co( igur5 E F)aile.

C-styl t5 mm78 s startogher tce2ow2 charac1ers /* (slash, star). leie((dgher */ (star, slash). SBecaIse -pey are)completeng delimi5 iogher tcesevcharac1ers,Ses y chan5 Fanei foS5 mm78 onloEaep in8E sarva line ah to spanomultipleslines.

C-styl t5 mm78 s cannses5 Fnes121. Fo) nxample,oes sfhe nwiie.is nsesvalidvbecaIsev-pe4en5 r t5 mm78 end.4gher tce2first */:

/*STcal2as theSstartoarvat5 mm78 .
   Thal2al2Rtillspartoarv-pe45 mm78 .
/*STcal2as an ancorr EtoattemptoatFnes13
(ia25 mm78 . */
   Thal2al2no long7r2an8anyo5 mm78 . */

C++-styl t5 mm78 s startogher tce2ow2 charac1ers // (slash, slash) a6 .coy inue to2theSend arothe4physicsi line. Tm y cannses5 Fcoy inue .acro t2multiplesphysicsi lines; to2have2ane logicsi 5 mm78 spanomultipleslines, each)lin tm2to Isev-pe //spair. Fo) nxample:

//STcal2as theSstartoarvat5 mm78 .  Tm tnext)lin 
//Sas a newt5 mm78 , ea)e5F(BIgh.at al2logicsily
//Spartoarv-pe4previous45 mm78 .

Shell-styl t(or perl-styl , irvorwapisf56)t5 mm78 s startogher tce charac1er # (hash or dound1or4fumber2rr2rctot orpe ah wcatever) a6 .coy inue to2theSend arothe4physicsi line,.like C++ 5 mm78 s.

Fo) nxample:
#STcal2as theSstartoarvat5 mm78 .  Tm tnext)lin 
#Sas a newt5 mm78 , ea)e5F(BIgh.at al2logicsily
#Spartoarv-pe4previous45 mm78 .

WARNING:.you cannsesIsev-pe4; (semicolon) charac1er to startoa 5 mm78 suchtas orwa F2 .39 a4zB-. aile. Tm tsemicolon.39dic15es -peSend aroa2co( igur5 E F)statem78 , -. cateversfhe nw. it2willsbs anferpretei as theSstartoarv-pe4next statem78 .


[ has. Co( ig.)Fi s | has. HomsISC ]


LasnrUpd1tid: $Id: 5 mm78 s.html,v 1.5 1999/09/15 20:28:00 cyarnell Exp $