Kudos to you buddy, thanks
Type: Posts; User: manzoor
Kudos to you buddy, thanks
Okay, so an unsigned int takes up 4 bytes in most machines (in mine it does).
Now if I do this:
cout << &anUnsignedInt << endl;
I'll get its address right? What will that address point to?...
Can you please explain why you are using the bit shift operator and the ANDing it with 0xFF?
How does it works?
I'm sending messages over TCP/IP, I need to prefix message length in a char array and then send it. How do I do it?
Also can you please provide an example of how to extract it at the another end....
I don't really know about these things. They are too much advanced stuff :)
But I believe you'll have to use VoIP protocols and stuff. Google it, I'm sure you'll find helpful stuff
They are more aimed at solving mathematical problems (Project Euler). If you want some coding, algorithms and problem solving challenges and tests, try TopCoder.com
Atlast, the day is saved by PowerPuff Girls, la la laaaaaaaaaaaaa
Thanks guys, this forum has always been a helpful and a good learning resource
So you mean that (my last-most post's code) is not valid?
How come this statement is valid?
while(char c = cin.get() != 'q')
A what? Clarify please
In what order will the following line of code be executed?
while((char c = cin.get()) != 'q')
Is my assumption correct that the sequence of execution will be in the following order.
1)...
Can any one please look at the below code (specifically the Command class and tell me what is the typedef void(Giant:: *Action)(); line doing and where is Action defined or declared?
class...
Yes, I tried. But the first hit is showing an example of a shareware library :)
I need a freeware :)
Did you yourself find one? If so can you post the link?
Because I have tried searching Google with no results. Remember I need one which is capable of support SSL connections and is compatible...
Hey, Can you recommend me what C++ library or classes are available for sending email via SMTP in C++. I'm on Windows platform. I need a library which supports attachments and SSL connections. What...
typedef CApaApplication*(* TApaApplicationFactory::TFunction)();
Can you tell me what is this? Is it a synonym for CApaApplication class?
What does the (*TApaApplicationFactory::TFunction)()...
I have been programming for a while in C++, MFC, .NET (using C++/CLI) etc. Did few projects in these frameworks/platforms.
Now I would like to switch to Linux development. So need suggestions on...
Can you explain why? What's wrong with the built in arrays?
Hey, I have button in a Form, I implemented its Click handler as when its clicked an X is drawn.... I obtained the Graphics using the CreateGraphics() method of the button used it to call the...
Thanks everyone, I think I got it now.
Again thanks everyone for helping. This site has been a great resource for programming. Keep it up. I'm waiting for the day when I'll be helping people :).
#include <iostream>
#include <vector>
#include <ctime>
#include <algorithm>
#include <numeric>
bool myFunction(int* i, int* j)
{
return *i > *j;
}
Can we sort the elements with their pointers and modify them without changing their order in the original array?
Can u simplify what you mean?
Do you mean that I create n pointers to the top elements?
Ok but if I go this way, I'm still having an obstacle on my way. How should I determine the top n...
What do u mean?
I want the top n elements in the array without sorting the original array, and then want to make modifications to the top n elements without changing the order of the array
How ?
ok ty