锘??xml version="1.0" encoding="utf-8" standalone="yes"?>AAA级久久久精品无码区,欧美日韩中文字幕久久伊人,国产精品免费看久久久香蕉http://www.shnenglu.com/apple/涓栦笂鏈棤浜嬶紝搴鎬漢鑷壈涔嬶紒zh-cnThu, 08 May 2025 15:55:33 GMTThu, 08 May 2025 15:55:33 GMT60鍥炴枃http://www.shnenglu.com/apple/archive/2010/08/15/123503.html鏂囨畩騫挎硶鏂囨畩騫挎硶Sun, 15 Aug 2010 08:08:00 GMThttp://www.shnenglu.com/apple/archive/2010/08/15/123503.htmlhttp://www.shnenglu.com/apple/comments/123503.htmlhttp://www.shnenglu.com/apple/archive/2010/08/15/123503.html#Feedback0http://www.shnenglu.com/apple/comments/commentRss/123503.htmlhttp://www.shnenglu.com/apple/services/trackbacks/123503.html#include <iostream>
#include 
<string.h>
using namespace std;
bool is_equal(char str[]) 
{
 
int len=strlen(str);
 
if (len==0)
 
return false;
 
else if (len%2==0)
 
{
 
int mid=len/2;
 
bool flag=true;
 
int i,j; 
 
for(i=0, j=len-1;  i<mid; i++,j--)
 
{
 
if (str[i]==str[j]) 
  
continue;
 
else
 
{
 flag
=false;
 
break;
 }

 }

 
return flag;
 }

 
else
 
return false;
}

int main()
{
char str[]="helleh";
int return_val;
if (is_equal(str))
   return_val
=1;
   
else
   return_val
=0;
   cout
<<return_val<<endl;
}


鏂囨畩騫挎硶 2010-08-15 16:08 鍙戣〃璇勮
]]>
鏈夊簭澶氶」寮忕浉鍔?------------鏁版嵁緇撴瀯澶嶄範http://www.shnenglu.com/apple/archive/2010/08/12/123256.html鏂囨畩騫挎硶鏂囨畩騫挎硶Thu, 12 Aug 2010 15:23:00 GMThttp://www.shnenglu.com/apple/archive/2010/08/12/123256.htmlhttp://www.shnenglu.com/apple/comments/123256.htmlhttp://www.shnenglu.com/apple/archive/2010/08/12/123256.html#Feedback0http://www.shnenglu.com/apple/comments/commentRss/123256.htmlhttp://www.shnenglu.com/apple/services/trackbacks/123256.html//鏈夊簭澶氶」寮忓姞娉?/span>
#include <iostream>
using namespace std;
struct Node
{
 
int coef;
 
int exp;
 Node 
*next;
}
;
class MExpression
{
 
private :
 Node 
*first;
 
public :
 MExpression();
 
void InsertNode(int coef,int exp);
 
void DeleteNode(int exp);
 
void Add(MExpression me);
 
void PrintAll();
}
;
MExpression::MExpression()
{
 first
->next=NULL;
}

void MExpression::InsertNode(int coef,int exp)
{
 Node 
*s=new Node();
 Node 
*p=first;
 
while(p->next!=NULL)
 p
=p->next;
 s
->coef=coef;
 s
->exp=exp;
 s
->next=p->next;
 p
->next=s;
}

void MExpression::DeleteNode(int exp)
{
 Node 
*p=first->next;
 Node 
*q;
 q
=first;
 
while(p!=NULL)
 
{
 
if (p->exp==exp) break;
  q
=p;
 p
=p->next;
 }

 q
->next=p->next;
 delete p;
}

void MExpression::Add(MExpression me)
{
 
int i=0,j=0;
 Node 
*p=first->next;
 Node 
*q=me.first->next;
 Node 
*pp,*qq;
 pp
=first;
 qq
=me.first; 
 
while(p&&q)
 
{
  
if (p->exp>q->exp)
  
{
  InsertNode(q
->coef,q->exp);
  q
=q->next;
  }

  
else if(p->exp==q->exp)
  
{
  p
->coef+=q->coef;
  p
=p->next;
  q
=q->next;
  }

  
else
  
{
  p
=p->next;
  }

 }

 
while(q)
 
{
  InsertNode(q
->coef,q->exp);
  q
=q->next;
  }

}

