- 博客(21)
- 资源 (5)
- 收藏
- 关注
原创 一个日记本的程序
用户类:package dairy.bean;public class User { private String name; private String gender; private int age; public String getName() { return name; } public void setName(String name) { this.n
2014-03-28 14:33:00 676
原创 数据结构c语言学习
学习数据结构练习:定义头文件:def.h#include #include #include #include #include #include #include #include #include #define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1//#
2014-03-26 17:13:08 487
原创 java网络编程
一个回显从标准输入的程序package test;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;public class test { public String echo(String msg){ return "echo:"+msg; }
2014-03-21 16:21:07 427
原创 C语言复习
程序通常以文件的方式存放在磁盘上,运行程序需要将程序装入内存,可执行文件中的主要部分是二进制编码的机器指令和数据,C语言需要通过编译器的编译成obj文件,然后通过链接程序链接库文件生成可执行程序。编程:从键盘输入两个整数,输出最大者#include int main(){ int max(int,int); int a,b,m; scanf("%d%d",&a,&b);
2014-03-20 21:34:34 470
原创 数据结构java学习笔记
算法时间复杂度:简单排序算法示例:算法思想:在长度为n的数组中寻找最小的数据放到数组开头a[0],然后在剩下的n-1个数据中寻找最小的放到a[1],依次递归。代码:package selectSort;import java.util.Random;public class selectSort { public static void main(String[] ar
2014-03-17 17:05:42 450
转载 json解析
什么是JSON:JSON即JavaScript Object Natation, 它是一种轻量级的数据交换格式, 与XML一样, 是广泛被采用的客户端和服务端交互的解决方案.JSON对象: JSON中对象(Object)以"{"开始, 以"}"结束. 对象中的每一个item都是一个key-value对, 表现为"key:value"的形式, key-value对之间使用逗号分隔.
2014-03-03 11:12:23 406
原创 表格布局器练习--计算器
例子中的一个计算器程序:xml布局文件<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="v
2014-02-24 16:26:57 1407 1
转载 android布局管理器学习
http://m.blog.csdn.net/blog/u010411742/17347259父容器与本容器属性 : android_layout...属性是本容器的属性, 定义在这个布局管理器的LayoutParams内部类中, 每个布局管理器都有一个LayoutParams内部类, android:... 是父容器用来控制子组件的属性. 如android:layout_
2014-02-24 15:21:02 756
转载 service的生命周期
有了 Service 类我们如何启动他呢,有两种方法: • Context.startService() • Context.bindService() 1. 在同一个应用任何地方调用 startService() 方法就能启动 Service 了,然后系统会回调 Service 类的 onCreate() 以及 onStart() 方法。这
2014-02-24 09:24:51 499
原创 MYSQL数据库的学习
MYSQL数据库的使用:安装教程:http://jingyan.baidu.com/article/f79b7cb3a25e759144023ee7.html使用:create database library; 创建library数据库show databases;查看所有可用的数据库use library;选择library数据库show tables;查看li
2014-02-23 22:21:27 441
转载 Dx trouble writing output: already prepared 解决办法
今天终于把ffmpeg加上了各个第三方库,有x264、xvid、ogg、speex等等的,在编译的时候遇到很多问题,因为还要继续其他工作所以等以后再抽空整理一下,这里先记录一下另外的错误。在编译完所有第三方库之后满怀兴奋的心情,但是在准备调试时遇到下面的异常:Dx trouble writing output: already preparedUnable to e
2014-02-23 14:52:21 5453
转载 AndroidManifest.xml文件详解
参考http://blog.chinaunix.net/uid-9185047-id-3460344.html
2014-02-23 14:11:30 337
原创 android资源的管理和使用
简单介绍使用图片资源和声音资源1、图片资源的使用xml文件方式:main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_paren
2014-02-23 13:03:24 434
原创 android应用程序的目录结构
android目录结构如下图:首先是android的库下面的private libraries是新加入的库,一般Private libs是本项目用的,不用导出到引用项目中去,具体设置是在order and export中设置.但是private libs应该是跟libs dependency一样src目录:项目的源代码gen目录:adt自动生成的,该目录下的R.ja
2014-02-23 11:19:25 507
转载 技术博客
我现在订阅 High Scalability http://highscalability.com/blog/ http://feeds.feedburner.com/HighScalability MySQLOPS 数据库与运维自动化技术分享 http://www.mysqlops.com http://www.mysqlops.com/feed/
2013-12-03 22:07:02 445
原创 鸟哥linux-基础篇学习
写在前面:本文主要以ubuntu来学习linux,核心版本为3.2.0-23-generic-pae(uname -r).linux的窗口管理程序有GNOME和KDE两个,X windows的操作类似windows自己摸索下就会啦。简单!!!X windows和文本模式的切换:【Ctrl】+【Alt】+【F1】~【F6】,六个终端接口,命名为tty1~tty6,tty7是图形接口
2013-07-28 17:31:19 466
原创 A - Sum of Consecutive Prime Numbers
DescriptionSome positive integers can be represented by a sum of one or more consecutive prime numbers. How many such representations does a given positive integer have? For example, the integer
2013-04-12 22:35:24 516
原创 递归--n阶勒让德多项式的值
#include int main(){ double pfunc(double x,int n); double xparam; int n; std::cout<<"input the parameter x and nubmer n: "; std::cin>>xparam>>n; std::cout<<"the result of the function is:
2013-04-12 15:25:25 599
转载 递归--汉诺塔问题
#include using namespace std;int num=1;void move(char getone,char putone){ cout"<<putone<<endl;}void hanoi(int n,char one,char two,char three){ void move(char getone,char putone); if (n==
2013-04-12 15:06:45 457
原创 c++计算闰年的程序
#include #include int main(){ int year; bool flag=true; std::string str; while (flag) { std::cout<<"Input the year you want to check:"; std::cin>>year; if ((year%4==0&&year%100!=0)
2013-04-11 18:57:27 5222
PHP初级教程
2015-08-15
Cognitive.and.Cooperative.Broadband.Technologies
2013-05-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人