字符串的各种操作
来源:互联网 发布:c语言实验室 编辑:程序博客网 时间:2024/06/05 06:42
3.编写一个控制台应用。输入一组整数,输出所有的奇数。 提示:使用字符串的Split函数4.输入一个由若干字符组成的字符串,输出其中的大写字母、小写字母、数字和其他字符的个数。 提示:使用ToCharArray函数using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class MyClass{ int[] m=new int[10]; public MyClass() { } public MyClass(int [] m1) { m=m1; } public int Exchange() { for (int i = 0; i < m.Length; i++) { if (m[i] / 2 != 0) return m[i]; } } ~MyClass() { }} class Program { static void Main(string[] args) { MyClass my = new MyClass(Console.ReadLine()); Console.WriteLine("所有的奇数为:"); int s=my.Exchange(); Console.WriteLine(s); Console.ReadLine(); } }}
0 0
- 字符串的各种操作
- 字符串的各种操作
- 字符串的各种操作
- 字符串的各种操作
- C#字符串的各种操作
- Java字符串的各种操作。
- 各种操作字符串的方法
- 有关String 字符串的各种操作大全
- 各种字符串操作函数的实现
- python中字符串的各种操作
- NSRange,判断字符串的各种操作~
- 对字符串操作的各种笔试题
- c#对字符串的各种操作
- Qt中对字符串的各种操作
- c#对字符串的各种操作
- 3.2字符串-各种字符串操作函数的实现
- C语言常用的各种操作字符串的函数
- 各种字符串操作---可运行
- RabbitMQ与SpringMVC集成并实现发送消息和接收消息(持久化)方案一
- 第一篇博文
- 增加网站收录的七个技法
- 安装GVIM
- 借鉴到自身网站的SEO之中
- 字符串的各种操作
- CentOS下载地址
- HDU 5050 Java 大数类+读入二进制
- gd变量声明
- C++函数指针实例详解(篇二)
- “此帐户并未得到从这个工作站登录的授权”问题
- iOS8注册通知 push、notification
- 猜数字游戏
- gd_t和bd_t 以及 *gd asm ("r8")