搜索资源列表
lab3_1
- a) 分别以左和右对齐方式输出整数,域宽为12; b) 以八进制、十进制、十六进制输入/输出整数; c) 实现浮点数的指数格式和定点格式的输入/输出,并指定精度,按实际情况进行调整,直到满意为止; d) 把字符串读入字符型数组变量中,从键盘输入,要求输入串的空格也全部读入,以回车换行符结束; -a) to the left and right, respectively, the alignment of the output integer, the domain width
StringXChange
- 字符串倒置示例程序,使用三种方法实现,递归以及Array函数。-String inversion example, the use of three methods to achieve, as well as the Array function recursive.
ag
- 这个双重循环完成按字母顺序排序的工作。在外层循环中把字符数组cs[i]中的国名字符串拷贝到数组st中,并把下标i赋予P。进入内层循环后,把st与cs[i]以后的各字符串作比较,若有比st小者则把该字符串拷贝到st中,并把其下标赋予p。内循环完成后如p不等于i说明有比cs[i]更小的字符串出现,因此交换cs[i]和st的内容。至此已确定了数组cs的第i号元素的排序值。然后输出该字符串。在外循环全部完成之后即完成全部排序和输出。-The double circle in alphabetical o
Csharp_Lv
- C#调用LV做成的DLL 主要为Boolean、数值、字符串、路径、数组、VISA设置名称 Boolean可以用数值代替,false:0 ture:1 路径及VISA设备名称可以改为字符串型。 注意:可以将Lv的输出字符串定义为32位。 在定义Labview的函数时,都使用Standard Calling Conventions。值型的Bass by都设置为Value,字符串型设置为C String Pointer。 在定义函数参数时,注意Labview与C#的数据类型必
StringAndArrayDemo
- C# 字符串是使用 string 关键字声明的一个字符数组。字符串是使用引号声明的-C# string is to use the keyword string, a character array statement. String is to use quotation marks statement
char-string
- 运用简单的方法,实现C#中字符数组转字符串数组-Simple method used to achieve the character array to a C# string array
CryptoHelper
- utility for encrypting some byte array using a string password
StringToByteArray
- This C# Software converts a String to a Byte Array and Displays it to Command Line
xifan-assistant
- 一个个人类库,包括字符串操作类、PC控制类、Object数组操作类等等。-A personal library, including string manipulation class, PC control class, Object class array of operations and so on.
hdu1002
- 杭电1002题 A+B Problem 2,做了挺久才做出来的,主要原理是用字符串数组来记录超长数字,再用加法原理进行计算就ok。-Hang Power 1002 title A+ B Problem 2, made out quite long to do, the main principle is to record the long string array of numbers, then the calculation of addition to ok.
Palindromes-judgement-CSharp
- 基于C#+winform开发的“回文判定”程序:对于一个从键盘输入的字符串,判断其是否为回文。回文即正反序相同。如“abba”是回文,而“abab”不是回文。此判定程序包含了三种判定方法:1、根据数组元素;2、利用栈先进后出,队列先进先出的特点3、分段检测。(已给出完整的代码注释)-Based on C#+ winform development "palindromes judgement" program: for a keyboard input from the string, deci
type-conversion
- 字符串、char数组、byte数组等类型之间的转换,以及与图片的转换-String char array byte array type etc conversion between, and pictures of the conversion
CSharp
- 1.C#和.NET Framework简介 Z.C#基础语法 3.面向对象概念和C#类的概念 4.类成员详解 5.创建和自定义类型 6.方法、委托、事件的创建和使用 7.常用类讲解(string,数组,集合,泛型)-1.C# and. NET Framework Introduction to the basic syntax of ZC# 3. Oriented objects concept and the concept of the C# class 4 clas
regeidtges
- C#演示注册表的读写操作,程序中引入了using Microsoft.Win32 主要是对注册表的操作要用到Registry和RegistryKey两个类,写入注册表:以可写的方式打开SOFTWARE子键,依次创建ChoseColor子键和Color子键。读取注册表键值:遍历由指定子键拥有的键值名称组成的字符串数组。同时本程序还可将窗体的颜色设置为用户选择的颜色。-C# demos registry read and write operations, the program introduce
regeidtges
- C#演示注册表的读写操作,程序中引入了using Microsoft.Win32 主要是对注册表的操作要用到Registry和RegistryKey两个类,写入注册表:以可写的方式打开SOFTWARE子键,依次创建ChoseColor子键和Color子键。读取注册表键值:遍历由指定子键拥有的键值名称组成的字符串数组。同时本程序还可将窗体的颜色设置为用户选择的颜色。-C# demo registry read and write operations, the program introduced
Mime
- C#mime操作类 这个类负责分析一个字符串数组的行-This class is responsible for parsing a string array of lines
OperationTXT-3
- 首先通过File.ReadAllLines()方法读入文本文档中内容并返回字符串数组contents,这样每行数据就成为了这个字符串数组contents的一个元素,再利用split()方法将每一个元素以空格或制表符分割,返回字符串数组,这样一行数据又被返回了3个字符串放入字符串数组中,通过Convert.ToDouble()方法将其转化为double类型并计算。创建一个StringBuilder数据类型将每行的字符串添加进去,转换为string后,最后用File.WriteAllText方法写入
OperationTXT-4
- 这一篇与上一篇比较类似,目的相同,不同之处为读入到了list中,list泛型集合可以当作可变长数组使用。通过StreamReader创建一个流sr,然后通过一个while循环将读得的每行数据放入字符串类型的list中,之后对每个list分割,并返回一个字符串数组,这个字符串数组就可以通过转化为double来计算了,计算完成后可以通过放入sb中统一写入到文本文档中。-This is a comparison similar to the previous one, the same purpose
OperationTXT-1
- 上述代码中用到File.ReadAllLines()函数,适用于读取较小的文本文档,一次性将全部文本文档内容放入字符串数组contents中,每一行作为contents这个字符串数组的一个元素,下面的循环实现了对contents的遍历,遍历的过程中通过split函数对每个元素按空格或者是制表符进行分割,contents的每个元素被按照空格或制表符分割后返回一个新的字符串数组,放入到新定义的strNew这个字符串数组中,之后输出。 下一步要计算总价格。-The code used in
string
- 从键盘输入一串字符,将它们存放在字符数组中(形成一个字符串) 然后对字符数组中的各个字符排序-Enter a string of characters the keyboard, they are stored in the array of characters (the formation of a string) and then sort the array of characters in each character
