首页 > 其他 > 详细

我的剪贴板

时间:2018-10-11 17:44:04      阅读:164      评论:0      收藏:0      [点我收藏+]
//file headers start
#include<bits/stdc++.h>
using namespace std;

#define rep(i, _st, _ed) for(register int i = (_st); i <= (_ed); ++i)
void fileop(const char *s){
    char s2[15], s3[15]; //memset(s2, 0, sizeof s2);
    strcpy(s2, s), strcpy(s3, s);
    freopen(strcat(s2, ".in"), "r", stdin);
    freopen(strcat(s3, ".out"), "w", stdout);
}
int read(){
    int f = 1, ans = 0; char c = getchar();
    while(!isdigit(c)) {
        if(c == ‘-‘) f = -1;
        c = getchar();
    }
    while(isdigit(c)) {
        ans = ans * 10 + c - ‘0‘;
        c = getchar();
    }
    return ans * f;
}
void put(int num) { printf("%d\n", num); }
void testread() { while(1) { int k = read(); put(k); if(!k) break;}}
//file headers end

我的剪贴板

原文:https://www.cnblogs.com/Eroad/p/9773697.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!