`
TRAMP_ZZY
  • 浏览: 132559 次
社区版块
存档分类
最新评论
文章列表
http://www.cnblogs.com/fangjins/archive/2012/05/06/2485459.html

Ubuntu 安装 JDK 1.7

1. 下载 JDK 1.7 http://www.oracle.com/technetwork/java/javase/downloads/index.html 2.  cd /usr/lib 下,mkdir jvm。 3.  然后把下载到的java 7 压缩文件解压 tar zxvf jdk-7u4-linux-x64.tar.gz ,解压后得到的文件目录为jdk1.7.0_17 把它移动到/usr/lib/jvm/ sudo mv jdk1.7.0_17 /usr/lib/jvm 4.  执行安装命令 sudo update-alternatives --install /usr/ ...
System >> Preferences >> Startup ApplicationsClick the button: AddName: IBus daemonCommand: /usr/bin/ibus-daemon -dComment: start IBus daemon when Gnome starts
1. 确保系统安装 IBUS 。 2. 运行 sudo apt-get install ibus-googlepinyin。 3. enjoy it。

Linux C printf()

    博客分类:
  • C
#include <stdio.h>int main() {        int i = 117;    char a = 'm';    float m = 3.141592654;    printf("%d\n", i);     //以整型输出    printf("%c\n", i);    //以字符型输出    printf("%o\n", i);    //以八进制输出    printf("%x\n", i);    //以小写十六进制输出    printf("%X\n&q ...
1. 运行命令 apt-get install bulid-essential 2. 添加 环境变量 启动Eclipse.进入:Windows-->Preferences-->C/C++找到Environment。增加两个变量: CPLUS_INCLUDE_PATH: /usr/include/c++/4.1.3(gcc版本,用命令 gcc -v 查看) C_INCLUDE_PATH: /usr/include
1. pwd: 查看当前所在目录。2. cd :用于打开一个目录。    cd /:打开根目录。    cd /bin:打开根目录下的bin 目录。    cd ..:返回上一级目录。    cd ../..: 返回上两级目录。    cd usr/local/bin: 打开usr 目录下local 目录下的 bin 目录 ...

Java Mail 邮件发送

    博客分类:
  • Java
Java 发送邮件 EmailInfo.java import java.io.File;  public class EmailInfo {          private String mailhost;                             private String mailport="25";          private String username;                            private String password;          private String fromAddress;    ...
Java Jdbc-Odbc 连接MySQL数据库 1. 配置数据源 在win7 中打开 “数据源配置”    做好上面配置。 2. Java程序实现 package cn.edu.bjfu.tramp;   import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement;   public class TestDatabase {   /** * @param args */ public s ...
$this->load->library('email'); $config['protocol'] = 'smtp'; //发送给QQ用户,要显示中文用 'iso-8859-1' $config['charset'] = 'iso-8859-1'; //发送给163用户,要显示中文用'gb2312' //$config['charset'] = 'gb2312'; $config['mailpath'] = 'news/index'; $config['smtp_host'] = 'smtp.163.com'; $config ...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script type='text/javascript' src='../editor/cke ...

排序算法C++

    博客分类:
  • C++
#include <iostream> #include <string> using namespace std; #define MAXSIZE 30 typedef struct { int key; string name; }RedType; typedef struct SqList { RedType r [MAXSIZE+1]; int length; }SqList; //插入排序 /////////////////////////////////////////////////////////////////// //直接插入排序 时间复 ...

汉诺塔C++

    博客分类:
  • C++
int c = 0; void move(char x, int n, char z) { cout<<++c <<"," <<"第"<<n<<"个,从" <<x <<",移动到"<<z <<endl; } void Hanoi(int n, char A, char B, char C) { //当n=1时,直接移动到C if (n == 1) { move(A, 1, C); } else { ...

php文件下载

    博客分类:
  • php
<?php /**  Author ZhangZhaoyu  2012-9-13 下午2:28:18 **/ /** * * @param unknown_type $file_name * @param unknown_type $file_sub_path "xxx/xxx/" * */ function down_file($file_name, $file_sub_dir) { $file_path = $_SERVER["DOCUMENT_ROOT"] . $file_sub_dir . $file ...
Global site tag (gtag.js) - Google Analytics