最近在向java发力,学习学习了下.看到了多态这一节,书中有个比较好的例子,所以就准备写下来,记录下来: package dynamic_binding01; public class dynamic_binding01 { public static void main(String[] args) { // TODO Auto-generated method stub Super super1=new Sub(); System.out.println("sup.field="+
第一题,很水,直接上代码 #include <iostream> #include <fstream> #include <cstdlib> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ using namespace std; ifstream fin("coin.in");