console:::

D

Dan Irwin

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::WriteLine and why do books and tuorials use it if
msdn says it cant make a sample of house to use it for c++?
 
P

Phlip

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

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

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.
2. what is console::WriteLine and why do books and tuorials use it if
msdn says it cant make a sample of house to use it for c++?

Sample of house?

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top