first write my blog under fc5 using mozilla

Sorry to write lately at night. Now it is 2007年2月6日星期二00:48:11. I don't want to use English to write my blog, but I have to do that. Because I haven't install any Chinese input software. For example Chinput. I will install it later. I haven't install FireFox successfully at this period of time. I don't know why. Tomorrow I must go to hospital to do a check for my eyes. Maybe I will do an operation on my eyes because of the low-eyesight. What a pity! I won't play computer for over a month. The only thing I can do is to get ready for the exam that will decide which university I will go to. Well, I don't care which one to go. My major will always be "Computer science and technology". The future is so far that I dont know how to go though. The last giving a screenshot for the exciting section. Oh, shit! When I enter "printscreen" button there isn't any response. Another problems to be soloved. Now I have to install some plugins on my mozilla web browser. The method of the configuration is the the same as FireFox. First I open http://addons.firefox.com, and to open the pages of plugins that are available. Do it according to the article then you will manage to do it well.

20081108评论: 另外一篇自我叙述强文,当时还不知道Firefox和Mozilla的关系,因为当时Firefox还未流行之前,Linux系统默认browser一般是Mozilla。当时的YY现在有了结果,computer science and technology没进,倒是进了computer and computer application。

 

开机后显示“can’t find the mbr”

red hat linux 开机后显示“can’t find the mbr”

昨天才安装好的fedora core 5 可能是因为不正常关机的原因造成了开机后现在"can not find the main boot record"  也就是我的开机引导程序grub出了问题。 于是我就想重新安装grub不就成了吗 。拿出我的超级启动盘上面有一个grub 输入"c" for a command line 然后

root (hd0,0)

具体的分区情况根据自己来定

setup (hd0)

然后在出现成功的信息中有一句是说我的grub缺少一个stage问题不过已经安装好 看来真的是grub的问题

20081108评论:GRUB成为了当时问题不断的关键。  

高二:最近研究的c语言的数个实例,很菜的哦

1:

#include "stdio.h" 
void main()
{
    printf("你好啊? 我靠!\n");
} 

2:

#include "stdio.h" 
void main()
{
    int a,b;
    a=485555;
    b=3825;
    printf("a=%d\n",a);
    printf("%d%d\n",a,b);
    printf("%d%8d\n",a,b);
} 

3:

#include "stdio.h" 
void main()
{
    int A,B,a,b;
    printf("输入一个数,然后按回车键");
    scanf("%d",&A);
    printf("输入一个数,然后按回车键");
    scanf("%d",&B);
    printf("先输入一个数,按空格键后,再输入第二个数,再按回车键");
    scanf("%d %d",&a,&b);
    printf("%d%8d\n",A,B);
    printf("%d%8d\n",a,b);
} 

4:

#include "stdio.h" 
#define RED 0
#define GREEN 1
#define BLUE 2
void main()
{
    int a=66;
    char c='A';
    double salary;
    char name[20]="张国强? 男? 28岁";
    salary=99.99;
    printf("%s\n",name);
    printf("工资 = %8.2f\n",salary);
    printf("\n%d,%x,%c\n",a,a,a);
    printf("%d,%x,%c\n\n",c,c,c);
    printf("红色%2d??? 绿色%2d??? 蓝色%2d\n",RED,GREEN,BLUE);
    printf("\n");
} 

5:

#include "stdio.h" 
#define RED 0
#define GREEN 1
#define BLUE 2 
void main()
{
    int a;
    char name[20]="张国强 男 28岁"; 
    a=sizeof(char);
    printf("size of char = %d\n",a);
    a=sizeof(int);
    printf("size of int = %d\n",a);
    a=sizeof(short int);
    printf("size of short int = %d\n",a);
    a=sizeof(float);
    printf("size of float = %d\n",a);
    a=sizeof(double);
    printf("size of double = %d\n",a); 
    a=sizeof RED;
    printf("\nsize of RED = %d\n",a);
    a=sizeof name;
    printf("size of \'name\' = %d\n",a);
    a=sizeof "file name";
    printf("size of \"file name\" = %d\n\n",a);
}

6:

#include "stdio.h" 
void main()
{
    printf("%d\n",'A');??? //字符A
    printf("%d\n",'\x41');? //字符A
    printf("\n%d\n",'\"');? //双引号
    printf("%d\n",'\'');?? //单引号
    printf("%d\n",'\\');?? //反斜线 
    printf("\n%d\n",'\a');? //响铃
    printf("%d\n",'\b');?? //退格
    printf("%d\n",'\t');??? //tab
    printf("%d\n",'\n');?? //回车换行
    printf("%d\n",'\v');?? //垂直制表
    printf("%d\n",'\f');?? //换页
    printf("%d\n\n",'\r');?? //回车
}

7:

#include "stdio.h" 
int a=66;
void main()
{
    int data[3] = {100,201,3300};
    static char str[ ]={'A','b',67,68,'\0'};
    auto char name[ ]="张国强 男 28岁";
    printf("%d,%d,%d\n",data[0],data[1],data[2]);
    printf("%s\n",str);
    printf("%s\n",name);
    printf("\n");
    a=sizeof data;
    printf("size of \'data\' = %d\n",a);
    a=sizeof str;
    printf("size of \'str\' = %d\n",a);
    a=sizeof name;
    printf("size of \'name\' = %d\n",a);
    printf("\n");
    printf("请输入你的身份证号码\n");
    gets(str);????????? //允许输入的数字间有空格
    printf("\n身份证号码: %s\n\n",str);
    puts(str); //和printf功能相同,
}

8:

#include "stdio.h" 
void main()
{
    double a,b,c;
    a=1155+112.3+11.4+20.5+10.2+5.2+10.1;
    b=a/110.3;
    c=2450*a;
    printf("\n总使用面积=%f 平方米",a);
    printf("利用率=%f %c\n\n",b*100,36);
    printf("售价=%f 元\n\n",c);
} 

就是这些了,才在研究所以都是一些简单的撒.

20081108评论:原来我是2006年开始学C语言的