console:::

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dan Irwin

    console:::

    i just bought a book on c++.net and read about half through the book,
    there are two things that i dont understand:

    1.when did we start useing "int _tmain" instead of "int main"?
    2. what is console::WriteL ine and why do books and tuorials use it if
    msdn says it cant make a sample of house to use it for c++?
  • Phlip

    #2
    Re: console:::

    Dan Irwin wrote:
    [color=blue]
    > i just bought a book on c++.net and read about half through the book,
    > there are two things that i dont understand:[/color]

    Further questions will work best on a .net newsgroup; this one tries to
    discuss platform-neutral C++.
    [color=blue]
    > 1.when did we start useing "int _tmain" instead of "int main"?[/color]

    When we started writing Typed code that could re-compile for "unicode"
    easily.

    Things containing T, such as TCHAR or STRTCHR, typically toggle by a UNICODE
    macro. If that's on, they front wchar_t (which is standard). If that's off,
    they front char (which is standard and more familiar).

    The 16-bit wchar_t characters can store wide code pages, such as UTF-16,
    which some folks causally refer to as "Unicode".

    Be fooled by imitations. 'char' type can store UTF-8, which is just as
    global.

    But never increment a character pointer, such as pc++, and expect it to
    point to the "beginning" of a complete character if your string could
    contain multi-byte characters.
    [color=blue]
    > 2. what is console::WriteL ine and why do books and tuorials use it if
    > msdn says it cant make a sample of house to use it for c++?[/color]

    Sample of house?

    That is probably some kind of character-mode function, such as "ncurses" for
    the GNU/Un*x/VT technologies.

    --
    Phlip




    Comment

    Working...