摘要:
实验三 String类的应用 实验目的 掌握类String类的使用; 学会使用JDK帮助文档; 实验内容 1.已知字符串:"this is a test of java".按要求执行以下操作:(要求源代码、结果截图。) 统计该字符串中字母s出现的次数。 统计该字符串中子串“is”出现的次数。 统计该 阅读全文
摘要:
实验过程 1. 写一个名为Rectangle的类表示矩形。其属性包括宽width、高height和颜色color,width和height都是double型的,而color则是String类型的。 package 面对对象Java开发程序设计; public class Rectangle { pu 阅读全文
摘要:
1.实验代码: #include<stdio.h>#include<stdlib.h>int main (){ FILE *fp; int i,x,n; int a[10]; scanf("%d",&n); if((fp=fopen("D:\WYH.txt","r+"))==NULL) { prin 阅读全文