Posts

Showing posts from March 29, 2019

CentOS 7.6 Computer Freezes When Changing Display Settings

Image
0 I am using three monitors and am having an issue where the primary monitor is off to the far left. When I go into the Gnome settings and try and move the monitors around, it freezes. If I unhook and rehook the monitors, it freezes. I was hoping there is a way to manually do it. The system is using a MSI 970 gaming mobo (bad choice,) an AMD r9 380, and an FX-6300 CPU, and it is booting off a 120GB Kingston SSD I have installed amdgpu for RHEL 7.6/CENTOS 7.6 and still have the issue, though the system does perform better, though over-all it is slow. It is a fresh install. When I say that the computer is freezing, I do mean that it is freezing, mouse intput barely receives location, keyboard stops ability outputting, and the mouse's scroll wheel and buttons do nothing. ...

How do I make a variable always equal to the result of some calculations?

Image
26 6 In math, if z = x+y/2 , then z will always change whenever we replace the value of x and y . Can we do that in programming without having to specifically updating z whenever we change the value of x and y ? I mean something like that won't work, right? int x; int y; int z{x + y}; cin >> x; cin >> y; cout << z; If you're confused why I would need that, I want the variable shown live, and get it updated automatically when a rhs-variable make changes. Like when killing a creep and get gold, then the net-worth (cash+worth of own items) shown changes. Or the speed meter of a car changing depending on how slow or fast you're driving. c++ c++11 share | improve thi...