Life is short, so we need program

每日一题, 积累从点滴开始

  :: 首页 :: 博问 :: 闪存 :: :: 联系 :: :: 管理 ::

2012年8月10日

摘要: 做题地址:http://acm.hdu.edu.cn/diy/contest_login.php?cid=16582杭电1089-1096http://acm.hdu.edu.cn/listproblem.php?vol=1主要考点是输入输出,以下全部是C代码。HDU1089#include <stdio.h>int main(){ int a, b; while(scanf("%d%d", &a, &b) != EOF) { printf("%d\n", a+b); } return 0;}HDU1090#include & 阅读全文
posted @ 2012-08-10 18:53 CDU_ICPC 阅读(226) 评论(0) 推荐(0) 编辑

摘要: 常用输入输出1.C语言scanf, printf; getc, putc; getchar, putchar; gets, puts;fgets, fputs;fgetc, fputc; fscanf, fprintf具体用法查c库函数。2.C++cin,coutcin后面还可以跟格式,比如:cin>>hex>>变量3.JAVAScanner sc = new Scanner(System.in);int i = sc.nextInt(); Scanner Std = new Scanner(); //Standard input streamprivate stati 阅读全文
posted @ 2012-08-10 14:03 CDU_ICPC 阅读(217) 评论(0) 推荐(0) 编辑