Hello
world开始。这里不讨论如何创建项目导入项目。由于趁上班时间打酱油所以也不谈细节, 只谈具体项目的实现与关键流程的解析,
只供本人实际程况使用。不喜请移驾。首先来谈谈AppDelegate.h与AppDelegate.m 文件AppDelegate.h:#import @class
B...
分类:
移动开发 时间:
2014-05-24 02:16:56
阅读次数:
290
接着下来简单说说Label(相当于android的textview)和button的使用,
由于都是与上篇的AppDelegate一致, 所以这一篇就说说ViewController与xib的使用呗。BIDViewController.h#import
@interface BIDViewContr...
分类:
移动开发 时间:
2014-05-23 12:37:14
阅读次数:
399
#include
using namespace std;
class Date
{
public:
Date(int y=0,int m=0,int d=0);
void SetDate(int y,int m,int d);
void PrintDate();
protected:
int year;
int month;
int day;
}...
分类:
其他好文 时间:
2014-05-22 08:36:19
阅读次数:
201
这是在调用接口的时候 把dateEditStart.DateTime =
DateTime.Now.AddDays(-DateTime.Now.Day).AddHours(-DateTime.Now.Hour).AddMinutes(-DateTime.Now.Minute);
...
分类:
其他好文 时间:
2014-05-22 05:23:58
阅读次数:
216
When you subtract two variables of type TIMESTAMP, you get an INTERVAL DAY TO SECOND which includes a number of milliseconds and/or microseconds depending on the platform. If the database is running o...
分类:
其他好文 时间:
2014-05-21 15:36:38
阅读次数:
488
{pc:contentaction="hits"catid="6"num="10"day="30"}//hits表示调用点击排行榜,catid调用的排行来自哪个栏目,num调用排行前10的栏目,day调用30天内的点击排行<ol>//为排行添加名次{loop$data$h}<li><ahref="{$h[‘url‘]}">{$h[‘title‘]}</a></li..
分类:
Web程序 时间:
2014-05-20 17:30:35
阅读次数:
389
date命令本身提供了日期的加减运算例如:得到昨天的时间 date +%Y%m%d
--date="-1 day"1.在显示方面,使用者可以设定欲显示的格式,格式设定为一个加号后接数个标记,其中可用的标记列表如下: % : 打印出 %%n :
下一行%t : 跳格%H : 小时(00..23)%I ...
分类:
系统相关 时间:
2014-05-19 16:24:59
阅读次数:
335
//转换函数如下
int dayofyear(int year, int month, int day){
//k月份 leap判断闰年
int k, leap;
int tab[2][13] = {
{ 0,31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 },
{ 0,31, 29, 31, 30, 31, 30, 31, 31, 30,...
分类:
其他好文 时间:
2014-05-18 18:27:41
阅读次数:
278
Problem Description
Speedcell and Shoutmon love triangles very much.One day,they are playing a game named “Triangle Counting”.
In this game,Speedcell draws a round,and draws N points on the circum...
分类:
其他好文 时间:
2014-05-18 14:19:00
阅读次数:
262
//转换函数如下,其中通过指针同时向主函数传回月份和天数
void month_day(int year, int yearday, int *month, int *day){
//k月份,leap判断是否闰年(0非闰年1闰年)
int k, leap;
int tab[2][13] = {
{ 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30...
分类:
其他好文 时间:
2014-05-18 05:16:50
阅读次数:
262