摘要:
做题地址: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 & 阅读全文
摘要:
常用输入输出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 阅读全文