Search:
Type: Posts; User: sunnypalsingh
Search:
Search took 0.59 seconds.
-
April 17th, 2010, 11:58 AM
Check this FAQ entry
Is it a bad idea to bind() to a particular port in a client program?
-
April 17th, 2010, 11:51 AM
TCP Client and Server Interaction:
http://www.tutorialspoint.com/images/socket_client_server.gif
-
April 13th, 2010, 11:42 PM
-
April 12th, 2010, 10:14 PM
std::map associate key with only one value. So, why would others not replace?
I am not sure but I think others will also be first constructed then they will be put in map. So, why inefficient?...
-
April 12th, 2010, 08:37 PM
Suppose I have map
map<string, int> Employees;
Which of the following method are best to use for insertion?
1. Assignment using array index notation
Employees["Mike C."] = 5234;
-
April 12th, 2010, 12:33 AM
I think directly nmake will also work.
-
April 12th, 2010, 12:28 AM
Not sure whether you can compile this on Visual Studio or not by just seeing the names of files.
Source might be for some unix /linux flavour which you might need to modify for it to work on...
-
April 11th, 2010, 07:39 AM
If you want your other thread which is in your control to make select call return, you can also send a signal.
-
April 11th, 2010, 07:19 AM
Try using select call. select() gives you the power to monitor several sockets at the same time. It'll tell you which ones are ready for reading, which are ready for writing, and which sockets have...
-
April 11th, 2010, 05:38 AM
You can make use of POSIX Thread Programming which can work on both on Linux and Windows.
-
April 11th, 2010, 05:30 AM
I believe you would also need to play with SetProcessAffinityMask
From MSDN:
Caveat:
Also you can take a look at SetThreadIdealProcessor
Which sets a preferred processor for a thread....
-
September 26th, 2007, 10:51 AM
goto is a tool and since there is no proof for whether its usage is correct or not, use it where it is needed and be prepared to be wrong in your decision :)
-
September 1st, 2007, 05:10 AM
Why does it appear fine to you :eek:
Preprocessing directive are of the form
# define identifier replacement-list new-line
which defines an object-like macro that causes each subsequent...
-
August 28th, 2007, 08:38 AM
One way to validate input for integers
#include <iostream>
#include <limits>
using namespace std;
int main() {
int number = 0;
-
August 28th, 2007, 08:26 AM
If the class of an object has a destructor, C++ guarantees that the destructor is called when the object dies. A local (auto) object dies at the close of the block ({...}) in which it was created...
-
August 20th, 2007, 11:05 AM
wcout - The object controls insertions to the standard output as a wide stream.
wstring - A type that describes a specialization of the template class basic_string with elements of type wchar_t.
-
August 20th, 2007, 05:38 AM
Directly it's not possible but you might put those variables which you don't want friend function to access in separate base classes holding that variable. Not sure on this. Maybe someone will...
-
August 20th, 2007, 04:33 AM
Because of historical reasons a string literal can be assigned to a char*. This is allowed because in previous definitions of C and C++ , the type of a string literal was char*. Allowing the...
-
August 19th, 2007, 04:55 AM
vector< > uses contiguous memory to store its elements. vector automatically grabs a chunk of memory(say 256 Kbytes) and puts all the data into this memory.When you keep adding data, you will run out...
-
August 19th, 2007, 12:06 AM
Forget Turbo C++ 3.0. It's old & non-standard. Get a more powerful & more standard conformant compiler.
www.codeblocks.org
-
August 18th, 2007, 09:36 PM
When a function returns, its automatic, local variables are discarded, so the returned pointer in this case is invalid (it points to an array that no longer exists).
This fix is imperfect, since...
-
August 18th, 2007, 09:22 PM
Like Zuk said, you need to include <cmath> for log function. You can find all the details of library functions and header from this link
-
August 18th, 2007, 08:04 AM
For All Beerholder
http://media.santabanta.com//joke/visuals/8520.jpg
How true!!!! Beauty lies in the eyes of Beer holder....
-
August 18th, 2007, 08:01 AM
http://media.santabanta.com//joke/visuals/8521.jpg
It was supposed to be a family magazine till they chose to publish this cover....
-
August 18th, 2007, 05:03 AM
Classes are a way to localize all the state (data) and services (typically member functions) associated with a cohesive concept. The main idea is to organize things so that when changes to the...
|
Click Here to Expand Forum to Full Width
|