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.
Type: Posts; User: lawina
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.
You need a SSH library.
http://www.0xbadc0de.be/libssh:libssh
But both the pointer and the array hold the same content.
Shouldn't they report the same size?
I have this following program:
char a[] = "VC";
char *b = "VC";
printf("\n %d %d",sizeof(a),sizeof(b));
Try http://smartwin.sourceforge.net/
Its template based.
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.
Thanks guys.
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?
"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.
Can somebody recommend a algorithm for 'fast' wildcard case insensitive string comparisons?
The wild cards are '*' and '?'
Thanks
Is this Windows or Unix?
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...
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++)?
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...
Can u please tell me what are those 'legal' limitations that prevent the executable size to be small?
You have to replace "! =" with !=.
There is a space in between those characters.
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"...
Thanks everyone.
Bottomline: Macros are bad practice.
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 "...
Did u try using command.com instead?