public static void TipAndRedirect(string msg, string goUrl, string second) { HttpContext.Current.Response.Write(""); Htt...
分类:
Web程序 时间:
2015-05-14 14:00:34
阅读次数:
140
方法一 使用API解析json:{"beaconid":"2397","state":"01","userid":"90"}获取json的方法 private void sendRequestWithHttpClient(){ new Thread(new Runnab...
分类:
移动开发 时间:
2015-05-14 13:58:31
阅读次数:
116
@interface ViewController () { UIView *animationView; UIButton *button; CGPoint animationPoint;}@end初始化button和动画的view- (void)viewDidLoad { ...
分类:
移动开发 时间:
2015-05-14 13:36:47
阅读次数:
171
#include
int a[1000];
int k=0;
void change(int x,int r){
while (x)
{
a[k++]=x%r;
x=x/r;
}
}
int main(){
int x,r,i;
printf("输入一个十进制数:\n");
scanf("%d",&...
分类:
编程语言 时间:
2015-05-14 12:06:54
阅读次数:
146
需求就是这样,显示一周的日历。
public class Test {
public static void main(String[] args) {
// TODO Auto-generated method stub
String number[] = new String[7];
Calendar calendar = Calendar.getIn...
分类:
编程语言 时间:
2015-05-14 12:04:32
阅读次数:
168
#include
#include
int qingmiaoduishu(int n)
{ int i,sum;
sum=1;
for(i=2;i<=n/2;i++)
if (n%i==0)
sum+=i;
return sum;
}
void main()
{
int a,b,c;
for (a=...
分类:
其他好文 时间:
2015-05-14 12:02:53
阅读次数:
127
using System.Windows.Forms;using System.IO;public static void CreateLog(Exception ex) { string path = Application.StartupPath +"\\Lo...
protected void gv1_RowDataBound(object sender, GridViewRowEventArgs e) { //首先判断是否是数据行 if (e.Row.RowType == Data...
分类:
其他好文 时间:
2015-05-14 11:39:03
阅读次数:
114
//api 11 版本之前:protected void showNotification() { NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATI...
分类:
其他好文 时间:
2015-05-14 11:33:30
阅读次数:
119
在oc中,我都是使用块函数的方法来传递参数和事件调用,在C++也可以使用回调函数来实现TestClass.h#pragma oncestruct dlgStruct{ void* pObj; int pos;};typedef void WaitFunc(int a);typedef v...
分类:
其他好文 时间:
2015-05-14 11:30:02
阅读次数:
99