??xml version="1.0" encoding="utf-8" standalone="yes"?>午夜在线电影亚洲一区,99视频在线观看一区三区,一区二区三区精品国产http://m.shnenglu.com/gohan/category/937.htmlzh-cnThu, 07 Aug 2008 08:50:38 GMTThu, 07 Aug 2008 08:50:38 GMT60׃札记[1]http://m.shnenglu.com/gohan/archive/2008/08/07/58197.htmlGohanGohanWed, 06 Aug 2008 18:30:00 GMThttp://m.shnenglu.com/gohan/archive/2008/08/07/58197.htmlhttp://m.shnenglu.com/gohan/comments/58197.htmlhttp://m.shnenglu.com/gohan/archive/2008/08/07/58197.html#Feedback3http://m.shnenglu.com/gohan/comments/commentRss/58197.htmlhttp://m.shnenglu.com/gohan/services/trackbacks/58197.html阅读全文

Gohan 2008-08-07 02:30 发表评论
]]>
Win32命o行应用,ReadConsoleInput()得到键盘VK_CODEhttp://m.shnenglu.com/gohan/archive/2008/05/23/50817.htmlGohanGohanThu, 22 May 2008 16:08:00 GMThttp://m.shnenglu.com/gohan/archive/2008/05/23/50817.htmlhttp://m.shnenglu.com/gohan/comments/50817.htmlhttp://m.shnenglu.com/gohan/archive/2008/05/23/50817.html#Feedback5http://m.shnenglu.com/gohan/comments/commentRss/50817.htmlhttp://m.shnenglu.com/gohan/services/trackbacks/50817.htmlimage

    ReadConsoleInput是一个Win32 APIQ?nbsp; 声明如下Q?/p>

BOOL ReadConsoleInput(
  HANDLE hConsoleInput, //输入句柄
  PINPUT_RECORD lpBuffer, //指向INPUT_RECORDl构?数组)的指?/span>
  DWORD nLength, //上面那个l构体的大小
  LPDWORD lpNumberOfEventsRead //实际d输入内容的个?/span>
);

    我把d的功能写在这个助手类中,ReadConsoleInput的得到VK_CODE的方法可以看ReadKeyDown和ReadKeyPush两个函数Q它们的效果略有点不同。右图是效果截图Q按ESC跛_循环。助手类以后q可以添加颜色控制位|控制等功能Q只要你惻I目的是Z化API调用?/p>

#pragma once
#include <Windows.h>
class GohanConsoleHelper
{
    HANDLE _hIn;
    HANDLE _hOut;
    INPUT_RECORD _InRec;
    DWORD _NumRead;
public:
    WORD VKey;
    GohanConsoleHelper(void){
        _hIn = GetStdHandle(STD_INPUT_HANDLE);
        _hOut = GetStdHandle(STD_OUTPUT_HANDLE);
        VKey=0;
    }
    bool ReadOneInput()
    {
        return 0!=ReadConsoleInput(_hIn,&_InRec,1,&_NumRead);
    }
    bool ReadOneInput(INPUT_RECORD& InRec)
    {
        return 0!=ReadConsoleInput(_hIn,&InRec,1,&_NumRead);
    }
    DWORD ReadKeyDown()
    {
        if(!ReadConsoleInput(_hIn,&_InRec,1,&_NumRead))
            return 0;
        if(_InRec.EventType!=KEY_EVENT)
            return 0;
        if(_InRec.Event.KeyEvent.bKeyDown > 0)
            return 0;
        VKey = _InRec.Event.KeyEvent.wVirtualKeyCode;
        return VKey;
    }
    DWORD ReadKeyPush()
    {
        if(!ReadConsoleInput(_hIn,&_InRec,1,&_NumRead))
            return 0;
        if(_InRec.EventType!=KEY_EVENT)
            return 0;
        if(_InRec.Event.KeyEvent.bKeyDown == 0)
            return 0;
        VKey = _InRec.Event.KeyEvent.wVirtualKeyCode;
        return VKey;
    }
public:
    ~GohanConsoleHelper(void){}
};
 
 

 

main所在文件内?/p>

