自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 资源 (1)
  • 问答 (4)
  • 收藏
  • 关注

原创 课后习题4.3

/*Exercise 4.3 Displaying printable characters plus whitspace names */#include <stdio.h>#include <ctype.h>int main(void){    int i = 0 ;  char ch = 0;                       /* ...

2011-10-18 21:29:14 249

原创 课后习题4.2

/* isgraph();判断字符c是否为除空格外的可打印字符*/#include<stdio.h>#include<ctype.h>int main(){    int i = 0 ;    int j = 0 ;//判断打印出的个数    for(i = 0 ; i<=127 ; i++){        if(isgraph(i)){...

2011-10-18 19:34:54 201

原创 课后习题4.1

/*输入程序实现乘法表*/#include<stdio.h>/*主函数,也是C语言程序的入口*/int main(void){        int i  = 0 ;//定义循环变量i    int j  = 0 ;//定义循环变量j    int counter = 0 ;//定义输出表的数据        printf(" Please inpu...

2011-10-18 19:11:26 294

原创 循环实例子:do while;while,for,伪bool型

注意:在C语言中,变量必须声明在函数开始的地方  #include<stdio.h>#include<ctype.h>#include<stdlib.h>#include<time.h>#define true 1    #define false 0  int main(){        char an...

2011-10-17 23:57:06 144

原创 学习笔记习题3.4:goto 用法

#include<stdio.h>int main(){        char jx = 0 ;        double number1 = 0.0 ;        double number2 = 0.0 ;        char op = 0 ;    loop: printf(" \n Enter the calculation\n");// 定...

2011-10-15 19:15:45 123

原创 学习笔记习题3.3

#include<stdio.h>#define price 5 int main(){   // const int price = 5 ;    int shuliang = 0 ;            printf(" 请输入一个数值!");        scanf("%d" ,&shuliang);    if(shuliang &g...

2011-10-14 00:34:40 109

原创 学习笔记习题3.2

#include<stdio.h>int main340(){    int month = 0 ;    int day = 0 ;    int year = 0 ;    char *m[] ={" " ,"January", "February", "Marth", "April", "May", "June",

2011-10-14 00:19:03 89

原创 第三章 例子

#include<stdio.h>int main(){        double number1 = 0.0 ;    double number2 = 0.0 ;    char op = 0 ;    printf(" \n Enter the calculation\n");    scanf("  %lf , %c,  %lf",&num...

2011-10-13 21:51:17 317

原创 学习笔记习题2.3

/* programe exercise 2.3 */#include<stdio.h>int main(){        float price_a = 3.5f ;    float price_l = 5.5f ;    int shuliang = 0 ;    char Hhuaban = 'H' ;    char putongban = ...

2011-10-11 21:10:07 161

原创 C语言入门经典

/* programe  which rember user to input width and length in inches,then output the square of the room in square yard */#include<stdio.h>#include<math.h>int main(){    long length =...

2011-10-10 23:17:26 190

原创 学习笔记

/*write a programe,rember user to input a distanc in inches,the output the distance in yard foot,inches*//*one yard = 3 foot , one foot = 12 inches*/#include<stdio.h>int main(){    long ...

2011-10-10 22:49:47 111

原创 feodra 14 播放mp3

1、yum  install banshee;2、rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpmyum install gstreamer-plugins-bad gstreamer-ffmpeg gstreamer-plugins-ugly -y ...

2011-06-26 15:54:42 189

原创 rhel6.1 server 安装amule

在rhel6.1下安装amule2.2.61、安装wxWidgets-2.9.02、源码编译安装amule3、设置/etc/profile加入:export   LD_LIBRARY_PATH=/usr/local/lib

2011-06-17 19:51:35 112

原创 rhel6.1 server 安装transmission

不知道什么原因,在rhel server6.1上安装transmission总是有这样那样的错误,没办法不停降低transmission的版,在安装transmission1.8时顺利安装成功,没有高版本的各种部题,不知道什么原因。下载transmission1.8的tar.bz的源码解压,进入transimission目录,1、./configure2、make 3、make...

2011-06-16 22:16:38 122

原创 rhel6.1 配置本地更新源

1、在/etc/yum.repos.d/里建一个以.repo结尾的文件,写入相应的yum信息。    vi /etc/yum.repos.d/local.repo2、写入信息[local]name = yumbaseurl=file:///back/rhelenabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-G...

2011-06-14 18:37:29 109

原创 fedora安装jdk

fedora14最小化安装+gnome安装之后,安装编程环境。 1、安装gcc:       yum install gcc;yum检测依赖关系自动下载安装。2、安装jdk-6u-linux-i586.bin      将bin文件复制到要安装的目录,执行./jdk-6u22-linux-i586.bin安装完之后配置/etc/profile      加入:#java...

2010-11-14 10:53:03 181

jsp页面跳转方法——转自互联网

1. RequestDispatcher.forward()是在服务器端起作用,当使用forward()时,Servlet engine传递HTTP请求从当前的Servlet or JSP到另外一个Servlet,JSP 或普通HTML文件,也即你的form提交至a.jsp,在a.jsp用到了forward()重定向至b.jsp,此时form提交的所有信息在 b.jsp都可以获得,参数自动传递...

2010-04-09 21:21:06 92

各种实用小技巧

1.动态生成button       but1.type="button";//元素类型为button(text为输入框,checkbox为复选框)       but1.value=“”;//设置按钮的value值 即按钮显示的值       but1.onclick=function(){getbm(this)};//添加onclick事件,本方法为带参数的...

2010-03-22 17:01:51 90

成长之路 之servlet读取数据库数据 输出为XML时的乱码问题:

servlet读取数据库数据 输出为XML时的乱码问题:恩 首先:你的out对象是先获取的 获取完之后你才设置的字符集,矛盾你先吧response设置好之后 在进行写入操作所以要在PrintWriter out = response.getWriter();之前进行字符的设置工作  response.setContentType("text/xml; charset=gb2312");...

2010-03-19 15:50:37 95

java课件(济南大学版)

济南大学计算机系 java程序设计课件 教材为清华大学的java程序设计

2009-06-03

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除