摘要:
using System; using System.IO; public class FileApp { public static void Main() { // 在当前目录创建一个文件myfile.txt,对该文件具有读写权限 FileStream fsMyfile = new FileSt 阅读全文
posted @ 2018-04-07 14:57
v123ve
阅读(194)
评论(0)
推荐(0)
摘要:
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 阅读全文
posted @ 2018-04-07 14:56
v123ve
阅读(117)
评论(0)
推荐(0)
摘要:
using System;namespace StaticConstructor{ class RandomNumberGenerator { private static Random randomNumber; static RandomNumberGenerator() { randomNum 阅读全文
posted @ 2018-04-07 14:55
v123ve
阅读(137)
评论(0)
推荐(0)
摘要:
using System;using System.Runtime.InteropServices; class shoutdown{ [StructLayout(LayoutKind.Sequential, Pack=1)] internal struct TokPriv1Luid { publi 阅读全文
posted @ 2018-04-07 14:54
v123ve
阅读(141)
评论(0)
推荐(0)
摘要:
using System;class My{ static void Main() { int a,b=1; int n; Console.WriteLine("请输入所要求这个数的次方数:"); n=int.Parse(Console.ReadLine());//n是次方 Console.Writ 阅读全文
posted @ 2018-04-07 14:54
v123ve
阅读(138)
评论(0)
推荐(0)
摘要:
using System;using System.Diagnostics;using System.Threading; public class CpuLoadInfo{ // auxiliary print methods private static void Say(string txt) 阅读全文
posted @ 2018-04-07 14:53
v123ve
阅读(374)
评论(0)
推荐(0)
摘要:
using System;class Test{ public static void Main() { Console.WriteLine ("该程序将求出三阶行列式的值:"); int[,] A=new int [3,3]; for(int i=0;i<3;i++) { for(int j=0; 阅读全文
posted @ 2018-04-07 14:52
v123ve
阅读(304)
评论(0)
推荐(0)
摘要:
using System;namespace Other_Features{ public class Prime { public int number; public Prime(int n) { if(isPrime(n)) this.number=n; else throw new Exce 阅读全文
posted @ 2018-04-07 14:52
v123ve
阅读(137)
评论(0)
推荐(0)
摘要:
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 阅读全文
posted @ 2018-04-07 14:51
v123ve
阅读(233)
评论(0)
推荐(0)
摘要:
using System;using System.Collections;class Sum_Average{ public static void Main() { int sum=0; float average=0.0f; Random r=new Random (); ArrayList 阅读全文
posted @ 2018-04-07 14:50
v123ve
阅读(298)
评论(0)
推荐(0)

浙公网安备 33010602011771号