[Solved] Execution Control In C [closed]

It seems like the obvious structure would be something like this: while (current_time < end_time) { current_number = *next_number++; if (meets_conditions(current_number)) output(current_number); } solved Execution Control In C [closed]

[Solved] Program doesn’t run, too much work? [closed]

The complexity of the program is huge – it would take forever to run. It is possibly valid, but the number of iterations in for loops is just enormous. You are trying to run this loop: for (unsigned __int64 i = 300851475143; i > 2; i–) which alone is way too big for the program … Read more

[Solved] Size of image increases after cropping

Telepathic power: you are talking about size of file on disk and comparing original compressed file (likely JPG) with cropped version saved in non-compressed format (likely BMP). Fix: save cropped image in compressed format. Image.Save with 2 arguments lets you specify format (i.e. unlike one argument version you use in your sample). Example from the … Read more

[Solved] Cast a Char pointer to UINT32

I’m going to guess that your code is calling an API that has a 32-bit opcode as the first parameter, and the author of the API has chosen an opcode such that if he did a combined hex/ASCII dump of your array he would see the ASCII letters “SELF”. For an example of this approach … Read more

[Solved] Multitier Architecture [closed]

I suggest that you read on how to ask a good question first Straight from Separation of concerns: design principle for separating a computer program into distinct sections, such that each section addresses a separate concern. I hope that you are not the developer taking over this project, because it seems like you have minimal … Read more

[Solved] Fibonacci series incorrectly [closed]

On your system, long is 32 bits. The largest positive integer it can hold is 4294967295. But 1836311903 + 2971215073 = 4807526976, which is larger, so it overflowed and you got 512559680 (which is 4807526976 – 4294967296). If you want to go past the 47th Fibonacci number, you’ll need a larger datatype or do multi-precision … Read more

[Solved] C# while loop not functioning [closed]

You need to split it up into sections. First: Get positive number double i; double k; Console.Write(“What is your total income : “); while (!double.TryParse(Console.ReadLine(), out i) || i < 0) { if (i < 0) { Console.WriteLine(“Your income cannot be negative.”); } else { Console.WriteLine(“Enter your income as a whole-dollar numeric figure.”); } } … Read more

[Solved] What is a watchdog? [closed]

A watchdog is a mechanism that periodically tests whether a process or thread is running properly. If it’s not, it either restarts it or notifies an administrator, depending on the needs of the application. The details of how you implement this will depend on the application design. solved What is a watchdog? [closed]