BillyYu

2011年1月26日

Puzzle Fifteen练习 CS50

     摘要: 现在只能是将倒着的顺过来,还不知道如何初始化任意的可解的棋局及如何自动破解,欢迎大虾能提点下。  阅读全文

posted @ 2011-01-26 00:24 志华 阅读(1449) | 评论 (1)编辑 收藏

2011年1月17日

Vigenere加密 操练

     摘要: Vigenere加密,自己试了下。继续努力  阅读全文

posted @ 2011-01-17 23:26 志华 阅读(316) | 评论 (0)编辑 收藏

CAESAR加密 操练

     摘要: 根据自己的理解,操练了下C  阅读全文

posted @ 2011-01-17 23:23 志华 阅读(401) | 评论 (0)编辑 收藏

NEED HELP: dictionary crack DES encryption for CS50 assignment

     摘要: 暴力破解DES加密不如预期,有哪位高手帮忙解答一下?  阅读全文

posted @ 2011-01-17 23:19 志华 阅读(503) | 评论 (0)编辑 收藏

求助:HELLO WORLD用C时的怪状况

先贴一段代码
#include <stdio.h>
#include 
<cs50.h>
#include 
<stdlib.h>
#include 
<string.h>

int 
main(
int argc, char *argv[])    {
    printf(
"Input a string:");
    
char *text=GetString();

    
char *tmp=(char *)malloc(sizeof(char* strlen(text));
    memcpy(tmp,text,strlen(text));

    printf(
"%s\n%s\n",text,tmp);
    
return 0;
}

再贴奇怪的现象
zhihua@ThinkPad (~/cs50/2009fall/psets/2): make test
gcc -ggdb -std=c99 -Wall -Werror -Wformat=0    test.c  -lcs50 -lm -o test
zhihua@ThinkPad (~/cs50/2009fall/psets/2): ./test
Input a string:HELLO WORLD
HELLO WORLD
HELLO WORLD
zhihua@ThinkPad (~/cs50/2009fall/psets/2): ./test
Input a string:HELLO,WORLD
HELLO,WORLD
HELLO,WORLD
zhihua@ThinkPad (~/cs50/2009fall/psets/2): ./test
Input a string:HELLO, WORLD
HELLO, WORLD
HELLO, WORLDy
很奇怪这个‘y'是怎么出现的呢?
又测了一把,发现只要是输入12个字符长度的时候,这个‘y’就会出现。请高手相告

posted @ 2011-01-17 00:00 志华 阅读(1698) | 评论 (7)编辑 收藏

2011年1月14日

在Ubuntu上设置CS50环境

     摘要: 在Ubuntu里设置CS50里gcc的环境变量  阅读全文

posted @ 2011-01-14 21:48 志华 阅读(3626) | 评论 (1)编辑 收藏

2011年1月6日

取消Ubuntu开机自检硬盘

可能是我开始安装硬盘时分区有问题,现在每次开机自检时都会出问题,所以我想跳过这一步,使开机速度也快点。
可以修改/etc/fstab文件,将根目录下的分区<pass>由1修改为0

<file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            
/proc           proc    nodev,noexec,nosuid 0       0
/dev/sda4       /               ext2    errors=remount-ro 0       0
也可以在这个文件中开机mount分区

posted @ 2011-01-06 20:39 志华 阅读(1628) | 评论 (0)编辑 收藏

2010年12月30日

QQ在Ubuntu上崩溃的问题

当初还以为是QQ自身的问题,其实是QQ配置的问题。
#!/bin/sh
export GDK_NATIVE_WINDOWS
=true
cd 
/usr/share/tencent/qq/
.
/qq
添加GDK_NATIVE_WINDOWS环境变量后,QQ就不崩溃了。

PS:发现最近Google搜索都有问题了,越来越多的应用不能用,感慨该当如何是好啊!

posted @ 2010-12-30 21:17 志华 阅读(386) | 评论 (0)编辑 收藏

2010年12月20日

MySql扎记一

     摘要: MySql设置用户的方法  阅读全文

posted @ 2010-12-20 23:07 志华 阅读(236) | 评论 (0)编辑 收藏

2010年12月19日

Ubuntu 删除过时内核及无用文件

     摘要: Ubuntu 删除过时内核及无用文件  阅读全文

posted @ 2010-12-19 23:19 志华 阅读(670) | 评论 (0)编辑 收藏

仅列出标题  下一页
<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

导航

统计

常用链接

留言簿(1)

随笔分类

随笔档案

文章档案

搜索

最新评论

阅读排行榜

评论排行榜