一、用户如何获得root权限:
1. 进入terminal
2. 输入sudo passwd root 并设置密码,提示要你输入两次密码,自己设定密码,一定要记住,然后切换到root使用
3. 输入 su root, 要求你输入密码,然后输入刚才设定的密码回车就进去了
4. 如果不想切换root但是想拥有大部分root权限,可以在使用命令时候加上sudo,
sudo mount挂载...
分类:
其他好文 时间:
2014-05-10 10:42:17
阅读次数:
305
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4720
用几何模板,求外接圆,再判断点在不在圆内
#include
#include
#include
const double esp = 1e-9;
//点
struct Point {
double x, y;
Point() {}
Point(double x...
分类:
其他好文 时间:
2014-05-10 08:52:52
阅读次数:
336
#include
#include
using namespace std;
class Point //定义坐标点类
{
public:
Point():x(0),y(0) {};
Point(double x0, double y0):x(x0),y(y0){};
void PrintPoint(); //输出点的信息
double getx()
{
...
分类:
其他好文 时间:
2014-05-07 16:14:20
阅读次数:
267
DescriptionYou are to write a program that has
to decide whether a given line segment intersects a given rectangle.An
example:line: start point: (4,9)...
分类:
其他好文 时间:
2014-05-07 13:55:45
阅读次数:
387
浮点数与定点数表示法是我们在计算机中常用的表示方法 所以必须要弄懂原理,特别是在FPGA里面,由于FPGA不能像在MCU一样直接用乘除法。
定点数
首先说一下简单的定点数,定点数是克服整数表示法不能表示实数的缺陷,那么我们就可以通过将实数乘上一个分数来实现,当然要是分数就是2^-i倍数,那么我们的定点数表示法就是精确的表示,但是很不幸我们自然界中的树并不是那么凑巧。所以定点数只能是近视表示实数...
分类:
其他好文 时间:
2014-05-07 08:43:42
阅读次数:
392
机房断电,所以oracle的datagard的从库需要重新启动:1 登录sqlplus启动,出现报错信息:SQL> STARTUP MOUNT;ORA-16032: parameter LOG_ARCHIVE_DEST_3 destination string cannot be translatedORA-07286: sksagdi: cannot obtain device informat...
分类:
数据库 时间:
2014-05-07 06:45:10
阅读次数:
610
1. 制作Debian Live USB。
2. 安装grub-pc
3. 挂载/和/boot
4. grub-install
5. mount --bind ...
......
题目:
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.
Return a deep copy of the list.
思路:
主要是深层复制的问题:
本题比较简...
分类:
其他好文 时间:
2014-05-07 02:44:38
阅读次数:
344
五一中间断了几天,开始继续。。。
1、
??
Copy List with Random Pointer
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.
Return a...
分类:
其他好文 时间:
2014-05-06 18:54:59
阅读次数:
386
今天打算做两道半平面交,一题卡太久了,心都碎了。。。#pragma
warning(disable:4996)#include #include #include #include #include #include
#include using namespace std;#define maxn...
分类:
其他好文 时间:
2014-05-06 12:27:57
阅读次数:
389