摘要:
实验三 String类的应用 一、实验目的 (1) 掌握类String类的使用; (2) 学会使用JDK帮助文档; 二、实验内容 1.已知字符串:"this is a test of java".按要求执行以下操作:(要求源代码、结果截图。) ① 统计该字符串中字母s出现的次数。 ② 统计该字符串中 阅读全文
摘要:
#include <stdio.h> int main(){ int N, i; long X; long num; scanf("%d%ld", &N, &X); for(i=0; i<N; i++){ scanf("%ld", &num); if(num==X){ printf("%d\n", 阅读全文