摘要: 現(xiàn)在只能是將倒著的順過來,還不知道如何初始化任意的可解的棋局及如何自動破解,歡迎大蝦能提點下。
閱讀全文
摘要: Vigenere加密,自己試了下。繼續(xù)努力
閱讀全文
摘要: 暴力破解DES加密不如預期,有哪位高手幫忙解答一下?
閱讀全文
先貼一段代碼
#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;
}
再貼奇怪的現(xiàn)象
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'是怎么出現(xiàn)的呢?
又測了一把,發(fā)現(xiàn)只要是輸入12個字符長度的時候,這個‘y’就會出現(xiàn)。請高手相告
摘要: 在Ubuntu里設置CS50里gcc的環(huán)境變量
閱讀全文
可能是我開始安裝硬盤時分區(qū)有問題,現(xiàn)在每次開機自檢時都會出問題,所以我想跳過這一步,使開機速度也快點。
可以修改/etc/fstab文件,將根目錄下的分區(qū)<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分區(qū)
當初還以為是QQ自身的問題,其實是QQ配置的問題。
#!/bin/sh
export GDK_NATIVE_WINDOWS=true
cd /usr/share/tencent/qq/
./qq
添加GDK_NATIVE_WINDOWS環(huán)境變量后,QQ就不崩潰了。
PS:發(fā)現(xiàn)最近Google搜索都有問題了,越來越多的應用不能用,感慨該當如何是好啊!