Message from @What Would Jack Conte Do?
Discord ID: 617926559407538176
Or was
🤷
I don't think Microsoft knows how their stuff works anymore
```AppData\Roaming is designed for use in what I’ll call a corporate environment, though any widespread deployment of Windows in a large environment could be configured to make use of it.
In these scenarios the idea is that your Windows account isn’t an account on a specific machine, but rather an account in your company’s overall IT infrastructure or “Domain”. In theory, then, you could log in to any machine connected to your corporate network on which you have permission with your single corporate Windows account.
And when you did so, the data that applications had placed in AppData\Roaming would follow you to the machine you logged in on. It would “roam” to whatever machine you happened to use.
```
yes
but like, i would imagine the things you would want there would be things like browser profiles, extensions, things like this
i.e. app data, as it says
not program files
You need admin access to install there
kek
```One of the benefits of installing to Program Files is that is exactly where the user expects it to go.
The biggest downside is that the user needs administrative privileges, which isn't always required by the program.```
Ain't nobody got time for that
i actually don't know why installing to program files requires admin
do things there have special privileges?
I know 20 year old electronics graduates that won't install an altium product if it pops up windows utc
lol
how do i avoid getting scope fucked in c++
to store a smaller or larger int
but then i want to use those variables globally
maybe extern keyword could help?
not sure, I've only done arduino C++, but that's how I usually do it
BJ's PPP has some prank questions, like it gives questions that require knowledge of scope and list sorting before it teaches you it
avoid global variables for most purposes
globals are fine as long as properly named and it has few setters (ideally, it's just set in one place, once)
having used threads a bit it's abundantly possible to make the kinds of errors people supposedly cause with globals by referencing an object or variable with multiple threads
`Although threads seem to be a small step from sequential computation, in fact, they represent a huge step. They discard the most essential and appealing properties of sequential computation: understandability, predictability, and determinism.`
(this is probably where functional fans come in and tell everyone about how having any shared state is bad)
for some reason this program returns x as 25 million times its number
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;
inline void keep_window_open(){ char ch; cin>>ch; }
//for some reason, the square function returns 25 million
int square(int x)
{
x +=x;
cout << x;
}
int main()
{
int i = 0;
cout << "Enter a value.\n\n";
cin >> i;
cout << square(i);
}
seeing all these double >> around are you sure you're not bitshifting something?
i don't actually know C++ though
@Tero that's how you print in c++
And take input
In C++ the '>>' and '<<' indicator data flows with iostream
ok