摘要: a.c#include<stdio.h>#include"a.h"#include<stdarg.h>#include<stdlib.h>int add(int a,int b){ if(a<100) ERROR(-1,"你输入的a=%d小于100",a); if(b<100) ERROR(-1,"你输入的b=%d小于100",b); return a+b;}int logging(int code,char fmt[],...){ va_list l; FILE *fp; if((fp 阅读全文
posted @ 2011-12-15 21:45 wuxi812 阅读(257) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python#_*_coding:utf8_*_class money(): def __init__(self,currency,value,accuracy): self.currency=currency self.value=value self.accuracy=accuracy def __add__(self,other): return money(self.currency,self.value+other.value,self.accuracy) def __sub__(self... 阅读全文
posted @ 2011-12-15 21:36 wuxi812 阅读(737) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python# -*- encoding:utf-8 -*-from sqlalchemy import *from sqlalchemy.orm import *engine=create_engine("sqlite:///./test.db")metadata=MetaData()party=Table('party',metadata, Column('id',Integer,primary_key=True), Column('name',String(32),nullable=False), 阅读全文
posted @ 2011-12-15 16:36 wuxi812 阅读(504) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2011-12-15 10:29 wuxi812 阅读(3) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2011-12-15 09:53 wuxi812 阅读(2) 评论(0) 推荐(0) 编辑