#include <windows.h>
#include <iostream>
#include "GohanConsoleHelper.h"
using namespace std;
int main()
{
    GohanConsoleHelper gch;
    while (true)
    {
        if(gch.ReadKeyPush()!=0) //使用ReadKeyDown()捕获按键弹v的VK_CODE
        {
            if(gch.VKey != VK_ESCAPE)
                cout<<"VK_CODE == "<<gch.VKey<<endl;
            else {
                cout<<"Bye~~"<<endl;
                break;
            }
        }
    }
    return 0;
}

 

    在命令行得到VK_CODE可以q许多事情了Q可以写个在Win32命o行下的小游戏Q俄|斯方块啊什么的Q呵呵,不过画面E微好点的就搞不了了Q因为毕竟win32命o行分辨率太低了?/p>

   忘了攑և参考的资料Q?/p>

http://adrianxw.dk/ 比较全面的Win32命o行教E?/p>

Gohan 2008-05-23 00:08 发表评论
]]>
获取l定路径的图标,演示SHGetFileInfo用法http://m.shnenglu.com/gohan/archive/2008/05/02/48617.htmlGohanGohanThu, 01 May 2008 20:54:00 GMThttp://m.shnenglu.com/gohan/archive/2008/05/02/48617.htmlhttp://m.shnenglu.com/gohan/comments/48617.htmlhttp://m.shnenglu.com/gohan/archive/2008/05/02/48617.html#Feedback0http://m.shnenglu.com/gohan/comments/commentRss/48617.htmlhttp://m.shnenglu.com/gohan/services/trackbacks/48617.htmlZ上次那个SHBrowseForFolder用法的演CZ?/font>
建立的仍然是Win32 命o行的工程Q所以入口点为main(),需要手动获取HINSTANCEl构。程序在WINXP+VS2005试通过image
/********************************************************************
  created:  2008/05/02
  created:  2:5:2008   3:40
            main.cpp
  author:    Gohan
  purpose:  演示SHBrowseForFolder用法
            演示SHGetFileInfo获取路径图标   
            演示Picture Box在SDK里的使用Ҏ(gu)
*********************************************************************/
#include <Windows.h>
#include <ShlObj.h>
#include "resource.h"
HICON g_icon;
RECT g_rect;
TCHAR g_path[MAX_PATH];
void OnInitDlg(HWND hwnd)
{
   
GetWindowRect(GetDlgItem(hwnd, IDC_ICON1), &g_rect);
   
MapWindowPoints(NULL, hwnd, (LPPOINT) &g_rect, 2);
   
DestroyWindow(GetDlgItem(hwnd, IDC_ICON1));
   
SetDlgItemText(hwnd,IDC_PATH,g_path);
}
void OnPaint(HWND hwnd)
{
   
PAINTSTRUCT ps;
   
HDC hdc = BeginPaint(hwnd, &ps);
   
DrawIcon(hdc,g_rect.left,g_rect.left,g_icon);
   
EndPaint(hwnd,&ps);
}
BOOL CALLBACK DlgProc (HWND hDlg, UINT message,
                           
WPARAM wParam, LPARAM lParam)
{
   
switch (message)
    {
   
case WM_INITDIALOG :
       
OnInitDlg(hDlg);
       
return TRUE ;
   
case WM_PAINT:
       
OnPaint(hDlg);
       
return TRUE;
   
case WM_COMMAND :
       
switch (LOWORD (wParam))
        {
       
case IDOK :
       
case IDCANCEL :
           
EndDialog (hDlg, 0) ;
           
return TRUE ;
        }
       
break ;
    }
   
return FALSE ;
}
int main()
{
   
HINSTANCE hInstance = (HINSTANCE)GetModuleHandle(NULL);
   
BROWSEINFO bi;
   
ZeroMemory(&bi,sizeof(BROWSEINFO));
   
LPMALLOC pMalloc;
   
LPITEMIDLIST pidl = SHBrowseForFolder(&bi);
   
   
if(pidl != NULL)
    {
       
SHGetPathFromIDList(pidl,g_path);
       
SHFILEINFO sfi;
       
ZeroMemory(&sfi,sizeof(SHFILEINFO));
       
SHGetFileInfo(g_path,0,&sfi,sizeof(SHFILEINFO),SHGFI_ICON);
       
g_icon = sfi.hIcon;
       
DialogBox (hInstance, MAKEINTRESOURCE(IDD_DIALOG1), 0, DlgProc) ;
       
//MessageBox(NULL,path,TEXT("Choose"),MB_OK);
        if(SUCCEEDED(SHGetMalloc(&pMalloc)))
        {
           
pMalloc->Free(pidl);
           
pMalloc->Release();
        }
    }
   
else
    {
       
MessageBox(NULL,TEXT("),TEXT("Choose"),MB_OK);
    }
}
/************************************************************************/
/* resource.h                                                           */
/************************************************************************/
#define IDD_DIALOG1                     101
#define IDC_PATH                        1001
#define IDC_ICON1                       1002
/************************************************************************/
/* demo.rc Microsoft Visual C++ generated resource script.              */
/************************************************************************/
#include "resource.h"
#include "afxres.h"
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_DIALOG1 DIALOGEX 0, 0, 126, 83
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP
FONT
8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    DEFPUSHBUTTON   "定",IDOK,69,7,50,14
   
PUSHBUTTON      "取消",IDCANCEL,69,24,50,14
   
CONTROL         "",IDC_ICON1,"Static",SS_WHITEFRAME | SS_REALSIZEIMAGE,13,10,20,20,WS_EX_TRANSPARENT
    LTEXT           "静?,IDC_PATH,14,44,89,21,0,WS_EX_CLIENTEDGE
END


/////////////////////////////////////////////////////////////////////////////


Gohan 2008-05-02 04:54 发表评论
]]>
关于Up/Down控gQspin controlQ用方法的一点小心得http://m.shnenglu.com/gohan/archive/2008/02/06/42558.htmlGohanGohanTue, 05 Feb 2008 18:14:00 GMThttp://m.shnenglu.com/gohan/archive/2008/02/06/42558.htmlhttp://m.shnenglu.com/gohan/comments/42558.htmlhttp://m.shnenglu.com/gohan/archive/2008/02/06/42558.html#Feedback0http://m.shnenglu.com/gohan/comments/commentRss/42558.htmlhttp://m.shnenglu.com/gohan/services/trackbacks/42558.html image    学用USDK写win32E序Q资料有一?a target="_blank">英文版Windows Programming?sh)子书,以及MSDNQ用CUp/Down控g让用戯入数据,同时也提供了Edit box.两者的同步是否会有问题呢?
  试了半天,l于有了点结果:
