摘要:        
int i,n; printf("1~100之间的素数有:\n"); for(n=1;n<=100;n++) { for (i=2;i<=sqrt(n);i++) if (n%i == 0) break;  if(i>sqrt(n)) printf("%d , ",n); }    阅读全文
posted @ 2009-06-07 18:24
eric_lgf
阅读(471)
评论(1)
推荐(0)
        
            
        
        
摘要:        
DLL的建立与使用////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////()导出函数1:导出函数__declspec(dllexport) void ShowDlg(void){ CDllDialog dllDia...    阅读全文
posted @ 2009-06-07 14:20
eric_lgf
阅读(718)
评论(1)
推荐(0)
        
            
        
        
摘要:        
1 如何将字串 String 转换成整数 int? A. 有两个方法:1). int i = Integer.parseInt([String]); 或 i = Integer.parseInt([String],[int radix]);2). int i = Integer.valueOf(my_str).intValue(); 注: 字串转成 Double, Float, Long 的方法大...    阅读全文
posted @ 2009-06-07 14:19
eric_lgf
阅读(379)
评论(0)
推荐(0)
        
            
        
        
摘要:        
//去除标题和边框 SetWindowLong(m_hWnd, GWL_STYLE,  GetWindowLong(m_hWnd, GWL_STYLE) &  (~(WS_CAPTION | WS_BORDER)));  // 置对话框为最顶端并扩充到整个屏幕 ::SetWindowPos(m_hWnd, HWND_TOPMOST,  ix,iy,   iWidth,iHeight,  S...    阅读全文
posted @ 2009-06-07 14:18
eric_lgf
阅读(260)
评论(0)
推荐(0)
        
 
                    
                
 浙公网安备 33010602011771号
浙公网安备 33010602011771号