# include using namespace std; int max(int i, int j){ // 定义max()函数 if (i>=j) return i; else return j; } int main(void){ //定义main()函数 cout<>i>>j; //从键盘上输入变量的值 cout<<"最大数是:"<<max(i, j)<<'\n'; //输出提示信息和结果 return 0; }
# include using namespace std; int max(int i, int j){ // 定义max()函数 if (i>=j) return i; else return j; } int main(void){ //定义main()函数 cout<>i>>j; //从键盘上输入变量的值 cout<<"最大数是:"<<max(i, j)<<'\n'; //输出提示信息和结果 return 0; }
下面这段代码是网上抄来的,相信有人也找到过这段,实际上真正运行的时候就会发现其实是有问题的,我把它修改了下,能正常读写了。 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Runtime.I
Linux 无法使用userdel 删除用户和组的解决方案
简述:
今天在看书的时候,看到有个实例,手痒痒的跟着做了起来。。。但是,出现问题了。。测试的用户和组不能删除。。
情况:
一般我们移除,都是先把用户从组中删除,再依次把组干掉的。。。但是问题出现了。。
rootcrper-Aspire-5755G:/home/crper# userdel -r test1
userdel: user test1 is currently used by process 1
rootcrper-A