1、初始化控gQ对控g句柄发?a target="_blank">UDM_SETRANGE32消息Q进行范围的初始话?a target="_blank">UDM_SETPOS32消息讄初倹{?br>    image
2、关联Edit Box 控gQ这个我弄了半天才明白,首先要在资源~辑中的对话框编辑界面,讑֮Tab控g的顺序(格式->Tab键顺序)?font color="#ff0000">Edit Box的序可|成Up/Down控g序号减一Q设定Up/Down的属性Auto Buddy为TrueQSet Buddy Integer为true?br>3、现在已l能够正常的使用Up/Down功能了?br>  可是如果不想用控件关?/font>Q而是自己讑֮逻辑怎么办呢Q几个小时之前我不会兌的方法,惌努力实现手动l护Edit box的功能。最后终于有了些教训Q得C点心得:
  在Up/Down的父H口Q一般是对话框)的消息处理函CQ对WM_VSCROLL消息做一个处理,当lParam与Up/Down的窗口句柄相{时Q对Up/Down的操作结?/font> Q其中wParam中的高位部分是Up/Down的|用这个值来更新Edit Box?br>WM_VSCROLL nScrollCode = (int)LOWORD(wParam);
  nPos = (short int)HIWORD(wParam);
  hwndScrollBar = (HWND) lParam;

  今天我的教训是用了WM_NOTIFY的消息,处理UDN_DELTAPOS的通知QlParam是一个结构:NMUPDOWNQ通过q个l构来更新Edit boxQ因个通知不等操作l束已l发出,q且q个l构体中有当时的位置以及变化量,更新时候还需要将当时位置加上变化量。这L更新׃出现一定的问题Q有时候pos已经C讑֮好的范围边界Qpos加上变化量就会超界,q要l箋判断Q效率等{问题就出现了,而且十分ȝ。所以最好用关联的Ҏ(gu)Q如果有Ҏ(gu)要求qWM_VSCROLL响应Q?font color="#ff0000">千万不要使用UDN_DELTAPOSQ白花功?/font>Q呵c就写到q里.

今天是除夕了Q祝所有程序员朋友新春快乐Q!



Gohan 2008-02-06 02:14 发表评论
]]>
dd的DP题目出的真的不错http://m.shnenglu.com/gohan/archive/2007/11/09/36261.htmlGohanGohanFri, 09 Nov 2007 14:48:00 GMThttp://m.shnenglu.com/gohan/archive/2007/11/09/36261.htmlhttp://m.shnenglu.com/gohan/comments/36261.htmlhttp://m.shnenglu.com/gohan/archive/2007/11/09/36261.html#Feedback0http://m.shnenglu.com/gohan/comments/commentRss/36261.htmlhttp://m.shnenglu.com/gohan/services/trackbacks/36261.htmlbinary_search()遇到查询D出有序数l范围的情况好像会返回true,真的不应该偷懒ؕ?一个教?br>剩下的好好学?

