Search:
Type: Posts; User: rohshall
Search:
Search took 0.67 seconds.
-
September 27th, 2010, 01:51 AM
hello.h
static const ::std::string hello = "hello";
When hello.h is included in a file, it becomes a static declaration with a file scope.
So, every .c[pp] file will get its own local copy.
...
-
September 16th, 2010, 11:56 PM
You can start by learning the database access library ADO.NET
http://articles.sitepoint.com/article/introduction-ado-net
-
September 6th, 2010, 01:13 AM
Assuming your blob is declared as a three-dimensional array like this:
float blob[some dimension][32][32];
the problem seems to be in your local variable - patternArray. Are you allocating...
-
August 27th, 2010, 12:28 AM
-
August 24th, 2010, 12:03 AM
You can have multimap of particles:
http://www.cplusplus.com/reference/stl/multimap/
class particle {
int x; // particle location
int y;
int z;
};
-
August 23rd, 2010, 11:52 PM
I found this link that says cygwin does not support pthread_mutex_timedlock function. So, the C++0x threading support is disabled in cygwin.
...
-
August 23rd, 2010, 11:39 PM
I tried it, but that option is also not recognized. I am aware that pthreads is a separate library and I can link using -lpthreads, but this C++0x thread is library separate from the pthreads though...
-
August 23rd, 2010, 11:36 PM
Thank you all. gcc supports C++0x thread since its 4.3 version
http://stackoverflow.com/questions/3175450/how-to-compile-and-run-c0x-with-gcc-g-in-eclipse-cdt
I have read a couple of other blogs...
-
August 23rd, 2010, 02:53 AM
Hi,
I am trying to compile gcc 4.5.1 for cygwin with support for C++0x threads.
However, the resulting gcc does not recognize the -pthread option.
My configure command is:
./configure...
-
August 18th, 2010, 12:31 AM
Use bitwise operators:
http://www.c-sharpcorner.com/uploadfile/chandrahundigam/bitwiseropsincs11082005050940am/bitwiseropsincs.aspx
-
August 17th, 2010, 11:58 PM
Please post the code in code tags. Also list the compiler error with the line number.
Anyway, the error is because img is of type char** and charArray is of type char*. And you are copying...
-
August 14th, 2010, 02:45 AM
http://www.cplusplus.com/reference/clibrary/ctime/time/
-
August 13th, 2010, 12:41 AM
Head First - Object oriented analysis and design by O'relly
-
August 5th, 2010, 11:22 PM
In preprocessing stage, you need to use macros to do a calculation.
-
August 3rd, 2010, 01:10 AM
Since the only relevant difference is the sql query string, you can pass this string to a common function.
-
August 3rd, 2010, 12:29 AM
The function name is pthread_create and not Pthread_create (i.e. it starts with a small p).
-
July 28th, 2010, 11:56 PM
Interesting problem.
You just have to flush the client writer stream after writing, the same way you do that in the server code.
And by the way, please use code tags. It preserves the indentation.
-
July 28th, 2010, 12:42 AM
Since you want to sort using their names, you can just use CompareTo of the string class like this:
public int CompareTo(Friend other)
{
return...
-
July 22nd, 2010, 11:57 PM
If the information you extract from these files is treated in a similar way by the rest of the code, you can put the interface in a base class say FileDataInfo and have 3 implementations in concrete...
-
Can you post the relevant code using code tags?
-
April 4th, 2010, 11:51 PM
Yes, IComparable interface is ugly, and for that matter most of the non-generic interfaces. That is why it's better to use their generic counterparts. In your case, it is IComparable<Card>.
-
April 4th, 2010, 11:45 PM
You are already passing a Person object in CDs class. So, you can just store the instance in a private variable of type Person. Alternatively, if you intended to pass a string which is a person name,...
-
March 26th, 2010, 10:08 AM
Thanks so much Arjay.
One more question.
How do I make Visual Studio generate these classes instead of typed datasets. Typed datasets are scary. It generates about 400 lines of C# code for a 20...
-
March 25th, 2010, 02:42 AM
Found the answer.
xsd.exe can generate these classes with /classes command line option.
-
March 25th, 2010, 01:04 AM
How can I generate these classes from the XML file? It is troublesome to hand-code them.
|
Click Here to Expand Forum to Full Width
|