随笔分类 -  VC

YUV视频显示软件+源码
摘要:http://www.chinavideo.org/forum.php?mod=viewthread&tid=12163 阅读全文

posted @ 2013-08-02 14:55 红色理想 阅读(347) 评论(0) 推荐(0)

2.2孙鑫C++
摘要:1、继承动物有 吃 睡 呼吸的方法 当然 鱼也有 不用重复再定义 1)public 那里都可以访问 1 #include 2 class Animal //类 基类 3 { 4 public: 5 void eat()//吃方法 6 { 7 cout 2 class Animal //类 基类 3 { 4 public: 5 void eat()//吃方法 6 { 7 cout 2 class Animal //类 基类 3 { 4 public: 5 void eat()//吃方法 6 { 7 cout 2 clas... 阅读全文

posted @ 2013-07-15 23:03 红色理想 阅读(314) 评论(0) 推荐(0)

2.1孙鑫C++
摘要:0、vc++6.0 工程---win32控制台程序 文件---c++1、建立结构体 1 #include 2 struct Point 3 { 4 5 int x; 6 int y; 7 }; 8 9 void main ()10 {11 Point pt;12 pt.x=5;13 pt.y=5;14 //cout 2 struct Point 3 { 4 public: 5 int x; 6 int y; 7 void output () 8 { 9 cout 2 //struct Point 3 class Poin... 阅读全文

posted @ 2013-07-15 22:11 红色理想 阅读(349) 评论(0) 推荐(0)

UDP 接收很好的例子
该文被密码保护。

posted @ 2013-02-02 17:00 红色理想 阅读(42) 评论(0) 推荐(0)

7----一台电脑发送,,,另一台电脑非阻塞的不停接收,当达到一定的数据量后进行写文件操作--用ultraeidt查看
该文被密码保护。

posted @ 2013-01-13 17:00 红色理想 阅读(170) 评论(0) 推荐(0)

6-----win32 udp 双线程 发送接收 将接收数据进行打印存入
该文被密码保护。

posted @ 2013-01-13 15:49 红色理想 阅读(298) 评论(0) 推荐(0)

5-----win32 UDP SOCKET 线程中的 发送程序
该文被密码保护。

posted @ 2013-01-13 15:07 红色理想 阅读(212) 评论(0) 推荐(0)

4---能正常运行的多线程最简单模型
摘要:#include <stdio.h> #include <windows.h> char buffer[100] = { 'x' , 'y' , 'z' }; int W_A=0,R_A=0;//子线程函数 1 DWORD WINAPI ThreadFun1(LPVOID pM) { while (1) { //printf("子线程的线程1 "); // R_buffer[]={0,1,2,3,4,5,6,7,8,9};// buffer }return 0; } //子线程函数 2DWORD WIN 阅读全文

posted @ 2013-01-12 11:34 红色理想 阅读(166) 评论(0) 推荐(0)

win32 vc6.0 UDP socket send
该文被密码保护。

posted @ 2013-01-11 17:07 红色理想 阅读(376) 评论(0) 推荐(0)

3 文件读写 计时 我的烂电脑在1S钟能写70多MB的数据
摘要:#include <stdio.h>#include <time.h>int main (){ FILE * pFile;int i;pFile = fopen ( "myfile.txt" , "wb" );char buffer[8*1024] = {0};double d ;clock_t start=0;clock_t finish=0; int j=0;start = clock(); //计时开始for (j=0;j<9200;j++){ for(i=0;i<8*1024;i++) buffer[i]=i; 阅读全文

posted @ 2013-01-10 22:58 红色理想 阅读(209) 评论(0) 推荐(0)

2---多线程文件读写
摘要://最简单的创建多线程实例 #include <stdio.h> #include <windows.h> //子线程函数 1 DWORD WINAPI ThreadFun1(LPVOID pM) { while (1){printf("子线程的线程1 ");return 0; } } //子线程函数 2int i=0;DWORD WINAPI ThreadFun2(LPVOID pM) { FILE *fp;char buffer[] = { 'x' , 'y' , 'z' }; i=i+3;prin 阅读全文

posted @ 2013-01-04 23:56 红色理想 阅读(463) 评论(0) 推荐(0)

VC6.0多线程例程
摘要:转:-------http://sunnysab.blog.163.com/blog/static/18037500920128113618804/多线程可以给程序实现许多的功能,并且多个函数同时进行有效地提高了程序的运行效率。这篇文章讲的就是VC控制台下的多线程操作。本文章还得感谢《VC+API常用函数简单例子大全》的作者http://hi.baidu.com/3582077/home,该书下载地址(点击这里)。 首先我们要用到CreateThread函数,以下是函数原型: HANDLE CreateThread( LPSECURITY_ATTR... 阅读全文

posted @ 2013-01-04 22:31 红色理想 阅读(6009) 评论(0) 推荐(0)

导航