void MExpression::PrintAll()
{
cout
<<"=== coef c exp e ==="<<endl;
Node 
*p=first->next;
while(p!=NULL)
{
cout
<<p->coef<<"  c "<<p->exp<<" e ";
p
=p->next;
}

}

int main()
{
MExpression 
*me1=new MExpression();
MExpression 
*me2=new MExpression();
me1
->InsertNode(1,1);
me1
->InsertNode(2,2);
me1
->InsertNode(3,3);
me1
->InsertNode(4,4);
me2
->InsertNode(1,2);
me2
->InsertNode(2,3);
me2
->InsertNode(3,4);
me2
->InsertNode(4,5);
me1
->Add(*me2);
me1
->PrintAll();
}




]]>
寰幆鍙岄摼琛?---鏁版嵁緇撴瀯澶嶄範http://www.shnenglu.com/apple/archive/2010/08/12/123243.html鏂囨畩騫挎硶鏂囨畩騫挎硶Thu, 12 Aug 2010 12:36:00 GMThttp://www.shnenglu.com/apple/archive/2010/08/12/123243.htmlhttp://www.shnenglu.com/apple/comments/123243.htmlhttp://www.shnenglu.com/apple/archive/2010/08/12/123243.html#Feedback0http://www.shnenglu.com/apple/comments/commentRss/123243.htmlhttp://www.shnenglu.com/apple/services/trackbacks/123243.html/*
寰幆鍙岄摼琛?br>
*/


#include 
<iostream>
using namespace std;
struct Node
{
 
int data;
 Node 
*next;
 Node 
*prior;
}
;

class CycleDLList
{
 
private :
 Node 
*first;
 
public:
 CycleDLList();
 
void InsertNode(int data);
 
void DeleteNode(int data);
 
void PrintAll();
}
;

CycleDLList::CycleDLList()
{
 first
->prior=first;
 first
->next=first;
}

void CycleDLList::InsertNode(int data)
{
 Node 
*s=new Node();
 s
->data=data;
 Node 
*p=first->next;
  
while(p->next!=first)
  
{
   p
=p->next;
  }

  s
->prior=p;
  s
->next=p->next;
  p
->next->prior=s;
  p
->next=s;
}

void CycleDLList::DeleteNode(int data)
{
 Node 
*p=first->next;
 Node 
*q;
 
while(p!=first)
 
{
 
if(p->data==data) break;
 q
=p;
 p
=p->next;
 }

 
if (p!=first)
 
{
 q
->next=p->next;
 p
->next->prior=q;
 delete p;
 }

}

void CycleDLList:: PrintAll()
{
Node 
*p=first->next;
Node 
*q=first->prior;
cout
<<"p=p->next"<<endl;
while(p!=first)
{
cout
<<p->data<<" ";
p
=p->next;
}

cout
<<endl;
cout
<<"q=q->prior"<<endl;
while(q!=first)
{
cout
<<q->data<<" ";
q
=q->prior;
}

}

int main()
{
CycleDLList 
*cd=new CycleDLList();
cd
->InsertNode(5);
cd
->InsertNode(4);
cd
->InsertNode(3);
cd
->InsertNode(2);
cd
->PrintAll();
cd
->DeleteNode(2);
cd
->PrintAll();


}



