administrators
@biezhi 抱歉看晚了呐,nodebb 论坛的插件:nodebb-plugin-cloudmusic
修改插件的 js ,网易云音乐 http 改为 https,新建一个文件夹,修改后的插件放进去用 yarn 链接 包。
nodebb-plugin-cloudmusic,下载后咱重新创建个目录把插件移动进去,改js文件,里面有网易云连接是http的,改成https。然后用 yarn 包管理器,链接到默认的插件存放目录。用 yarn 是因为相较 npm 很少在nodebb更新包时莫名其妙报错。
在网易云音乐插件文件夹里 link yarn
,后在 node_modules 的文件夹 yarn link nodebb-plugin-cloudmusic
Chrome网上应用店地址:
https://chrome.google.com/webstore/detail/网盘工具箱/cakigagbjggglgnalfhpnmebcfpbefaf
名称:网盘工具箱
功能:度盘资源搜索 自动获取分享密码 识别分享链接有效性 度盘不限速下载(测试版)
给个地址:
链接: https://pan.baidu.com/s/1cB9j4iCh3f1Q3aLOtervXA 提取码: 5r49
链接: https://pan.baidu.com/s/1JazutmfNGSvqfK4T3M-CDA 提取码: ef49
首先描述一下问题:
在升级到Windows 10的1903版本后,我的VMWare出现了很怪异的现象,带有GUI界面的Linux可以正常联网,而没有GUI的Linux需要ping之后才能联网,而且ping的响应速度非常慢,而且一段时候后虚拟机网络又会中断,而实体机和其他虚拟机的网络连接又正常.
在我确定了问题不是在虚拟机后,我开始排查实体机系统的问题,发现问题出在Windows10的"投影"功能上
解决办法:
进入设置→投影到此电脑→把"当你同意时,部分Windows和Android设备可以投影到这台电脑"设为始终关闭
至于为什么把这个开了会对虚拟机联网产生影响
因为开了之后网络适配器里面会出现一个多余的本地连接,类似于这种
而这个适配器的IPv4处于未配置状态
将这个适配器的IPv4配置为自动获得IP地址和自动获得DNS服务器地址后,虚拟机能暂时联网,是的,暂时的,下次开机又会恢复原状
系统版本信息
最后,怒艹蓝蓝:bubble_funny:
@rnatlance203 在 C++中流重载使用方法 中说:
还有个问题,就是如果私有或者受保护成员是字符串或者数组的话怎么整
(史前大坑)
我发现我就是个人才,就算挖坑都不会把自己坑到
class blu {
protected:
char s[100];
char c[100];
char p;
public:
blu() {
strcpy(s, "fsk");
strcpy(c, "fkb");
p = 'z';
}
~blu() {
}
friend istream & operator>>(istream & in, blu &cu) {
in >> cu.s >> cu.c >> cu.p;
return in;
}
friend ostream & operator<<(ostream & out, blu &cu) {
out << cu.s << '\t' << cu.c << '\t' << cu.p;
return out;
}
};
这不是跟上面的整型变量一样了吗 成员函数都不用写了,爽死
@rnatlance203 在 C++中流重载使用方法 中说:
还可以拓展一下 虽然用了臭名昭著的goto,(但是)对于这种规模的东西也没必要上那些高端操作
其实就是偷懒
codelist_2.cpp// codelist_2.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include<iostream> #include<iomanip> #include<fstream> #include<string> #include<stdlib.h> #include<set> using namespace std; class type { protected: 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; } }; void readFile() { type type0; ifstream fkb("fkb.txt"); fkb >> type0; cout << type0 << endl; fkb.close(); } void writeFile() { type type0; ofstream fkb("fkb.txt"); cin >> type0; fkb << type0 << endl; fkb.close(); } int main() { int choice; MAIN: { system("cls"); cout << "1=read/2=write/0=exit" << endl; cin >> choice; if (choice == 1) goto READ; else { if (choice == 2) goto WRITE; else return 0; } } READ: { readFile(); system("pause"); goto MAIN; } WRITE:{ writeFile(); system("pause"); goto MAIN; } return 0; }
我是不知道我拓展了个什么玩意,我只知道大半夜很容易出错
函数void readFile()
只能读第一行而且会把所有数据连在一起,一眼就能看出;
函数void writeFile()
写入的时候会把所有数据都连在一起,再读取的话就gg;
修复的方法也很简单
//在class type里的插入流重载中--------------------
friend ostream & operator<<(ostream & out, blu &cu) {
out << cu.s << '\t' << cu.c << '\t' << cu.p;
return out;
}
//-----------------------------------------------
void readFile() {
char str[100];
ifstream fkb("fkb.txt");
while (fkb.getline(str, 100)) {
cout << str << endl;
}
}
void writeFile() {
type type0;
ofstream fkb("fkb.txt", ios::app);
cin >> type0;
fkb << type0 << endl;
fkb.close();
}
还可以拓展一下 虽然用了臭名昭著的goto,(但是)对于这种规模的东西也没必要上那些高端操作其实就是偷懒
codelist_2.cpp
// codelist_2.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//
#include<iostream>
#include<iomanip>
#include<fstream>
#include<string>
#include<stdlib.h>
#include<set>
using namespace std;
class type
{
protected:
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;
}
};
void readFile() {
type type0;
ifstream fkb("fkb.txt");
fkb >> type0;
cout << type0 << endl;
fkb.close();
}
void writeFile() {
type type0;
ofstream fkb("fkb.txt");
cin >> type0;
fkb << type0 << endl;
fkb.close();
}
int main() {
int choice;
MAIN: {
system("cls");
cout << "1=read/2=write/0=exit" << endl;
cin >> choice;
if (choice == 1) goto READ;
else
{
if (choice == 2) goto WRITE;
else return 0;
}
}
READ: {
readFile();
system("pause");
goto MAIN;
}
WRITE:{
writeFile();
system("pause");
goto MAIN;
}
return 0;
}