码迷,mamicode.com
首页 >  
搜索关键字:自用    ( 529个结果
求和平均值(网上找的,仅自用,非原创)
using System;using System.Collections;class Sum_Average{ public static void Main() { int sum=0; float average=0.0f; Random r=new Random (); ArrayList ...
分类:其他好文   时间:2018-04-07 16:14:44    阅读次数:174
递归方法求阶乘字符串反转(网上找的,仅自用,非原创)
using System;class UsingRecursive{ static void Main() { int intResult; string strResult; UsingRecursive myURec=new UsingRecursive (); intResult=myURec ...
分类:其他好文   时间:2018-04-07 16:13:00    阅读次数:114
实现关机-危险勿试(网上找的,仅自用,非原创)
using System;using System.Runtime.InteropServices; class shoutdown{ [StructLayout(LayoutKind.Sequential, Pack=1)] internal struct TokPriv1Luid { publi ...
分类:其他好文   时间:2018-04-07 16:12:26    阅读次数:139
以二进制读取文本文件(网上找的,仅自用,非原创)
using System; using System.IO; public class FileApp { public static void Main() { // 在当前目录创建一个文件myfile.txt,对该文件具有读写权限 FileStream fsMyfile = new FileSt ...
分类:其他好文   时间:2018-04-07 16:10:49    阅读次数:156
验证概率(网上找的,仅自用,非原创)
using System;namespace luntan{ class Class1 { static void Main(string[] args) { int x=0; int[] Sum1=new int[1000]; for(int i=1;i<10;i++) { for(int j=1 ...
分类:其他好文   时间:2018-04-07 16:10:41    阅读次数:117
利用列表排n个数的序(网上找的,仅自用,非原创)
using System;using System.Collections ;class ArraySort{ static void Main() { ArrayList myArrayList=new ArrayList (); Console.WriteLine ("你想排几个数的序:"); ...
分类:其他好文   时间:2018-04-07 16:10:35    阅读次数:156
求平均成绩使用二维数组(网上找的,仅自用,非原创)
using System;class AverageofScore{ public static void Main() { int[,] student_score=new int [4,5]; int temp; for(int i=0;i<=3;i++) { temp=0; for(int j ...
分类:编程语言   时间:2018-04-07 16:10:13    阅读次数:165
choosesubject(网上找的,仅自用,非原创)
using System;class ChooseSubject{ static void Main() { int i; string str; Console.WriteLine ("Please choose your favorite subjects:-1 is quit."); Cons ...
分类:其他好文   时间:2018-04-07 16:09:59    阅读次数:161
输出随机数(网上找的,仅自用,非原创)
using System;namespace StaticConstructor{ class RandomNumberGenerator { private static Random randomNumber; static RandomNumberGenerator() { randomNum ...
分类:其他好文   时间:2018-04-07 16:09:35    阅读次数:147
完全数(网上找的,仅自用,非原创)
for (int i = 2; i <= 1000; i++) { int sum = 0; string s = ""; for (int j = 1; j < i; j++) { if (i % j == 0) { sum += j; s = s + j + "\t"; } } if (sum ...
分类:其他好文   时间:2018-04-07 16:09:13    阅读次数:100
529条   上一页 1 ... 21 22 23 24 25 ... 53 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!