自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 自定义日期时间转UNIX时间截

#include "stdafx.h"#include #include #include #include using namespace std;#include #include #include /*struct tm{     int tm_sec; //记录当前时间 秒, 0-59    int tm_min; //记录当前时间 分 0-59    int tm_hour

2009-11-26 13:44:00 358

原创 自编strlen()函数,并用它递归调用编写revers(S)函数,给字符串S倒序

#include using namespace std;int strlen1(char *p){ int i=0; while ( (*p)!=NULL ) {  p++;  i++; }    return i;} void revers(char *p){ char s1[100]=""; int len; while ( (*p)!=NULL )   {   len=strl

2009-07-27 14:59:00 605

原创 设计一个基类,从基类派生圆,从圆派生圆柱,设计成员函数输出它们的面积和体积

#include #include using namespace std;#define pi 3.14class point{protected: int x1, y1;public: point(int a, int b) { x1=a; y1=b; }};class circle:public point{protected: int x2, y2;public: circle

2009-07-09 13:42:00 8336

原创 建立一个动态数组,赋值/显示并删除。

#includeusing namespace std;void main(){     int len;  cout      cin>>len;     int *p=new int[len];  for (int i=0; i  {   cout    cin >> *(p+i);  }   for (int j=0; j  {   cout   }      delete[] p;}

2009-07-08 11:07:00 828

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除