摘要: 1、密码校验 1 #!/bin.sh 2 3 echo "please input your passwd" 4 stty -echo #设置输入字符不回显 5 for i in 1 2 3 6 do 7 read passwd 8 if [ "123" = $passwd ] #注意空格 9 then10 echo "success"11 break;12 else13 echo "please input again!"14 fi15 done16 stty echo #设置输入字符回显整数比较-eq等于,如: 阅读全文
posted @ 2011-12-30 20:28 leealways87 阅读(453) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #define FALSE 0 4 #define TRUE 1 5 char chos; 6 int input; 7 8 struct node{ 9 int data; 10 int bf; 11 struct node *lchild; 12 struct node *rchild; 13 }; 14 15 typedef struct node *BST; 16 BST R = NULL; 17 18 void chose() 19 { ... 阅读全文
posted @ 2011-12-30 00:59 leealways87 阅读(259) 评论(0) 推荐(0) 编辑