Search:
Type: Posts; User: cosminflorea
Search:
Search took 0.02 seconds.
-
October 3rd, 2011, 05:56 AM
Can you explain, please, how did fflush(stdout) solve your problem ?
-
November 22nd, 2010, 04:00 AM
You only have to try to link if the target is an executable file. If the target is a library, then try to build the final executable too.
-
September 2nd, 2010, 07:48 AM
It is not, the code i posted is only a proof of concept.
-
September 2nd, 2010, 07:41 AM
You can do like this:
class ServiceImplClass
{
class SimpleThread
{
SimpleThread(ServiceImplClass* pParent); // keeps a reference to the parent; used to access...
-
September 2nd, 2010, 03:32 AM
- use netstat on the server host to see if the server is up;
- use telnet <IP> <port> from the real client machine (or a different computer in your network) to see if the server is reachable from...
-
August 24th, 2010, 09:28 AM
The nonblocking mode is not important in this case. You must always loop until you receive all the bytes you wanted to, like this:
int n=0;
do
{
n += recv(socket, buffer, 1024, 0); // also...
-
August 16th, 2010, 01:58 AM
This is the signature of the select function:
int select(int nfds, fd_set *readfds, fd_set *writefds,fd_set *exceptfds, struct timeval *timeout);
Based on this, you are using this function...
-
You have this:
istream & operator >> (istream & s, Candidate & v)
and you wanted to use this:
istream & operator >> (istream & s, Candidate* v)
-
From your code I understand that you wanted to instantiate Singleton<T> for T=SlaveManager. The 2 errors tells that, at the point of the instantiation, the linker is unable to find the definitions...
-
April 21st, 2010, 01:38 AM
Did you solve your problem? If not, this may help
- try this command: "nm libbase.a | grep Malloc2D_uchr" to see if the library does contain your function
- in file bmalloc.h wrap your...
-
September 14th, 2009, 01:23 AM
Are you sure the server is running? You can use telnet to test if the server is listening.
-
August 25th, 2009, 01:40 AM
You can try this:
template<typename T>
T addone(T x)
{
return x+1;
}
-
August 18th, 2009, 08:06 AM
I have no experience with mobile devices, but for a PC:
1) sendto() is to be used with UDP sockets, not TCP.
2) if you have a TCP socket which is not connected anymore, you can reconnect it to...
-
August 17th, 2009, 09:44 AM
Your operator is incorrect because it is recursive (it calls itself) and doesn't have a stop condition. If you run thatcode, you'll get and endless loop.
-
August 17th, 2009, 09:32 AM
There are not "static blocks" in C++; if you want to have static initializers per class in C++, you must take care to call them explicitly before making any object of that class. Also, in C++, global...
-
I think that you should check always if there are changes to your file. If your window is not active, it doesn't receive messages and your test doesn't take place. You may try this
while...
-
November 7th, 2008, 11:55 AM
I need to be able to create such BigDecimal instances out of double literals (like Java does).
But i think you are right, maybe the response to my question is the "precision", if the number of...
-
November 7th, 2008, 11:33 AM
Java doesn't seem to have the same issue; that is why i think there is a way to "guess" the "exact" value in this case.
-
November 7th, 2008, 11:17 AM
Hello,
I have the following problem in C++. I wrote a C++ implementation of the java class BigDecimal, but i have a problem with the double literals. So, i have this code fragment:
...
-
June 25th, 2008, 06:25 AM
Try this comamnd: file <your_file_name>
-
December 11th, 2007, 10:02 AM
It is returning a non-const object because this is its purpose, to remove the const.
In C++ you cannot call a non-const method for a const object. If you have a non-const method that doesn't affect...
-
December 11th, 2007, 07:35 AM
Once you declare a const variable, the compiler is free to place it into an "read only" code segment; if this happens, it is not possible to change this variable anymore. If you still want to access...
-
November 13th, 2007, 02:50 AM
You can define an "operator new" in your Base class; the compiler calls this operator with the right size of the memory to be allocated. But you must find a solution for stack allocated objects...
-
August 27th, 2007, 02:53 AM
Try this:
namespace __gnu_cxx
{
template<>
struct hash<MyClass*>
{
bool operator()(const MyClass* s1) const
-
August 9th, 2007, 02:00 AM
The initialization order for static variables defined in different translation units is undefined in C++ - this could be a reason; check the dependences between your static members/global variables.
|
Click Here to Expand Forum to Full Width
|