鏂囨畩騫挎硶 2010-08-12 20:36 鍙戣〃璇勮
]]>
寰幆鍗曢摼琛?---澶嶄範鏁版嵁緇撴瀯http://www.shnenglu.com/apple/archive/2010/08/09/122778.html鏂囨畩騫挎硶鏂囨畩騫挎硶Mon, 09 Aug 2010 06:58:00 GMThttp://www.shnenglu.com/apple/archive/2010/08/09/122778.htmlhttp://www.shnenglu.com/apple/comments/122778.htmlhttp://www.shnenglu.com/apple/archive/2010/08/09/122778.html#Feedback0http://www.shnenglu.com/apple/comments/commentRss/122778.htmlhttp://www.shnenglu.com/apple/services/trackbacks/122778.html 1#include <iostream>
 2using namespace std;
 3
 4struct Node
 5 {
 6  int data;
 7  Node *next;
 8 }
;
 9 class CycleLinkList
10  {
11   private :
12   Node *first;
13   public :
14   CycleLinkList();
15   void InsertNode(int data);
16   void DeleteNode(int data);
17   void PrintAll();
18   }
;
19   
20   CycleLinkList:: CycleLinkList()
21   {
22    first=first->next;
23   }

24   void CycleLinkList::InsertNode(int data)
25   {
26   Node *s=new Node();
27   s->data=data;
28   Node *p=first;
29   if (p->next==first)
30   {
31   s->next=first->next;
32   first->next=s;
33   }

34   else
35   {
36   while(p->next!=first) p=p->next;
37   s->next=p->next;
38   p->next=s;
39   }

40   }

41   
42   void CycleLinkList::DeleteNode(int data)
43   {
44   Node *p=first->next;
45   Node *q=first->next;
46   while(p!=first)
47   {
48    if (p->data==data) break;
49    else
50    {
51    q=p;
52    p=p->next;
53    }

54   }

55   q->next=p->next;
56   delete p;   
57   }

58   void CycleLinkList:: PrintAll()
59   {
60   Node *p=first->next;
61   
62   while(p!=first)
63   {
64   cout<<p->data<<"  ";
65   p=p->next;
66   }

67   }

68   int main()
69   {
70   CycleLinkList *cl=new CycleLinkList();
71   cl->InsertNode(3);
72   cl->InsertNode(4);
73   cl->InsertNode(5);
74   cl->InsertNode(6);
75   cl->PrintAll();
76   cl->DeleteNode(4);
77   cl->PrintAll();
78   }


鏂囨畩騫挎硶 2010-08-09 14:58 鍙戣〃璇勮
]]>
java閫夋嫨 鍐掓場 鎻掑叆鎺掑簭http://www.shnenglu.com/apple/archive/2009/10/25/99433.html鏂囨畩騫挎硶鏂囨畩騫挎硶Sun, 25 Oct 2009 11:33:00 GMThttp://www.shnenglu.com/apple/archive/2009/10/25/99433.htmlhttp://www.shnenglu.com/apple/comments/99433.htmlhttp://www.shnenglu.com/apple/archive/2009/10/25/99433.html#Feedback0http://www.shnenglu.com/apple/comments/commentRss/99433.htmlhttp://www.shnenglu.com/apple/services/trackbacks/99433.htmlpublic class SortDemo{
    
private int[] sortArray;

    
public SortDemo(){
        sortArray
=new int[8];
    }


    
public void swap(int i,int j){
        
int t=sortArray[i];
        sortArray[i]
=sortArray[j];
        sortArray[j]
=t;
    }


    
public void insertArray(int pos,int val){
        sortArray[pos]
=val;
    }


    
public void selectSort(){
        
int t,tt;
        
for(int j=0;j<sortArray.length-1;j++){

        
for(int i=j+1;i<sortArray.length;i++){

            
if(sortArray[i]<sortArray[j]) swap(i,j);
        }

        }

    }



    
public void bubbleSort(){
        
int exchange=sortArray.length;
        
int bound;
        
while(exchange!=0){
            bound
=exchange-1;
            exchange
=0;
        
for(int i=0;i<bound;i++){
            
if(sortArray[i]>sortArray[i+1]){
                 swap(i,i
+1);
                 exchange
=i+1;
            }

        }

        }


    }


    
public void insertSort(){
        
for(int i=1;i<sortArray.length;i++){
            
int temp=sortArray[i];
            
int j=i;
            
while(j>0&&temp<sortArray[j-1]){
                sortArray[j]
=sortArray[j-1];
                j
--;
            }

            sortArray[j]
=temp;
        }


    }


    
