上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: 要实现这样的布局,其实就是将屏幕纵向三等分,上下的进行平分就好啦。用:Iienarlayout实现。代码: weight属性比较重要的,若weight值都相等,相当于等分,weight值越大,占的比重越小。来自为知笔记(Wiz) 阅读全文
posted @ 2015-07-11 00:23 Lucas_1993 阅读(1205) 评论(0) 推荐(0) 编辑
摘要: 1,FrameLayout的层叠嵌套,类似于Photoshop的图层。可以实现类似霓虹灯的效果。代码大致如下:首先是main.xml:主要是几个TextView用来填充,使用的是FrameLayout的布局。 main.java里面是让Activity实现Runnable接口,在run()函数里设置每个TextView的背景颜色。并使用Handler来实现每隔多少秒执行一次。packag... 阅读全文
posted @ 2015-07-11 00:11 Lucas_1993 阅读(286) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS#include "string.h"#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h"#define OK 1#define ERROR 0#define TRUE 1#define FALS... 阅读全文
posted @ 2015-07-08 23:18 Lucas_1993 阅读(172) 评论(0) 推荐(0) 编辑
摘要: #include "string.h"#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h"#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define MAXSIZE 100 /* 存储空间初... 阅读全文
posted @ 2015-07-08 23:13 Lucas_1993 阅读(240) 评论(0) 推荐(0) 编辑
摘要: #include "stdio.h" #include "stdlib.h" #include "math.h" #include "time.h" #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 #define MAXSIZE 100 /* 存储空间初始分配量 */ #define MAX_TREE_SIZE 100 /... 阅读全文
posted @ 2015-07-08 23:11 Lucas_1993 阅读(559) 评论(0) 推荐(0) 编辑
摘要: #include #include #define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define MAXSIZE 100typedef int Status;typedef float ElemType;typedef struct{//三元组结构 int i, j;//非零元素行下标和列下标 ElemType e;//非零元素值}... 阅读全文
posted @ 2015-07-07 12:52 Lucas_1993 阅读(2018) 评论(0) 推荐(0) 编辑
摘要: #include "string.h"#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h"#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define MAXSIZE 100 /* 存储空间初... 阅读全文
posted @ 2015-07-07 12:51 Lucas_1993 阅读(298) 评论(0) 推荐(0) 编辑
摘要: #include "string.h"#include "stdio.h"#include "stdlib.h"#include "math.h"#include "time.h"#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define MAXSIZE 40 /* 存储空间初始分配量 */typedef int Status; ... 阅读全文
posted @ 2015-07-07 12:50 Lucas_1993 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 本份代码需要两个栈。一个是符号栈,一个是数字栈。输入中序表达式如9+(3-1)*3+10/2##define _CRT_SECURE_NO_WARNINGS#include#include#define max 100char ex[max]; /*存储后序表达式*//*函数功能:将中序表达式转化为后序表达式*/void trans() { char str[max]; /*表达... 阅读全文
posted @ 2015-07-07 11:58 Lucas_1993 阅读(952) 评论(0) 推荐(0) 编辑
摘要: to be done来自为知笔记(Wiz) 阅读全文
posted @ 2015-07-07 11:57 Lucas_1993 阅读(114) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页