- 博客(8)
- 资源 (3)
- 收藏
- 关注
原创 linux 下新建目录自动加锁的解决办法
在linux下,当我们将新下载的tar文件解压到一个新建文件或目录下,解压的文件会有自动上锁的情况,这个问题的解决方法就是用 sudo chmod 777 -R 文件或目录
2013-11-22 23:34:42 3052
原创 C语言的 “随机数” 使用技巧
#include #include #include int main(){ /*********下面的三行是初始化种子* 键入不同的值,产生的随机数不同* *********************/ //unsigned seed; //printf("Enter a seed:"); //scanf("%u",&seed)
2013-11-21 18:56:14 1010
原创 c++ cin.get()的用法小结
#include int main(){/****************** 1.cin.getline()与他相比,比较粗一些 举例:先定义字符数组 char a[20]; 然后 cin.getline(a,20);即把数组的内容 读入进来。它通过换行符来确定行尾,但不保存 换行符 2.cin.get()则将换行符留在输入队列中 举例:假设我们两次
2013-11-21 18:46:43 17038 2
原创 uva 10071
#include#includeusing namespace std;int main(){ int a,b; while(cin>>a>>b){ if((a>=(-100)&&(a=0)&&(b<=200))) cout<<a*b*2<<endl; } return 0;}
2013-11-09 09:58:43 802
原创 uva 10055
#include #include//#includeusing namespace std;int main(){ // ifstream cin("in.txt"); long long a,b; while(cin>>a>>b) { if(a>b) cout<<a-b<<endl; else cout<<b-a<<e
2013-11-09 09:48:43 776
原创 uva 10189
#include #include #include #include using namespace std;int m,n,i,j;int res[102][102];char str[102][102];int main(){ // ifstream cin("in.txt"); int count=0; while(cin>>m>>n){ i
2013-11-09 09:46:28 935
原创 uva 10038
#include #include #include #include using namespace std;#define MAXN 3010int data[3010];int flag[3010];int main(){ //freopen("in.txt","r",stdin); int i,n; while(cin>>n){ for(i=0;i
2013-11-09 09:43:29 850
原创 uva 488
/************************This is a problem that exams your understand for "for control",i think2013/10/12yuzibode@126.com**********************/#include #include using namespace std;int main(
2013-11-09 09:40:15 1179
slang资源包
2017-06-07
unix/linux编程实践:随书代码
2016-07-05
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人