Gohan 2007-11-09 22:48 发表评论
]]>
fontpipelinehttp://m.shnenglu.com/gohan/archive/2007/08/26/30874.htmlGohanGohanSun, 26 Aug 2007 12:27:00 GMThttp://m.shnenglu.com/gohan/archive/2007/08/26/30874.htmlhttp://m.shnenglu.com/gohan/comments/30874.htmlhttp://m.shnenglu.com/gohan/archive/2007/08/26/30874.html#Feedback0http://m.shnenglu.com/gohan/comments/commentRss/30874.htmlhttp://m.shnenglu.com/gohan/services/trackbacks/30874.htmlhaha, I just finished up my pong game and I ran into same problem (I hope the XNA team does work on making fonts better).

 If you load up the Sample Font's project and then select the \Content\TrueTypeFont.xml file and look at it's properties, you'll see the Content Importer and Content Processor's set.    In your project, you'll need to do the following:

  1. Right click on your project and select properties.
  2. Select the Content Pipeline
  3. Select Add
  4. Browse to your FontPipeline\bin\debug folder (or wherever you have the fontpipeline compiled)
  5. Select Open on the FontPipeline.dll.

Then on the properties of the TrueTypeFont.xml file in your project

  1. Set the XNA Framework Content to True.
  2. Set the Content Importer to XML Content - XNA Framework.
  3. Set the Content Processor to TrueTypeFontProcessor.

I did this by memory so just let me know if that doesn't do the trick and I'll dig through my project.

HTHs!

http://forums.xna.com/thread/4778.aspx

关于XML格式?strong>TrueTypeFont的疑问就q么解决?/strong>

Gohan 2007-08-26 20:27 发表评论
]]>
zju1942解题报告http://m.shnenglu.com/gohan/archive/2007/07/28/28907.htmlGohanGohanSat, 28 Jul 2007 13:04:00 GMThttp://m.shnenglu.com/gohan/archive/2007/07/28/28907.htmlhttp://m.shnenglu.com/gohan/comments/28907.htmlhttp://m.shnenglu.com/gohan/archive/2007/07/28/28907.html#Feedback0http://m.shnenglu.com/gohan/comments/commentRss/28907.htmlhttp://m.shnenglu.com/gohan/services/trackbacks/28907.html阅读全文

Gohan 2007-07-28 21:04 发表评论
]]>
pku3297解题报告http://m.shnenglu.com/gohan/archive/2007/07/28/28898.htmlGohanGohanSat, 28 Jul 2007 08:37:00 GMThttp://m.shnenglu.com/gohan/archive/2007/07/28/28898.htmlhttp://m.shnenglu.com/gohan/comments/28898.htmlhttp://m.shnenglu.com/gohan/archive/2007/07/28/28898.html#Feedback0http://m.shnenglu.com/gohan/comments/commentRss/28898.htmlhttp://m.shnenglu.com/gohan/services/trackbacks/28898.htmlq道题我用的Ҏ(gu)很麻?使用一个结构体vector保存l果,使用一个map判断是不是一个h报了两个工程.使用set判断一个工E是不是有h重复报名
于是有了下面的W拙代码

 1#include <string>
 2#include <set>
 3#include <vector>
 4#include <memory.h>
 5#include <map>
 6#include <algorithm>
 7using namespace std;
 8
 9struct Project
