Posts

Showing posts from September, 2005

Embrace Eclipse

For those of you who don’t know,   Eclipse Framework   ( http://www.eclipse.org/ ) is a freeware IDE. It’s SDK and documentation is freely downloadable from  http://eclipse.org/downloads/  without any registration or fee required. Eclipse primarily is an   IDE to make IDEs. Many Silicon Valley Giants are either contributing or using Eclipse Framework for their Main Line Flagship software products, Following is the list of companies to name a few which are part of Eclipse Foundation : Actuate, Agitar, Aldon, Avant Soft,   BEA,   Bedera Research,   Borland,   BZMedia,   CA , Catalyst Systems, CodeNovo Consulting, Collabnet, db4Objects,   Ericsson,   ERTI, Espirity, Exadel, Genuitec,   Hewlett Packard,   Hitachi,   IBM,   ILOG, Innoopract, Innovent, Instantiations, Intel,   ITG, Lombardi,   Mentor   Graphics,   Monta Vista,   Novell,   NTT Com, Omondo,   Nokia, Open Systems, Parasoft, Penton Media, Pure Edge, RTC,   SAP , Scapa Tech,   QNX , Schwartz Communications , Serena, Slick

Escape Sequences in C++

On UNIX new line in text files is LF (line feed character, ASCII 10). On DOS/Windows, the new line characters are CRLF (carriage return + line feed, ASCII 13, 10). To write a new line in DOS/Windows, the exact sequence is “\r\n”. You might have noticed this in some programs. However, to make DOS compatible with UNIX conventions, some functions internally translate “\n” to “\r\n”. For example, printf does this translation so you only need to say “hello\n” but the DOS-specific cprintf (this used to be in Borland C) does not perform this translation because this function is not available on UNIX so it expects DOS-specific codes, so you must use “hello\r\n” with this function, otherwise it would print lines with a stair-case effect:   Like “Hello\nWorld” may appear as: Hello        World