上一页 1 ··· 3 4 5 6 7
摘要: http://jingyan.baidu.com/article/922554468a3466851648f419.html 阅读全文
posted @ 2015-06-13 21:55 夜歌乘年少 阅读(665) 评论(0) 推荐(0) 编辑
摘要: 杨一笑,号凌虚子,又号一瓢道人。生卒年不详,宋神宗时期人氏,自云春分时所生。其人高逸不凡,狷狂放达,学识博杂,行事怪僻,每多奇谈异论。时人以之为异,是以为作传以记之。[杨一笑传]杨一笑者,不详其姓字,亦不知其何许人也。其人常蓬头垢面,衣若悬鹑而怡然自得于市井之间,人异之而求其名,但自称杨一笑也。 尝... 阅读全文
posted @ 2015-06-07 13:37 夜歌乘年少 阅读(4778) 评论(0) 推荐(0) 编辑
摘要: //key is -3#includeint main(){ char s[]="wklv phvvdjh lv qrw wrr kdug wr"; for(int j=0;j<26;j++) { for(int i =0;;i++) { char c=s[i]; if(c=='\0')... 阅读全文
posted @ 2015-05-19 20:21 夜歌乘年少 阅读(585) 评论(0) 推荐(0) 编辑
摘要: //添加appinstallagent无效的方法http://jingyan.baidu.com/article/e52e3615a2b38f40c60c51d3.html 阅读全文
posted @ 2015-05-08 09:23 夜歌乘年少 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 今天手贱startx然后虚拟机就卡死了,再开输过密码就无限跳到登陆界面,其他账户可用。怀疑/home未挂载。解决方法:(alf改成你的用户名)$ cd ~$ sudo chown alf:alf.Xauthority然后再次输入:ls .Xauthority -l成功后显示如下:-rw-------... 阅读全文
posted @ 2015-05-06 18:35 夜歌乘年少 阅读(1760) 评论(1) 推荐(0) 编辑
摘要: //先导入gson到lib,add build path//2015年5月5日22:02:37package com.alfredsun.thread;import com.google.gson.JsonObject;public class test { public static void ... 阅读全文
posted @ 2015-05-05 22:03 夜歌乘年少 阅读(307) 评论(0) 推荐(0) 编辑
摘要: //2015年5月5日16:55:00//Mainpackage com.alfredsun.thread;public class Main { public static void main(String[] args) { // TODO Auto-generated method stub... 阅读全文
posted @ 2015-05-05 16:56 夜歌乘年少 阅读(267) 评论(0) 推荐(0) 编辑
摘要: //2015年5月2日19:40:02alf@alf-virtual-machine:~/Git/repository$ vim readme.txtalf@alf-virtual-machine:~/Git/repository$ git add readme.txtalf@alf-virtual... 阅读全文
posted @ 2015-05-02 19:44 夜歌乘年少 阅读(267) 评论(0) 推荐(0) 编辑
摘要: //文件操作//2015年4月30日15:40:21package com.alfredsun.first.main;import java.io.File;import java.io.IOException;public class test { public static void main(... 阅读全文
posted @ 2015-04-30 15:41 夜歌乘年少 阅读(177) 评论(0) 推荐(0) 编辑
摘要: //东软实训前,要把java 看完。//2015年4月29日21:44:13//list01package com.alfredsun.first.main;import java.util.ArrayList;import java.util.List;public class test { pu... 阅读全文
posted @ 2015-04-29 21:22 夜歌乘年少 阅读(198) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文
posted @ 2015-04-28 11:41 夜歌乘年少 阅读(282) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.IO;namespace 文件转换{ clas... 阅读全文
posted @ 2015-04-22 21:18 夜歌乘年少 阅读(237) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文
posted @ 2015-04-21 15:19 夜歌乘年少 阅读(219) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 课本习题{ public class Animal ... 阅读全文
posted @ 2015-04-21 12:31 夜歌乘年少 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://blog.csdn.net/sky___ice/article/details/11533321Form1.Designer.cs:////Form1// this.MouseDown += new System.Windows.Forms.MouseE... 阅读全文
posted @ 2015-04-17 19:27 夜歌乘年少 阅读(1248) 评论(0) 推荐(0) 编辑
摘要: //加入的拖拽属性失败,dropenter声明方法待查。using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using Sys... 阅读全文
posted @ 2015-04-14 14:58 夜歌乘年少 阅读(309) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include using namespace std;class CShape{public: virtual double Area() = 0;//pure virtual fun virtual void PrintInfo()= 0;};c... 阅读全文
posted @ 2015-04-13 20:48 夜歌乘年少 阅读(193) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;class Base{ public: int n; Base(int i):n(i) { cout<<"Base "<<n<<" constructed"<<endl; } ~Base(){ cout<<"Base "<<n... 阅读全文
posted @ 2015-04-13 14:35 夜歌乘年少 阅读(209) 评论(0) 推荐(0) 编辑
摘要: //人狗关系#includeusing namespace std;class Cmaster;class Cdog{ Cmaster *pm;};class Cmaster{ Cdog *dogs[10]; };int main(){ Cmaster alf;} 阅读全文
posted @ 2015-04-13 11:33 夜歌乘年少 阅读(164) 评论(0) 推荐(0) 编辑
摘要: //CanBaoYan。。//考虑到明年还要水蓝桥杯,还是学学c++把#includeusing namespace std;class CStudent{ private: string sName; int nAge; public: bool IsThreeGood(){cou... 阅读全文
posted @ 2015-04-11 22:30 夜歌乘年少 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 没做完,先搞答题了#include #include#includeint comp(const void *a,const void *b){ return *(int*)a-*(int*)b;}int main(){ //----part1 for(int i=100;i1000&&sumi... 阅读全文
posted @ 2015-04-10 20:24 夜歌乘年少 阅读(568) 评论(0) 推荐(0) 编辑
摘要: //主要是要找到f(n)=2*f(n-1)-1的规律.#include #include int f(int n){ if(n==0) return 2; else return 2*f(n-1)-1;}int main(){ printf("%d",f(10));} 阅读全文
posted @ 2015-04-10 17:33 夜歌乘年少 阅读(274) 评论(0) 推荐(0) 编辑
摘要: //迭代公式不是很理解,写出来算了。。#include #include int main(){ double x0,x1; int a; scanf("%d",&a); x0=a/2; x1=(x0+a/x0)/2; while(fabs(x0-x1)>=1e-... 阅读全文
posted @ 2015-04-10 17:12 夜歌乘年少 阅读(369) 评论(0) 推荐(0) 编辑
摘要: //C代码简直难看到家,求大神知道如何写出复用性好的,维护性强的代码。。。//格式错误了好几次,最后发现是are和数字之间多了个空格。。。。。。本来一直以为是最后的换行多了,费劲搞掉了。#include#includeint main(){ int n,temp; scanf("%d",&n); f... 阅读全文
posted @ 2015-04-10 16:51 夜歌乘年少 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 之前没做对的一道题,今天集中清理一下。//-------------------很水的题,主要是 %.2lf不能四舍五入,需要仅保留两位小数,用了丑陋的强制类型转换。。。//------------------#include#define PI 3.14int main(){ double r,h... 阅读全文
posted @ 2015-04-10 16:15 夜歌乘年少 阅读(661) 评论(0) 推荐(0) 编辑
摘要: 在c#中有两种方式可以输出多个字符其中的一种:static void Main() { string c=Console.ReadLine(); string d=Console.ReadLine(); Console.WriteLine(c+","+d); //用“+”连接符 }那么你说这样写很容... 阅读全文
posted @ 2015-03-24 20:55 夜歌乘年少 阅读(968) 评论(0) 推荐(0) 编辑
摘要: /*你看哪里有个小鸡呦1你看那里他有小鸡哟小鸡哔哔-bi-哟小鸡哔哔哔哔-bi-哟小鸡哔哔-bi-哟小鸡哔哔哔哔-bi-哟小鸡哔哔-bi-哟小鸡哔哔哔哔-bi-哟//---------------------------你看那里又有母鸡哟2你看那里又有母鸡哟母鸡咯咯咯咯咯咯-go-小鸡哔哔哔哔-bi... 阅读全文
posted @ 2015-02-08 23:04 夜歌乘年少 阅读(280) 评论(0) 推荐(0) 编辑
摘要: #include__int64 A[100]={0};__int64 B[100]={0};__int64 SUM[100]={0};int main(){int T ,i=0; __int64 a,b,sum; scanf("%d",&T); while (T--) { scanf("%I64d... 阅读全文
posted @ 2014-04-11 11:28 夜歌乘年少 阅读(183) 评论(0) 推荐(0) 编辑
摘要: #includeint main(){ int a[1010]={0}; //储存灯的开闭情况 int n,k,i,j; scanf("%d%d",&n,&k); for(i=1;i<=k;i++) { for(j=1;j<=n;j++) { if(j%i==0) a[j]=!a[j];... 阅读全文
posted @ 2013-11-10 16:01 夜歌乘年少 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 一道水题,让我看清基础我的基础是多么薄弱. 递归,数组清零,数组名/变量名重复层出不穷...路漫漫啊..........http://ncc.neuq.edu.cn/oj/problem.php?id=1012---------------------------------------------... 阅读全文
posted @ 2013-10-23 21:03 夜歌乘年少 阅读(517) 评论(1) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7