自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 一个有趣的测试程序

#include <stdio.h>#include <math.h>int main(int argc, const char * argv[]) { // insert code here... long i,j; int n,m = 0; long a,b,c,flag = 0; ///printf("%s\n", );...

2018-06-22 23:50:38 270

转载 android中常见的4种布局

一、FrameLayout(帧布局):显示特点:所有的子控件默认显示在FrameLayout的左上角,会重叠在一起显示。常用属性:layout_gravity(设置给子控件,调整控件在容器内的重心)常用值:left(左)、 right(右)、top(上)、 bottom(下)、center(中心)、 center_vertical(竖向中心)center_horizontal(横向中心)二、Lin...

2018-06-22 23:44:47 2000

原创 c语言模拟实现CRC校验算法

#include<stdio.h>#include<stdlib.h>int count_n(char s[]){ int i=0,count=0; while(s[i]!='\0') { count++; i++; } return count;}int mod2_div(char sx[...

2018-06-22 23:40:47 2131

原创 用c语言实现ping功能(基于Mac OS X系统)

#include <stdio.h>#include <stdlib.h>#include <string.h>#include <signal.h>#include <arpa/inet.h>#include <sys/types.h>#include <sys/socket.h>#include

2018-06-22 23:35:09 683

原创 UDP广播

//UDPserver文件//receiver.h#ifndef RECEIVER_H#define RECEIVER_H#include class QUdpSocket;namespace Ui {class Receiver;}class Receiver : public QDialog{ Q_OBJECTpublic:

2017-06-11 14:45:46 254

原创 对connect函数的简单理解

从Qobject(QObject.h)源码中可以看到QObject::connect的定义是这样的:[cpp] view plain copystatic bool connect(const QObject *sender, const char *signal,                      const QObject *rece

2017-06-11 14:32:54 1516

原创 计算图形的面积和周长

//头文件#ifndef SHAPE_H#define SHAPE_Hclass Shape{public:    Shape();};class Rectangle:public Shape{public:    Rectangle(float xx,float yy);    void cularea();    void cul

2017-03-31 17:06:05 1126

原创 转置矩阵

#include using namespace std;void transform(){    int i,j;    int a[3][3];    cout    for(i=0;i    {        for(j=0;j        {            cin>>a[i][j];        }     }

2017-03-31 15:41:55 244

原创 计算字段中字母数

#include #include using namespace std;int Getlenth(){    string str1,str2,str3,str4,str5,str6;    int a1,a2,a3,a4,a5,a6;    cout    getline(cin,str1);    getline(cin,str2);    getl

2017-03-28 20:04:55 190

原创 Employee

cpp文件#include using namespace std;class Date{  public:      Date(int xx=0){p=xx;}      int getchar(){return p;}      int setchar(int rr){p=rr;}  private:      int p;};class Emplo

2017-03-22 22:33:59 474

原创 Rectanglearea

#include using namespace std;class Point{public: Point(int xx,int yy); Point(Point &P); int getx(); int gety();private: int x,y;};class Rectangle{public: Rectangle(Point A1,P

2017-03-20 17:58:25 274

原创 Complex1

//头文件#ifndef COMPLEX1_H#define COMPLEX1_Hclass Complex1{public: Complex1(float xx,float yy=0); //Complex1 t; void add(Complex1 l); void show();private: float x=0,y=0;};#end

2017-03-17 16:40:14 298

原创 learning-windows-32 at first

1.  WinMain是一个函数,该函数的功能是被系统调用,作为一个32位应用程序的入口点。WinMain函数应初始化应用程序,显示主窗口,进入一个消息接收一发送循环,这个循环是应用程序执行的其余部分的顶级控制结构。 2.  消息循环代码是应用程序中主函数WinMain ( )中类似如下的程序段:while(GetMessage(&msg,NULL,0,0)){ //从消息队列中取

2017-03-03 15:51:05 148

空空如也

空空如也

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

TA关注的人

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