摘要: 原文链接http://blog.csdn.net/tyxkzzf/article/details/40789901今天打开一个OpenGL源码,各种修改之后想要运行看一下效果,结果在我的开发环境下出现缺少相应的dll库:Windows7 64位+VS2010提示:程序无法启动此应用程序,因为计算机中... 阅读全文
posted @ 2015-07-06 10:09 微博和csdn还有你 阅读(673) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-import pygamefrom sys import exitclass Bullet: def __init__(self): #初始化成员变量,x,y,image self.x = 0 self.y... 阅读全文
posted @ 2015-07-01 11:17 微博和csdn还有你 阅读(641) 评论(0) 推荐(0) 编辑
摘要: class Vehicle: def __int__(self,speed): self.speed=speed def drive(self,distance): print 'need %f hour(s)'%(distance/self.... 阅读全文
posted @ 2015-06-30 08:54 微博和csdn还有你 阅读(248) 评论(0) 推荐(0) 编辑
摘要: #include #include #includeusing namespace std;char *s ="`1234567890-=QWERTYUIOP[]\\ASDFGHJKL;'ZXCVBNM,./";int main(){ int i,c; while((c=ge... 阅读全文
posted @ 2015-06-12 09:35 微博和csdn还有你 阅读(248) 评论(0) 推荐(0) 编辑
摘要: #include #include #includeusing namespace std;int main(){ //定义结构类型 struct human { char name[10]; int sex; int age; }; //声... 阅读全文
posted @ 2015-06-10 19:28 微博和csdn还有你 阅读(272) 评论(0) 推荐(0) 编辑
摘要: // 声明用于存放运动员号码的数组 int h[]={1001,1002,1003,1004}; // 声明用于存放运动员成绩的数组 float x[]={12.3,13.1,11.9,12.1}; //声明用于存放运动姓名的字符型指针数组 char ... 阅读全文
posted @ 2015-06-10 16:00 微博和csdn还有你 阅读(289) 评论(0) 推荐(0) 编辑
摘要: #include #include #includeusing namespace std;int main(){ //声明字符型数组和指针变量 char str[10]; char *strip=str; //输入输出 cout>str; //用字符数组输... 阅读全文
posted @ 2015-06-10 14:34 微博和csdn还有你 阅读(566) 评论(0) 推荐(0) 编辑
摘要: #include #include #includeusing namespace std;int main(){ double a,b; double r1,r2; scanf("%lf%lf",&a,&b); r1=fabs(a-b)/2+min(a,b); r2=(a+b)/2... 阅读全文
posted @ 2015-06-09 15:25 微博和csdn还有你 阅读(159) 评论(0) 推荐(0) 编辑
摘要: /*输入点的个数是可以手动改动的,此程序中输入点的最大值设置为.*同时,程序实现了键盘的交互,用来控制程序运行过程中的退出、重画等*/#include#includeint W,H; //屏幕的大小int N =-1; //贝赛尔曲线的幂次GLfloat Bfunc[15]={0.0}; ... 阅读全文
posted @ 2015-06-02 16:54 微博和csdn还有你 阅读(1226) 评论(0) 推荐(0) 编辑
摘要: fgets(buf,sizeof(buf),stdin);从文件读取字符串到buf数组中isalpha一种函数:判断字符ch是否为英文字母,若为小写字母,返回2,若为大写字母,返回1。若不是字母,返回0。在标准c中相当于使用“isupper(ch)||islower(ch)”做测试,#include... 阅读全文
posted @ 2015-06-02 09:48 微博和csdn还有你 阅读(231) 评论(0) 推荐(0) 编辑