public void showResult(){
        
for(int i =0;i<sortArray.length;i++)
        System.out.print(sortArray[i]
+"  ");
        System.out.println(
"");
    }


    
public static void main(String[] args){

        SortDemo so
=new SortDemo();
        so.insertArray(
0,2);
        so.insertArray(
1,23);
        so.insertArray(
2,22);
        so.insertArray(
3,12);
        so.insertArray(
4,42);
        so.insertArray(
5,32);
        so.insertArray(
6,62);
        so.insertArray(
7,52);
        so.showResult();
        so.selectSort();
        so.showResult();
        so.bubbleSort();
        so.showResult();
        so.insertSort();
        so.showResult();

    }

}


鏂囨畩騫挎硶 2009-10-25 19:33 鍙戣〃璇勮
]]>
asp access 鏁版嵁搴撻摼鎺?/title><link>http://www.shnenglu.com/apple/archive/2009/05/11/82629.html</link><dc:creator>鏂囨畩騫挎硶</dc:creator><author>鏂囨畩騫挎硶</author><pubDate>Mon, 11 May 2009 13:59:00 GMT</pubDate><guid>http://www.shnenglu.com/apple/archive/2009/05/11/82629.html</guid><wfw:comment>http://www.shnenglu.com/apple/comments/82629.html</wfw:comment><comments>http://www.shnenglu.com/apple/archive/2009/05/11/82629.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/apple/comments/commentRss/82629.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/apple/services/trackbacks/82629.html</trackback:ping><description><![CDATA[<p> </p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #000000">dim conn,Strconn<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>Set conn = Server.CreateObject("ADODB.Connection")   <br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>  Strconn="DRIVER={Microsoft Access Driver (*.mdb)};"   <br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>  Strconn=Strconn &"DBQ=" & Server.MapPath ("baoming.mdb")   <br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>  conn.Open Strconn   </span></div> 寰堟檿錛岃繖涓暟鎹簱閾炬帴錛屾垜璇曚簡鍑犲崄嬈★紝鏈鍚庡垹鎺変竴涓┖鏍兼椂灞呯劧灝監K鍟︼紝閮侀椃錛? <img src ="http://www.shnenglu.com/apple/aggbug/82629.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/apple/" target="_blank">鏂囨畩騫挎硶</a> 2009-05-11 21:59 <a href="http://www.shnenglu.com/apple/archive/2009/05/11/82629.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>swing.JOptionPanehttp://www.shnenglu.com/apple/archive/2009/05/11/82581.html鏂囨畩騫挎硶鏂囨畩騫挎硶Mon, 11 May 2009 08:14:00 GMThttp://www.shnenglu.com/apple/archive/2009/05/11/82581.htmlhttp://www.shnenglu.com/apple/comments/82581.htmlhttp://www.shnenglu.com/apple/archive/2009/05/11/82581.html#Feedback0http://www.shnenglu.com/apple/comments/commentRss/82581.htmlhttp://www.shnenglu.com/apple/services/trackbacks/82581.html 

import javax.swing.JOptionPane;

public class windowss{
    
public static void main(String[] args){
        String aa;
        aa
=JOptionPane.showInputDialog("please enter a number:");
        String bb;
        bb
=JOptionPane.showInputDialog("plese enter a number:");
        
int a;
        a
=Integer.parseInt(aa)+Integer.parseInt(bb);;
        String outstr;
        JOptionPane.showMessageDialog(
null,"the result is:"+a,"try",JOptionPane.INFORMATION_MESSAGE);
        System.exit(
0);
    }

}
鍒氬JAVA錛屾湁鐐瑰枩嬈紝鐣岄潰姣擵C6.0濂界湅錛屽懙鍛碉紝
parseInt(str),鎶婁竴涓瓧絎︿覆杞寲鎴恑nt綾誨瀷
showInputDialog( String),涓涓緭鍏ュ璇濇
showMessageDialog(String);涓涓樉紺烘秷鎭殑瀵硅瘽妗?