10{
11    string name;
12    int studentcount;
13    Project()
14    {
15        studentcount=0;
16        name.assign("");
17    }

18}
;
19
20map<string,int> studentmap;
21set<string> studentset;
22vector<Project> prov;
23int countarray[101]={0};
24char strtemp[100]="";
25Project project;
26
27inline bool comp(const Project &p1,const Project &p2)
28{
29    return p1.studentcount>p2.studentcount;
30}

31inline bool comp2(const Project &p1,const Project &p2)
32{
33    return p1.name.compare(p2.name)<0;
34}

35
36int main()
37{
38    
39    while(true)
40    {
41        int projcount=0;
42        prov.push_back(project);
43        while(true)
44        {
45            gets(strtemp);
46            project.name.assign(strtemp);
47            if(project.name[0]=='1')break;
48            if(project.name[0]=='0')exit(0);
49            if(project.name[0]>='A'&&project.name[0]<='Z')
50            {
51                prov.push_back(project);
52                studentset.clear();
53                projcount++;
54            }

55            if(project.name[0]>='a'&&project.name[0]<='z')
56            {
57                if(studentmap[strtemp]==0)
58                {
59                    studentmap[strtemp]=projcount;
60                }

61                else if(studentmap[strtemp]==-1)
62                {
63                    continue;
64                }

65                else if(studentmap[strtemp]!=projcount)
66                {
67                    prov[studentmap[strtemp]].studentcount--;
68                    studentmap[strtemp]=-1;
69                    continue;
70                }

71                if(studentset.count(strtemp))
72                    continue;
73                else
74                {
75                    studentset.insert(strtemp);
76                    prov[projcount].studentcount++;
77                }

78            }
                        
79        }

80        prov.erase(prov.begin());
81        stable_sort(prov.begin(),prov.end(),comp2);
82        stable_sort(prov.begin(),prov.end(),comp);
83        for(int i=0;i<prov.size();i++)
84        {
85            printf("%s %d\n",prov[i].name.c_str(),prov[i].studentcount);
86        }

87        memset(countarray,0,sizeof(countarray));
88        studentmap.clear();
89        prov.clear();
90        
91    }

92}

93
94


Gohan 2007-07-28 16:37 发表评论
]]>
pku 3286解题报告http://m.shnenglu.com/gohan/archive/2007/07/25/pku3286.htmlGohanGohanWed, 25 Jul 2007 00:20:00 GMThttp://m.shnenglu.com/gohan/archive/2007/07/25/pku3286.htmlhttp://m.shnenglu.com/gohan/comments/28736.htmlhttp://m.shnenglu.com/gohan/archive/2007/07/25/pku3286.html#Feedback0http://m.shnenglu.com/gohan/comments/commentRss/28736.htmlhttp://m.shnenglu.com/gohan/services/trackbacks/28736.html我的做法可能很弱?br>l定一个数x>0通过每一位零出现ơ数的统?出所有的0的次??到X)

举一个例?br>2508q个?br>首先考虑个位?br>250X  X=0;一共有250-1+1?br>25X8  X=0;一共有258-10+1?br>2X08 X=0;注意q不只有208-100+1中可?我之前就错在q里?因ؓ最?508,所?099-2009q百位的零我没有考虑?所以这里的0?99-100+1?br>
于是题目做出来?br>
输入一个a b
a<b
a==0?br>bl计出零的个数然后加1(0)的个?br>否则从a ?b?的个数则是从1到b?个数减去?到a-1的零的个?br>a<10的情冉|x出错就分开写了,所以整个程序有些长

