Search:

Type: Posts; User: lawina

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    2,084

    Until now POSIX threads are not compatible with...

    Until now POSIX threads are not compatible with C++. So if you want to write cross platform multithreaded software, you better stick to C, at least for now.
  2. Replies
    5
    Views
    5,791

    You need a SSH library....

    You need a SSH library.
    http://www.0xbadc0de.be/libssh:libssh
  3. Replies
    3
    Views
    1,237

    But both the pointer and the array hold the same...

    But both the pointer and the array hold the same content.
    Shouldn't they report the same size?
  4. Replies
    3
    Views
    1,237

    sizeof behaviour!!

    I have this following program:



    char a[] = "VC";
    char *b = "VC";
    printf("\n %d %d",sizeof(a),sizeof(b));
  5. Replies
    11
    Views
    4,306

    Try http://smartwin.sourceforge.net/ Its...

    Try http://smartwin.sourceforge.net/

    Its template based.
  6. Replies
    2
    Views
    4,679

    Don't know about the errata for that book. Is...

    Don't know about the errata for that book.

    Is there an answer book for the 4th edition?
    I know there is already available for the 3rd.
  7. Replies
    3
    Views
    1,500

    Thanks guys.

    Thanks guys.
  8. Replies
    3
    Views
    1,500

    C++ newbie struggling with malloc

    I am looking at some legacy C code.

    char * b = (char *)malloc(l+1) ;

    If i were to use new operator, it will be declared as

    char * b = new b ;

    Would that be correct?
  9. Replies
    153
    Views
    680,378

    Sticky: "C++ How to Program...

    "C++ How to Program, Fifth Edition By Deitel"

    Don't go for the older editions. Book is lengthy but good. Great for Beginners and possibly intermediate programmers.
  10. Replies
    3
    Views
    4,420

    wildcard case insensitive string compare

    Can somebody recommend a algorithm for 'fast' wildcard case insensitive string comparisons?

    The wild cards are '*' and '?'

    Thanks
  11. Is this Windows or Unix?

    Is this Windows or Unix?
  12. Replies
    3
    Views
    988

    multiple string searching woes

    I am trying to do a multiple pattern search (50 of them) in a large log file (around 300MB size) using the strstr function:




    while( getline( ifstreamobj , line_in_logfile ) )
    {
    if...
  13. Thread: Market Needs

    by lawina
    Replies
    14
    Views
    1,635

    Ancient Dragon, Does the C/C++ preprocessor...

    Ancient Dragon,

    Does the C/C++ preprocessor understand what _UNIX or _WIN32 means or should we add it as a option in the command line to the C/C++ compiler(g++)?
  14. Replies
    7
    Views
    1,509

    I managed to get a similar warning using g++ with...

    I managed to get a similar warning using g++ with the option -Wwrite-strings:

    $ g++ -o test1 test1.cc -Wwrite-strings

    In function `int main()':
    warning: deprecated conversion from string...
  15. Replies
    8
    Views
    4,712

    Can u please tell me what are those 'legal'...

    Can u please tell me what are those 'legal' limitations that prevent the executable size to be small?
  16. Replies
    7
    Views
    1,016

    You have to replace "! =" with !=. There is a...

    You have to replace "! =" with !=.

    There is a space in between those characters.
  17. Replies
    7
    Views
    1,509

    Whats wrong with this statement?

    The following statement compiles perfectly with g++.
    But the sun compiler gives me a warning:
    "Warning: String literal converted to char* in initialization."

    char *bstr =
    "ABCDEFGHIJKLMNOPQ"...
  18. Replies
    11
    Views
    2,075

    Thanks everyone. Bottomline: Macros are bad...

    Thanks everyone.
    Bottomline: Macros are bad practice.
  19. Replies
    11
    Views
    2,075

    Newbie question about the define macro

    I happened to read some code recently and I have the following doubts.

    What does this statement mean:

    #define stricmp strcasecmp


    Is this supported in c++?

    Does the statement mean "...
  20. Replies
    2
    Views
    3,596

    Did u try using command.com instead?

    Did u try using command.com instead?
Results 1 to 20 of 21