鏂囨畩騫挎硶 2009-05-11 16:14 鍙戣〃璇勮
]]>
鏂囦歡APIhttp://www.shnenglu.com/apple/archive/2009/04/30/81556.html鏂囨畩騫挎硶鏂囨畩騫挎硶Thu, 30 Apr 2009 05:05:00 GMThttp://www.shnenglu.com/apple/archive/2009/04/30/81556.htmlhttp://www.shnenglu.com/apple/comments/81556.htmlhttp://www.shnenglu.com/apple/archive/2009/04/30/81556.html#Feedback0http://www.shnenglu.com/apple/comments/commentRss/81556.htmlhttp://www.shnenglu.com/apple/services/trackbacks/81556.htmlCFileDialog( BOOL bOpenFileDialog, LPCTSTR lpszDefExt = NULL, LPCTSTR lpszFileName = NULL, DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, LPCTSTR lpszFilter = NULL, CWnd* pParentWnd = NULL );

bOpenFileDialog

Set to TRUE to construct a File Open dialog box or FALSE to construct a File Save As dialog box.

// CFileDialog dlg(false,"TXT",NULL,NULL,"Text file(*.txt)|*.TXT|",NULL);

璇誨彇鏂囦歡錛?/p>

virtual UINT Read( void* lpBuf, UINT nCount );
throw( CFileException );

lpbuf緙撳啿鍖烘寚閽?/strong>

nCount瑕佽鐨勯暱搴?/strong>

/*


int len=file.GetLength();

char *buffer=new char[len+1];

if(!buffer)

{

MessageBox("Allocating fail");

}

else

{

try

{

file.Read(buffer,len);

}

catch(CFileException *e)

{

MessageBox("Reading file error");

file.Close();

e->Delete();

return ;

}

*/

鑾峰彇褰撳墠鏃墮棿錛?/strong>

current_time=CTime::GetCurrentTime();

str_year.Format("%d",current_time.GetYear());

str_month.Format("%d",current_time.GetMonth());

str_day.Format("%d",current_time.GetDay());

CString m_date=str_year+"-"+str_month+"-"+str_day;

 




]]>
鐢葷洿鏂瑰浘http://www.shnenglu.com/apple/archive/2009/04/29/81506.html鏂囨畩騫挎硶鏂囨畩騫挎硶Wed, 29 Apr 2009 15:16:00 GMThttp://www.shnenglu.com/apple/archive/2009/04/29/81506.htmlhttp://www.shnenglu.com/apple/comments/81506.htmlhttp://www.shnenglu.com/apple/archive/2009/04/29/81506.html#Feedback0http://www.shnenglu.com/apple/comments/commentRss/81506.htmlhttp://www.shnenglu.com/apple/services/trackbacks/81506.html
CRect rc(10,10,20,200);
CBrush bru;
    bru.CreateHatchBrush (HS_BDIAGONAL   ,RGB(0,0,255));
pDC->SelectObject (&bru);
pDC->Rectangle (&rc);
pDC->SelectObject (&bru);
bru.DeleteObject ();
榪欐槸浜岀淮鐨勶紝涓嬮潰鏄笁緇寸殑
涓夌淮鐨勭洿鏂瑰浘錛屽彧鏄収鎴戜滑鎵嬬敾鍦嗘煴浣擄紝鍦ㄤ簩緇寸殑鍩虹涓婂湪涓婇潰鍜屼晶闈㈠姞浜嗗鉤琛屽洓杈?/div>
CRect rc(50,50,100,200);
CBrush bru;
    CPoint r[4];
    bru.CreateHatchBrush (HS_BDIAGONAL   ,RGB(0,0,255));
pDC->SelectObject (&bru);
pDC->Rectangle(&rc);
//欏墮儴鍥涜竟褰?/div>
    r[0].x=50;r[0].y=50;