下面是我笨拙的代码

 1#include <iostream>
 2#include <string>
 3#include <cstdio>
 4#include <cstdlib>
 5#include <cmath>
 6using namespace std;
 7long long aarray[10]={0};
 8long long barray[10]={0};
 9long long diff[10]={0};
10char tempstr[10= "";
11
12
13int calc(std::string str,int i)
14{
15    //str.erase()
16    if(i==(str.size()-1)) return 0;
17    long long sum=0,len=str.size();
18    int needminus = int(pow(10.0,i));
19    //if(i!=0)str[len-i-2]+=(str[len-i-1]-'0');//new add
20    if(str[len-i-1]=='0')
21    {
22    str.erase(len-i-1,1);
23    }

24    else
25    {
26        str.erase(len-i-1,i+1);
27        str.append(i,'9');
28    }

29    for(int i=0;i<str.size();i++)
30    {
31        sum=sum*10+(str[i]-'0');
32    }

33    sum-=needminus;
34    sum+=1;
35    return sum;
36}

37
38int main()
39{
40    unsigned int a,b;
41    std::string tempstring;
42    int add;
43    while(scanf("%u %u",&a,&b))
44    {
45        add=0;
46
47        if(a==0)
48            add=1;
49        else {
50            add=0;
51            a--;
52        }

53        if(a==-2)
54            break;
55        int alen,blen;
56        if(a<10)
57        {
58            aarray[0]=0;
59        }

60        else
61        {
62            _i64toa(a,tempstr,10);
63            alen = strlen(tempstr);
64            tempstring.assign(tempstr);
65            for(int i=0;i<alen;i++)
66            {
67                aarray[i]=calc(tempstring,i);
68            }

69        }

70        _i64toa(b,tempstr,10);
71        blen = strlen(tempstr);
72        tempstring.assign(tempstr);
73        for(int i=0;i<blen;i++)
74        {
75            barray[i]=calc(tempstring,i);
76        }

77        for(int i=0;i<blen;i++)
78        {
79            diff[i]=barray[i]-aarray[i];
80        }

81        long long sum=0;
82        for(int i=0;i<blen;i++)
83        {
84            sum+=diff[i];
85        }

86        
87        cout<<sum+add<<endl;
88        memset(aarray,0,sizeof(long long)*10);
89        memset(barray,0,sizeof(long long)*10);
90        memset(diff,0,sizeof(long long)*10);
91    }

92}


 



Gohan 2007-07-25 08:20 发表评论
]]>
一个小l习,帮h?(a^n)%khttp://m.shnenglu.com/gohan/archive/2007/06/01/25299.htmlGohanGohanFri, 01 Jun 2007 14:49:00 GMThttp://m.shnenglu.com/gohan/archive/2007/06/01/25299.htmlhttp://m.shnenglu.com/gohan/comments/25299.htmlhttp://m.shnenglu.com/gohan/archive/2007/06/01/25299.html#Feedback0http://m.shnenglu.com/gohan/comments/commentRss/25299.htmlhttp://m.shnenglu.com/gohan/services/trackbacks/25299.html输入a,n,kQ?<=a,n<=1e9   1<=k<=10000 Q注意:有多l测试数据,LEOF标志判断l束输入Q:
2 32 5
2 30 5

