float pound, kilogram;
printf("Pound --------- Kilos\n\n");
printf("%.2f lbs = %.2f Kg\n", pound, kilogram);
It makes it so much more obvious what is going on.
Then look at your code: where do you modify pound or kilogram?
Since they do not change, it will always print the same values.
By the way, a better loop format for your application would be a for loop:
for (int i = 0; i <= 300; i++)
for (int j = 1; j <= 100; j++)
Since you don't initialize i in your code at all, the value can be random depending on which compiler and / or compiler options you use.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
Windows services don't run in the context of a user's desktop. At any point whilst the service is running, there could be zero, one, or many users logged in to the computer, each with their own desktop.
You need to use a different solution. For example, you can use the Windows Task Scheduler to start an application when any user logs in. That application will have access to the user's desktop.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
new1 (33 hits)
XXX_Global.h: error: conflicting types for'uint32_t'
Line 17: typedef unsigned int uint32_t;
gcc-6.3-arm32-eabi\arm-none-eabi\include\sys\_stdint.h:48:20: note: previous declaration of 'uint32_t' was here
Line 24: typedef __uint32_t uint32_t ;
CListfeatures a deleted copy contructor.
Microsoft folks think it is not useful to pass collections by value.
You could use std::list instead (I believe Microsoft folks themselves recommend std::list over CList).
"In testa che avete, Signor di Ceprano?"
Still get error with list me thinks it has to do that I declared stdecs just as a type without actually allocating storage i.e struct stdecs storagediscriptor; when I have the template outside of a struct it compiles thanks
I cannot create MyListBox derived from CFormView. The docs say I can put the Create call in the MyListBox ctor.
I get these errors:
// dialog template must exist and be invisible with WS_CHILD set
// invalid dialog template name
I don't want to create a resource dialog template, however, like an IDD_... because my listbox is just a PLACE_HOLDER control in a resource control.
How do I get the object created without a dialog resource IDD?
Last Visit: 31-Dec-99 18:00 Last Update: 28-Sep-22 9:51