r[1].x =100;r[1].y=0;
r[2].x=150;r[2].y=0;
r[3].x=100;r[3].y=50;
pDC->Polygon (r,4);
    r[0].x=100;r[0].y=200;
r[1].x =150;r[1].y=150;
r[2].x=150;r[2].y=0;
r[3].x=100;r[3].y=50;
    pDC->Polygon (r,4);
pDC->SelectObject (&bru);
bru.DeleteObject ();


]]>緇樺浘API 浣嶅浘鏄劇ずhttp://www.shnenglu.com/apple/archive/2009/04/28/81382.html鏂囨畩騫挎硶鏂囨畩騫挎硶Tue, 28 Apr 2009 15:39:00 GMThttp://www.shnenglu.com/apple/archive/2009/04/28/81382.htmlhttp://www.shnenglu.com/apple/comments/81382.htmlhttp://www.shnenglu.com/apple/archive/2009/04/28/81382.html#Feedback0http://www.shnenglu.com/apple/comments/commentRss/81382.htmlhttp://www.shnenglu.com/apple/services/trackbacks/81382.html緗簬ONDRAW鍑芥暟閲岄潰錛堝崟鏂囨。錛夛細

CBitmap bm,*pbm;      //瀹氫箟浣嶅浘瀵硅薄
 BITMAP bmMetric;     //瀹氫箟浣嶅浘緇撴瀯鍙橀噺錛屼繚瀛樹綅鍥劇殑鍙傛暟濡傚錛岄珮
 bm.LoadBitmap (IDB_BITMAP2);   
 bm.GetBitmap (&bmMetric);  //淇濆瓨浣嶅浘鐨勫弬鏁板埌緇撴瀯鍙橀噺bmMetric

 CDC memDC;                  //瀹氫箟璁懼鐜綾誨璞?br> memDC.CreateCompatibleDC (pDC);   //鍒涘緩鍐呭瓨璁懼鐜
   
 pbm=memDC.SelectObject (&bm);     //灝嗕綅鍥鵑夊叆璁懼鐜
 //灝嗗唴瀛樿澶囩幆澧冪殑浣嶅浘浼犺緭鍒拌澶囩幆澧?br> pDC->BitBlt (0,0,bmMetric.bmWidth ,bmMetric.bmHeight ,&memDC,0,0,SRCCOPY);
 memDC.SelectObject (pbm);  //鎭㈠鍘熻澶囩幆澧冨璞?br>    bm.DeleteObject ();
    memDC.DeleteDC();



]]>
久久久久四虎国产精品| 色噜噜狠狠先锋影音久久| 久久久久国产精品人妻| 伊人久久久AV老熟妇色| 狠狠色丁香久久婷婷综| 精品人妻伦一二三区久久| 亚洲精品无码久久久久AV麻豆| 精品久久久久久国产| 亚洲综合久久综合激情久久| 久久综合亚洲色HEZYO国产| 久久久久亚洲精品天堂| 精品久久久久久无码中文野结衣 | 久久综合给久久狠狠97色| 久久综合欧美成人| 日本五月天婷久久网站| 久久99热精品| 亚洲va久久久噜噜噜久久狠狠| 亚洲国产精品一区二区久久| 一本色道久久88—综合亚洲精品| 久久免费精品一区二区| 中文字幕热久久久久久久| 精品久久久久久久久久中文字幕| 国产亚洲精品美女久久久| 亚洲精品乱码久久久久久蜜桃 | 久久久久亚洲AV无码专区桃色| 中文国产成人精品久久不卡| 深夜久久AAAAA级毛片免费看| 久久超乳爆乳中文字幕| 97精品依人久久久大香线蕉97| 精品久久久久久国产三级| 久久精品国产99国产电影网| 国产精品久久久久蜜芽| 久久久久久无码国产精品中文字幕 | 日韩乱码人妻无码中文字幕久久| 久久久久亚洲AV综合波多野结衣| 久久成人精品视频| 91精品国产综合久久精品| 亚洲国产精品无码久久| 久久久无码精品亚洲日韩蜜臀浪潮| 久久涩综合| 久久青青国产|