You're using the functions correctly per se, but the mistake you're making is that you need to loop through the entered password and keep a count of how many digits you have and whether each...
Type: Posts; User: Driver
You're using the functions correctly per se, but the mistake you're making is that you need to loop through the entered password and keep a count of how many digits you have and whether each...
I hope posting 4 weeks after the last post doesn't constitute resurrecting an old thread here, but a quick search using a well-known search engine took me here:...
Thanks for the speedy response _Mike, that answers it perfectly.
I'm trying my hand at writing an MDI application, and have an issue of conflicting information. In the code below:
LRESULT CALLBACK MdiChildWndProc(HWND hwnd,UINT msg,WPARAM wparam,LPARAM...
A bit like if you go to Google and do a search for Recursion.
A pogram should never crash because of invalid input; it should be handled with a message saying that the input is duff, and prompt for another one.
I'm not a c++ or c# programmer, but as I see it...
The negative case is handled easily enough by priming max to the first value in the array rather than assuming zero:
int compare(int a, int b, int c) {
int tmp[3] = {a, b, c};
int max =...
CoolWebSearch is considered to be quite an old malware now - you don't really hear of it much in the anti-malware community nowadays. It never used a file extension of .cws, so it's unlikely to be...
Just as horrible is this, a bit like the GNU one but worse, which I've seen from time to time:
void foo(int i)
{
code;
if (a == b)
{
code;
}
OK, I haven't had (or got) time to read every post in this thread, but I've got the general gist of the topic and would like to make a comment or two.
I don't post often here but I do look around...
Joining is an essential concept to any RDBMS programming.
Laserlight has summed it up quite nicely.
Search for "3rd Normal Form" or "3NF" as this is how you get the data stored in the database to...
I can say from experience that this is the case - that first job is the hardest to get. I got caught by the "to get a job you need 2 years' experience" problem. A catch-22 situation that's...
You could initialise max to the same as the first number entered, and then at the end test to see if max is <= 0. If so, output a message saying that no numbers were input instead of the highest...
I added it to a noddy program as such:
+5 typedef struct {
+6 /* Array of hex values that will be sent to a USB device */
+7 const UBYTE ovation [] =
+8 {
...
Avast! (already mentioned) is a good free solution, and so is AntiVir Personal Edition.
Both are light on resources, come with timely updates, and get good reviews in the antispyware community.
...
Twomers, I did get that from your link :) but of course I'm also wondering who can translate the Irish in my sig without using Google and cite where it comes from ;)
I know I saw someone post,...
And for those who want lessons, here is a tutorial on how to be sarcastic.
Actually, I wasn't being sarcastic in putting that. Maybe using the sarcasm tags was the sarcasm?!?!?!???!!(!)
In addition, you really ought to declare the main() function as returning an int.
See here for further info.
Hmmmmm .... maybe I should have used ..... tags after all :)
As an added bonus, you may also want to make it work for the year 1752 (check the month of September for the number of days that month had) :)
server:/home$ cal 09 1752
September 1752 ...
And for the record, I'm really Really, REALLY scared of Quzah .... I had to go and have therapy the last time I read one of his flames because, well, it messed with my mind and I needed to get help...
Completely untested, but even that complete code has redundancy in it. Take a look at this:
/* ***************************
*C Program Code::Blocks v1.0 *
*Written by: EvoTone ...
Flipping all the bits and adding one gives the two's complement value.
With one's complement, you don't add the extra one in after flipping all the bits.
The advantage of two's complement over...
The Music, Foreign Language, and Games tabs don't work but as this is very much WIP maybe that's the reason ... thought I'd flag it just in case it does turn out to be an error.
I can see...
Except in Florida, where oranges are green :)
Well, they were when I was there earlier this year. I know ... I ate one.