输出(a^n)%k的结果(a的nơ方被k除的余数Q:
输入a,n,kQ?<=a,n<=1e9   1<=k<=10000 Q注意:有多l测试数据,LEOF标志判断l束输入Q:
2 32 5
2 30 5

输出(a^n)%k的结果(a的nơ方被k除的余数Q:
要求复杂度ؓOQlognQ?br>
解决思\,吃屎兄的推导?br>(a*b)Mod c=((a Mod c)*b)Mod c
a^b Mod c  把B写成二进?At ,At-1,At-2...A1,A0)
a^b Mod c =(a^(At*2^t....A0*2^0)mod c)=

((a^A0*2^0 mod c)*a^A1*2^1mod c).....
t=log2B;

下面是小弟的E序

#include <iostream>
using namespace std;
int convertToBin(int n,int (&arr)[14])
{
    
int i=0;
    
while(n)
    
{
        arr[i]
=n%2;
        n
=n/2;
        i
++;
    }

    
return i;
}

int findAnswer(int k,int a,int arr[14],int bsize)
{
    
int ret = 1;
    
for(int i=0;i<bsize;i++)
    
{
        
if(arr[i])
            ret
=(ret*a*(1<<i))%k;
        
else
            ret
=(ret*(1<<i))%k;
    }

    
return ret;
}

int main()
{
    
int a,n,k=1;
    
while(!cin.eof())
    
{
        cin
>>a;
            
if(a==-1break;
        cin
>>n>>k;
        
int arr[14]={0};
        
int bsize = convertToBin(n,arr);
        cout
<<findAnswer(k,a,arr,bsize)<<endl;
    }

}


Gohan 2007-06-01 22:49 发表评论
]]>
实习?个礼拜了http://m.shnenglu.com/gohan/archive/2006/08/02/10774.htmlGohanGohanTue, 01 Aug 2006 16:07:00 GMThttp://m.shnenglu.com/gohan/archive/2006/08/02/10774.htmlhttp://m.shnenglu.com/gohan/comments/10774.htmlhttp://m.shnenglu.com/gohan/archive/2006/08/02/10774.html#Feedback0http://m.shnenglu.com/gohan/comments/commentRss/10774.htmlhttp://m.shnenglu.com/gohan/services/trackbacks/10774.html今天开始给三期工作写一些数据库PL/SQL的过E?br />打算大二学的东西Q?br />(vc#+asp).net  php
l箋学习vc++
努力学习c++ datastruct
要熟(zhn)数据库相关~程Q大二期间争取能想点东西l手。。。?br />路长?..

Gohan 2006-08-02 00:07 发表评论
]]>
3天实习小l?/title><link>http://m.shnenglu.com/gohan/archive/2006/07/15/10110.html</link><dc:creator>Gohan</dc:creator><author>Gohan</author><pubDate>Sat, 15 Jul 2006 14:38:00 GMT</pubDate><guid>http://m.shnenglu.com/gohan/archive/2006/07/15/10110.html</guid><wfw:comment>http://m.shnenglu.com/gohan/comments/10110.html</wfw:comment><comments>http://m.shnenglu.com/gohan/archive/2006/07/15/10110.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/gohan/comments/commentRss/10110.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/gohan/services/trackbacks/10110.html</trackback:ping><description><![CDATA[3天时间学的东西不多,范围却比较广?br />cb会进行各U数据库联接了,从本地Access数据库,到测试用的Oracle服务器?br />对团队工作流E有所认识?br />阅读了本公司前不久完成的价值颇高的源程序的冰山一角,剩下的有I慢慢看吧?br />对于版本控制所用CVS软g有点体会?br /><br />目前最Ơ缺的,因ؓ我们主要是做大数据库相关编E,我对数据库的内容所知很,<br />SQL-Command亟待学习一下?br />另外自己在看侯捷的Dissecting MFCQ刚开始看。。。从深处认识体会微Yq个庞大的Framework<br />。。。。。?br /><br />下周l箋实习吧?img src ="http://m.shnenglu.com/gohan/aggbug/10110.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/gohan/" target="_blank">Gohan</a> 2006-07-15 22:38 <a href="http://m.shnenglu.com/gohan/archive/2006/07/15/10110.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>昨天Q今天,明天?/title><link>http://m.shnenglu.com/gohan/archive/2006/07/11/9704.html</link><dc:creator>Gohan</dc:creator><author>Gohan</author><pubDate>Tue, 11 Jul 2006 12:42:00 GMT</pubDate><guid>http://m.shnenglu.com/gohan/archive/2006/07/11/9704.html</guid><wfw:comment>http://m.shnenglu.com/gohan/comments/9704.html</wfw:comment><comments>http://m.shnenglu.com/gohan/archive/2006/07/11/9704.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/gohan/comments/commentRss/9704.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/gohan/services/trackbacks/9704.html</trackback:ping><description><![CDATA[ <div>昨天早上回来的家?br />大学一q中学到的东西没有太多。书...q是只消化了3本多?..<br />很多杂ؕ无章的东襉K要学吧?br />今天Q仍然看看书Q上上机。准备明天的实习生活?br />我明天会d地媄响最大的IT公司q行业余实习Q其实不能说实习Q?br />是学习。知道明天会用到cb,oracle,q行COMlg~程,我还一炚w不会?br />其实至于vc我也只是console coder...不过没事Q当作去学习吧?br />明天Q期待是好的一天,我会弥补大一知识的空白,实践Q实践,实践?br />希望早日变强?br /></div> <img src ="http://m.shnenglu.com/gohan/aggbug/9704.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/gohan/" target="_blank">Gohan</a> 2006-07-11 20:42 <a href="http://m.shnenglu.com/gohan/archive/2006/07/11/9704.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>□□□□×?□□□□http://m.shnenglu.com/gohan/archive/2006/02/19/3336.htmlGohanGohanSun, 19 Feb 2006 12:15:00 GMThttp://m.shnenglu.com/gohan/archive/2006/02/19/3336.htmlhttp://m.shnenglu.com/gohan/comments/3336.htmlhttp://m.shnenglu.com/gohan/archive/2006/02/19/3336.html#Feedback0http://m.shnenglu.com/gohan/comments/commentRss/3336.htmlhttp://m.shnenglu.com/gohan/services/trackbacks/3336.htmlmop上有人问q个如何~程实现
题目?23456789q?个数字组成一个等?不可重复
□□□□×?□□□□
我的x是枚D
于是Q?BR>
#include <iostream>

