Search:

Type: Posts; User: parksie; Keyword(s):

Search: Search took 0.02 seconds.

  1. Poll: That C++ link is fairly horrific...nobody uses...

    That C++ link is fairly horrific...nobody uses 16-bit systems any more unless they *really* need to, and in that case they're usually people who have been forced to write something for it.

    Plus,...
  2. Thread: MFC & CSocket

    by parksie
    Replies
    4
    Views
    3,292

    I believe raw sockets are available in Win2K as...

    I believe raw sockets are available in Win2K as well, but you have to be Administrator. IIRC, Raw sockets are enabled for any user in WinXP? *shudder* Horrible security hole...
  3. Replies
    42
    Views
    23,738

    Some of those were valid points, but here's where...

    Some of those were valid points, but here's where I pick out the techie one ;)

    Devices. I don't know what's worse, /dev or ploughing through the Win2K registry trying to find exactly what "PCI...
  4. Thread: C++

    by parksie
    Replies
    31
    Views
    11,456

    Probably no limits (on a 32-bit compiler) up to...

    Probably no limits (on a 32-bit compiler) up to around a couple of gigs, might hit problems with more than a few tens of megabytes due to memory fragmentation - after about a megabyte you're better...
  5. Thread: C++

    by parksie
    Replies
    31
    Views
    11,456

    For the trouble it causes, either keep comments...

    For the trouble it causes, either keep comments up to date or get rid of them ;)

    Otherwise, people just end up ignoring them because they're too cynical to think they'll be of any use.

    PS:...
  6. Thread: C++

    by parksie
    Replies
    31
    Views
    11,456

    What if they supply more than 20 characters (null...

    What if they supply more than 20 characters (null terminator!)?

    Easier and safer to use a string:

    #include <iostream>
    #include <string>

    using namespace std;

    int main()
  7. Thread: C++

    by parksie
    Replies
    31
    Views
    11,456

    Thinking in C++, www.bruceeckel.com :cool: ...

    Thinking in C++, www.bruceeckel.com :cool:

    Great stuff :)
  8. Thread: C++

    by parksie
    Replies
    31
    Views
    11,456

    Not from main() you don't ;) Somewhere in the...

    Not from main() you don't ;)

    Somewhere in the standard, it says that if you don't have an explicit return statement, the compiler should substitute code for "return 0" at the end :D

    PS: G++,...
  9. Thread: C++

    by parksie
    Replies
    31
    Views
    11,456

    It should be in conio.h for the Borland compiler....

    It should be in conio.h for the Borland compiler. There's no mention of it in Visual C++.

    PS: Always use <iostream> not <iostream.h> which is the older, deprecated style.

    PPS: cgkanchi -- why...
  10. Thread: C++

    by parksie
    Replies
    31
    Views
    11,456

    Clear Screen: clrscr() with Borland, only way I...

    Clear Screen: clrscr() with Borland, only way I found with VC++ was system("cls") or one of the Console functions. For Unix, look at curses.

    File: I would suggest using the file streams with C++,...
Results 1 to 10 of 10