这里我们使用 Oracle VM VirtualBox 虚拟机。如果你使用 Windows 系统,你可以直接下载[链接](https://download.virtualbo%20%09%09x.org/virtualbox/6.1.4/VirtualBox-6.1.4-136177-Win.exe),下载完成后按照指示完成安装。如果你使用 Mac OS 系统,你可以直接下载[链接](https://download.virtualbo%20%09%09x.org/virtualbox/6.1.4/VirtualBox-6.1.4-136177-OSX.dmg),下载完成后按照指示完成安装。如果你使用 Linux 内核的系统,你可以查看[链接](https://www.virtualbox.org/w%20%09%09iki/Linux_Downloads),找到你使用的系统,按照对应的指示完成安装。
#include<cmath>
#include<eigen3/Eigen/Core>
#include<eigen3/Eigen/Dense>
#include<iostream>
#include<math.h>
int main(){Eigen::Vector3d p(2,1,1);std::cout<<"please put in the rotation angelindegrees"<<std::endl;double angleIndegrees;double angleInradians;std::cin>>angleIndegrees;angleInradians=(angleIndegrees*M_PI)/180;std::cout<<"please put in the moving point";int x,y;std::cin>>x>>y;Eigen::Matrix3d matrix1,matrix2;matrix1<<cos(angleIndegrees),-sin(angleIndegrees),0,sin(angleIndegrees),cos(angleIndegrees),0,0,0,1;matrix2<<1,0,x,0,1,y,0,0,1;std::cout<<matrix2*(matrix1*p)<<std::endl;}
一、改表
首先将mysql数据库中的user表中的数据看一下 select host,user from mysql.user; 可以看到root用户只允许localhost登录 我们需要更改一下 update mysql.user set host‘%’ where user‘root’; 更改好了之后再次查看发现已经变了,但是需要注意的是这种方…