Joined
Last Online
Recent Posts
那么有什么实用价值呢
如下
codelist_1.cpp
// codelist_1.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//
#include<iostream>
#include<iomanip>
#include<fstream>
#include<string>
#include<stdlib.h>
#include<set>
using namespace std;
class type
{
private:
int str1;
int str2;
int str3;
public:
type() {
str1 = 0, str2 = 0, str3 = 0;
}
~type() {};
friend istream & operator>>(istream & in, type &cu ) {
in >> cu.str1 >> cu.str2 >> cu.str3;
return in;
}
friend ostream & operator<<(ostream & out, const type &st) {
out << st.str1 << st.str2 << st.str3 << endl;
return out;
}
int getstr1() {
return str1;
}
int getstr2() {
return str2;
}
int getstr3() {
return str3;
}
};
int main() {
type type0;
ofstream fkb("fkb.txt");
cin >> type0;
fkb << type0.getstr1() << type0.getstr2() << type0.getstr3() << endl;
return 0;
}
实际作用大概是省下了从键盘cin到文件整个过程的文字量,而且这份代码是示例,class只有3个私有成员,如果是大型工程,一个一个cin写那必然是要出人命的
codelist_0.cpp
#include<iostream>
#include<iomanip>
#include<fstream>
#include<string>
#include<stdlib.h>
#include<set>
using namespace std;
class type
{
private:
int str1;
int str2;
int str3;
public:
type() {
str1 = 0, str2 = 0, str3 = 0;
}
~type() {};
friend istream & operator>>(istream & in, type &cu ) {
in >> cu.str1 >> cu.str2 >> cu.str3;
return in;
}
friend ostream & operator<<(ostream & out, const type &st) {
out << st.str1 << st.str2 << st.str3 << endl;
return out;
}
};
int main() {
type type0;
cin >> type0;
cout << type0;
}
这应该是最简单的重载流示例了
总结
反正我是笑不出来,眼泪都在肚子里
巨硬偷懒技术实属一流大厂风范
但是
Convenience
考虑到Hyper-V,潜力巨大但是却少被用到(指一般电脑用户)以及Sandbox的特点(隐私保护,全新环境)现在越来越多的被需要,这也算是废物利用"重新发现",主要是微软肯做,想到了用户这方面的需要。
存储方面
右边是Primary Machine,频率是浮动的
右下角有个设备标识
用户名
我想了一下WD可能是指Windows Defender,然后查证
运行就直接是以管理员运行 那UAC自然是最后一级(从不通知)
许可是自然没许可的
我去网上找了一些激活码,输入确认后立即返回
Google了一圈,没有相关解答
程序和功能是空白的
接下来就是看看一些有意思的细节
说实话也没什么好说的,跟Hyper-V完全一致的东西,傻瓜式的一键打开
那么那些需要名字的地方random就好了
为了节省不看细节的水友时间,我就直接说原理了
很简单,Windows Hyper-V虚拟机+本机映射+远程桌面
(其实当Windows提示打开Sandbox这项功能需要打开硬件虚拟化的时候我就差不多明白了)