using namespace std;

long c[9]={1,1,1,1,1,1,1,1,1};
int check(int);
main()
{
  
for(c[0]=1;c[0]<10;c[0]++)
      
for(c[1]=1;c[1]<10;c[1]++)
          
if (check(1)) ;else
          
for(c[2]=1;c[2]<10;c[2]++)
              
if (check(2)) ; else
              
for(c[3]=1;c[3]<10;c[3]++)
                  
if (check(3)) ;else
                  
for(c[4]=1;c[4]<10;c[4]++)
                      
if (check(4)) ;else
                      
for(c[5]=1;c[5]<10;c[5]++)
                          
if (check(5)) ;else
                          
for(c[6]=1;c[6]<10;c[6]++)
                              
if (check(6)) ;
                              
else for(c[7]=1;c[7]<10;c[7]++)
                                  
if (check(7)) ;
                                  
else for(c[8]=1;c[8]<10;c[8]++){
                                    
if (check(8)) ;
                                    
else if((c[0]*1000+c[1]*100+c[2]*10+c[3])*c[4]==(c[5]*1000+c[6]*100+c[7]*10+c[8])) 
                                        cout
<<c[0]<<c[1]<<c[2]<<c[3]<<"*"<<c[4]<<"="<<c[5]<<c[6]<<c[7]<<c[8]<<endl;
                                  }

                              
                                


                          
}


  
int check(int i){
    
int flag=0;
    
for (int ctr=0;ctr<i;ctr++)
        
if (ctr==i) ctr++;
        
else if(c[ctr]==c[i]) flag++;
    
return flag;

  }


Gohan 2006-02-19 20:15 发表评论
]]>
Ʒ԰״̼þþ| ľƷ99þù | ŷþۺϾɫۺ| þù| þ99Ʒ| þþùƷ| պAVþһ| Ʒþþþþ| һһþaþþƷۺ| ޾ƷҾþþþþ| 99þùѸ| պƷþþþþ| þۺav| AVþþþò| 99ȾƷþֻоƷ| ۺϾþþƷ| ɫþþۺ| ɫۺϾþ88ɫۺ| Ʒ99þþþþ| ˾þۺϳ| þˬˬƬAV | ɫʹþۺ| þù޾Ʒ| ɫۺϾþĻ| ӰһѾþþþþþþ | þòӰ| þó18վ| þ99Ʒһ| ˾þۺ2020| þֻоƷҳ| þþþþúݺݶ| þۺŷ| þ99Ʒþ99| ھƷþþþþþcoent| պŷþþwwwۺ| þþžоƷ23ٻӰԺ| 99ŷþþþƷѿ| 99þһa| þþƷվ| һƷþ| ޹˾Ʒ91þþ |