搜索资源列表
用c编写的N*N的螺旋矩阵源代码
- /* 实现效果: 1 2 6 7 15 3 5 8 14 16 4 9 13 17 22 10 12 18 21 23 11 19 20 24 25 */ #include <stdio.h> #define N 5 //阶数,即N*N的螺旋矩阵 void main() { int i, j, num=1, a[N][N]; for(i=0; i<=N/2; i++) &nb
sf_200562516252
- 一个线程驰的类, 下面的是基本的使用方法 struct TSession { SOCKET socket int id } class myIocp:public CIOCP { public: void OnRead(void * p, char * buf, int len) void OnAccept(SOCKET socket) void OnClose(void * p) } void myIocp::OnAccept(SOCKET socket) { TSession *s = ne
34211
- 图像灰度的改变 void CDibView::OnZftJh() { CClientDC pDC(this) HDC hDC=pDC.GetSafeHdc() //获取当前设备上下文的句柄; SetStretchBltMode(hDC,COLORONCOLOR) CDibDoc *pDoc=GetDocument()-Grayhound change void CDibView : : OnZftJh () (CClientDC pDC (this) HDC pDC.GetSafeHdc
怎样获取快捷方式所指向的目标文件名
- 怎样获取快捷方式所指向的目标文件名? HRESULT hres IShellLink* psl HRESULT hres IShellLink* psl char szGotPath[MAX_PATH] char szDescr iption[MAX_PATH] WIN32_FIND_DATA wfd OleInitialize(0) hres = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLi
单机版的‘三子棋’游戏(附源码)
- 听说过‘三子棋’游戏吗?该程序是单机版的‘三子棋’游戏。规则很简单:下子阶段,组成’三‘时,可把对方的子变为无效子(下完后该子会被去掉)。行棋阶段,组成“三”时,可把对方的子直接去掉。谁最先无子谁就输-heard 'three-game' game? The program is stand-alone version of the 'three-game' game. Very simple rules : Now phase, composed of '
Coverage2svg
- 把ArcInfo Coverage中的polygon数据(pal)导出为SVG图形。函数原型: //public void static Coverage2svg.pal2svg(string CoverageDirectory,string OutputSVGPath) -put ArcInfo Coverage of polygon data (pal) export to SVG graphics. Prototype : / / public static void Coverage2s
241000DM9000
- int main (void) { PINSEL0 = (0x00000005)|(0x03<<18) //P0.0 P0.1用作UART PINSEL1 = 0x00000000 //其余为GPIO ReadModuleP() // 读参数 SetNetPort() InitializeInterrupt() InitNic(0) //RTL8019芯片初始化,在global.c中定义 //WDTC =276
cvResize
- Resize 圖像大小變換 void cvResize( const CvArr* src, CvArr* dst, int interpolation=CV_INTER_LINEAR ) src 輸入圖像. dst 輸出圖像. interpolation 插值方法: * CV_INTER_NN - 最近鄰插值, * CV_INTER_LINEAR - 雙線性插值 (預設使用) * CV_INTER_AREA
void-timer
- void timer embedded syatem
CPP--void
- C++中关于void指针的深层次探讨,详述讲解了void指针类型的使用方法与技巧。-C++ on the depth of void pointers, detailing the type of void and void pointers to use methods and techniques
void-forget
- 抗遗忘记忆软件科学计算遗忘时间防止遗忘信息-void forget
void-timer
- void timer embedded syatem
void-pointer
- 许多初学者对C/C++诧言中的void及void指针类型丌甚理解,因此在使用上出现了一些错诨。本文将对void关键字的深刻含义迚行解说,并详述void及void指针类型的使用方法不技巧。-Many beginners C/C++ surprised made the void and void pointer type Ji very understanding, so there have been some mistake in the use of the nickname. Profou
Void
- Placeholder class for the Java keyword void.
EXTI_Configuration(void)
- STM32F103C8T6自编简单中断程序,以及中断优先级,每行代码都有中文注释,十分好理解-void EXTI_Configuration(void) { EXTI_InitTypeDef EXTI_InitStructure EXTI_ClearITPendingBit(EXTI_Line8) GPIO_EXTILineConfig(GPIO_PortSourceGPIOB, GPIO_PinSource8) EXTI_InitStructure
GPIO_Configuration(void)
- STM32F103C8T6自编简单GPIO程序,引用库函数-void RCC_Configuration(void) { SystemInit() RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB,ENABLE) } void GPIO_Configuration(void) { GPIO_InitTypeDef GPIO_InitStructure GPIO_InitStruc
I2C_Configuration(void)
- STM32F103C8T6,GPIO端口模拟I2C通讯,简单易行-void I2C_SDA_OUT(void) { GPIO_InitTypeDef GPIO_InitStructure GPIO_InitStructure.GPIO_Pin I2C_SDA GPIO_InitStructure.GPIO_Speed GPIO_Speed_50MHz GPIO_InitStructure.GPIO_Mode GPIO_Mode_Out_PP
SPI_Configuration(void)
- STM32F103C8T6,自编SPI通信程序,适合初学者-void SPI_Configuration(void) { SPI_InitTypeDef SPI_InitStructure GPIO_InitTypeDef GPIO_InitStructure GPIO_InitStructure.GPIO_Pin GPIO_Pin_5|GPIO_Pin_6|GPIO_Pin_7 GPIO_InitStructure.GPIO_Speed GPIO_Speed
benzerga 2004
- A theory of anisotropic ductile fracture is outlined and applied to predict failure in a low alloy steel. The theory accounts for initial anisotropy and microstructure evolution (plastic anisotropy, porosity, void shape, orientation and spacing) and