I'd thank Derek Smart, but he's the biggest idiot on the Internet, and that's a big call I know.
I suppose this is an effort by MS to phase out MSVC 6, but it seems to me that the majority of the...
Type: Posts; User: HybridM
I'd thank Derek Smart, but he's the biggest idiot on the Internet, and that's a big call I know.
I suppose this is an effort by MS to phase out MSVC 6, but it seems to me that the majority of the...
Really, the best way to do this (if I understood you correctly) is just the start at the minimum possible number and increment up to the maximum.
Alternatively if what you want is for the computer...
As long as the kids know they don't have to say it if they don't want to.
The thing is though, no matter how many times those kids repeat that pledge, they will probably never consider its actual...
I think it's pretty easy to work it out without anything at all. But you could put a comment there if you're worried. Don't over-comment though, cardinal sin. :)
Only thing I would suggest is at the end of a cout where you want a new line you should use "<< endl;" instead of the newline escape character.
Also you have the variable month but you don't use...
Does it work in safe mode?
Oops ty prelude.
the recv() function acts differently to send()
What you will need to do is create a temporary c-style string buffer, use that in the call to recv() and then copy the c-string into your...
the c_str() member of the std::string class is a function, so it needs brackets.
Actually that would be a grammar issue. :P
I like the thin horizontal rule that separates the posts now, but sigs are appearing just below the last line of text (see thantos' post). It doesn't look right to me, having all that space below it.
If only it was C++:
int Comparestr(const char* str1, const char* str2)
{
std::string temp1 = str1, temp2 = str2;
if(temp1 == temp2)
return 0;
Not sure if this is meant to be the case of not, but there is no scroll bar on code tags and it really sucks.
Love the quick reply box, needed one for a long time.
There's so much money to be made from people who refuse to believe death is the end.
I always like how if he's stuck he can read someone from the crew. What a crock.
Just had to post to see what it's like.
I don't mind the new theme. Old smilies would be good, the colours are buggered on the new ones. Other than that I will like it once I get used to it I...
As far as I know it's not really any different, but it's considered bad practice to bring all those names in to scope when you're not going to use them.
And it's also better to use the third...
You can put:
cin.get(); // just before return or
system("pause"); // windows only
edit: or you could execute from the command prompt rather than executing the executable on its own.
You can only do that if the Operating System lets you. Otherwise you'll get a protection fault when you try to access it. I think?
And to answer your second question,
main() is the function that the operating system calls to begin your program. Every program must have a main() function. It's possible not to return a value...
Hi there,
You're getting errors because in the new headers (without the .h) all the functions etc. (cout etc.) are in what's called a namespace, they are in a namespace called std. So you need to...
For Win32 platform, I recommend Win32 API.
Thanks codeplug
I did search around.
CBN_CLOSEUP
idComboBox = (int) LOWORD(wParam); // identifier of combo box
hwndComboBox = (HWND) lParam; // handle of combo box
but
WM_COMMAND
wNotifyCode = HIWORD(wParam);...
No probs. :)
yeah just send the something like the CB_GETCURSEL message, which will return the zero-based index of the item currently selected, then do your thang.