摘要: 2007-08-16 00:13#include<iostream>using namespace std;int main(){int n,m;unsigned int mask = 32768;cin>>n;for(int i=0;i<=15;i++){m = (n&mask);if(m>0)cout<<"1";elsecout<&... 阅读全文
posted @ 2010-02-03 10:10 玄魂 阅读(3057) 评论(0) 推荐(0) 编辑
摘要: 问题:今有邮箱150个,按序编号。全部关闭。邮递员从二号开始一次将2的倍数的邮箱打开,然后数倍数为3的邮箱,已经打开的关闭,已关闭的打开。依次操作倍数为4,5,6,。。。。。。150为止。输出最后关闭的邮箱号码。 阅读全文
posted @ 2010-02-03 10:09 玄魂 阅读(479) 评论(0) 推荐(0) 编辑
摘要: 2007-09-12 11:14#include<iostream>using namespace std;#include <math.h>void outPrime(int n){int *numberAll = new int[n];for(int i=1;i<n;i++)numberAll[i] = i+1;for(int m=1;m<sqrt(n);m... 阅读全文
posted @ 2010-02-03 10:07 玄魂 阅读(2015) 评论(1) 推荐(0) 编辑
摘要: 2007-09-13 21:05//接收一个字符串,给每个单词加上双引号,将其中的"no"替换成"yes"// 不区分大小写using System;namespace ConsoleApplication1{/// <summary>/// Class1 的摘要说明。/// </summary>class Class1{ /// <summary> /// 应... 阅读全文
posted @ 2010-02-03 10:06 玄魂 阅读(450) 评论(0) 推荐(0) 编辑
摘要: 2007-09-12 16:42/*实现最大为300位的大整数加法,输入数3位一节,以‘,’隔开,以‘b’结尾。如123,456b*/#include<iostream>#include<string>using namespace std;int main(){int a[101];int b[101];for(int l=... 阅读全文
posted @ 2010-02-03 10:05 玄魂 阅读(2282) 评论(0) 推荐(0) 编辑
摘要: 2007-09-15 17:26//要求连续输入五个大写字母,若有错误,提示信息并重新输入using System;class BigT{static void Main(){ Console.WriteLine("请输入五个大写字母"); String s = Console.ReadLine(); char []array = s.ToCharArray(); if(array.Length&... 阅读全文
posted @ 2010-02-03 10:04 玄魂 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 2007-09-25 14:57using System;namespace BubbleSorter{/// <summary>/// Class1 的摘要说明。/// </summary>public class BubbleSorter{ public void Sort(int[] list) { int i,j,temp; bool done = false; j... 阅读全文
posted @ 2010-02-03 10:03 玄魂 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 2007-11-22 16:05using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using System.Net;namespace WindowsApplication2{/// &... 阅读全文
posted @ 2010-02-03 10:02 玄魂 阅读(1397) 评论(0) 推荐(0) 编辑
摘要: 2007-11-22 16:07using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using System.Net.Sockets;using System.Net;using Syst... 阅读全文
posted @ 2010-02-03 09:59 玄魂 阅读(1690) 评论(0) 推荐(0) 编辑
摘要: 2007-11-22 16:10//广播数据包,服务端using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using System.Net.Sockets;using System.Net... 阅读全文
posted @ 2010-02-03 09:57 玄魂 阅读(2627) 评论(0) 推荐(0) 编辑