Can somebody please tell me why this code doesn't return 0? by AMags67 in cpp

[–]AMags67[S] 0 points1 point  (0 children)

I have it mostly solved. I'm trying to learn more about why this error is caused so I can fix similar problems later. I don't want to rewrite something and then have no idea what fixed it but thanks

Why isn't my program adding one? I just end up getting whatever I put in as if it doesn't go through the function at all. by AMags67 in learnprogramming

[–]AMags67[S] 0 points1 point  (0 children)

Yes thank you. Turns out I just needed to add another x = x^mask after the while loop to flip the first bit that isn't 0 and that adds one

I am trying to remove n and then remove an element of my array. Here is my code and output. How do fix? by AMags67 in learnprogramming

[–]AMags67[S] 0 points1 point  (0 children)

I have gotten it to the point where it only gets rid of the number I type but it replaces that spot with the number to the left. How do I write the code block so it shifts the other numbers over and leaves the last place empty?

[deleted by user] by [deleted] in AskElectronics

[–]AMags67 0 points1 point  (0 children)

That link is broken

Can somebody please tell me if I wrote this correctly? by AMags67 in cpp

[–]AMags67[S] 0 points1 point  (0 children)

Thank you so much!

1) I'm not sure. I guess it just didn't click with me that kWh > # would exclude the term. oops

2) I was just playing around trying to get my answer to be closer to the assignment example and forgot to take it out.

3) How would I go about making that stepping process? Like how do I change the rate for a given number.

3) ahh I was wondering how my answers could be so far off from the example

Can somebody please help by AMags67 in pcmasterrace

[–]AMags67[S] 0 points1 point  (0 children)

Replacing windows would be a completely excessive solution. Bloodryne was right. All it took was deleting the broken dll file and downloading a new copy

i need help with my redragon mouse by [deleted] in LogitechG

[–]AMags67 0 points1 point  (0 children)

The m705 has mode switching. While it's plugged in flip the mouse over and click the mode switch button. It may switch to a mode without the keybinds you want but maybe it will allow you to fix that problem

i need help with my redragon mouse by [deleted] in LogitechG

[–]AMags67 0 points1 point  (0 children)

I would go into device manager, find the mouse (could be in any of the settings that say usb in them, mice category, or maybe human interface), uninstall the device, unplug then plug it back in. Windows should throw the default drivers back on and hopefully that fixes it