锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久天天躁狠狠躁夜夜网站
,91精品国产高清久久久久久91
,色99久久久久高潮综合影院http://www.shnenglu.com/mrcplusplus/zh-cnWed, 07 May 2025 13:33:05 GMTWed, 07 May 2025 13:33:05 GMT60- 鐢ㄩ掕鏂規(guī)硶瑙e喅Hanoi闂http://www.shnenglu.com/mrcplusplus/archive/2007/03/15/19907.html澶х唺鐚?/dc:creator>澶х唺鐚?/author>Thu, 15 Mar 2007 08:46:00 GMThttp://www.shnenglu.com/mrcplusplus/archive/2007/03/15/19907.htmlhttp://www.shnenglu.com/mrcplusplus/comments/19907.htmlhttp://www.shnenglu.com/mrcplusplus/archive/2007/03/15/19907.html#Feedback0http://www.shnenglu.com/mrcplusplus/comments/commentRss/19907.htmlhttp://www.shnenglu.com/mrcplusplus/services/trackbacks/19907.html聽
void
聽move(
int
聽number,
char
聽from,
char
聽rely,
char
聽to)

{
聽聽聽聽
if
(number聽
==
聽
1
)

聽聽聽聽
{
聽聽聽聽聽聽聽聽printf(
"
Move聽a聽disk聽from聽%c聽to聽%c\n
"
,from,to);
聽聽聽聽聽聽聽聽
return
;
聽聽聽聽}
聽聽聽聽move(number
-
1
,from,to,rely);
聽聽聽聽move(
1
,from,rely,to);
聽聽聽聽move(number
-
1
,rely,from,to);
}
int
聽_tmain(
int
聽argc,聽_TCHAR
*
聽argv[])

{
聽聽聽聽move(
3
,
'
A
'
,
'
B
'
,
'
C
'
);
聽聽聽聽::system(
"
pause
"
);
聽聽聽聽
return
聽
0
;
}
聽
聽

]]>- 鎻掑叆鎺掑簭http://www.shnenglu.com/mrcplusplus/archive/2007/03/15/19902.html澶х唺鐚?/dc:creator>澶х唺鐚?/author>Thu, 15 Mar 2007 08:32:00 GMThttp://www.shnenglu.com/mrcplusplus/archive/2007/03/15/19902.htmlhttp://www.shnenglu.com/mrcplusplus/comments/19902.htmlhttp://www.shnenglu.com/mrcplusplus/archive/2007/03/15/19902.html#Feedback0http://www.shnenglu.com/mrcplusplus/comments/commentRss/19902.htmlhttp://www.shnenglu.com/mrcplusplus/services/trackbacks/19902.html
聽1
int
聽A[
10
]
=
{
1
,
2
,
5
,
7
,
3
,
14
,
78
,
25
,
11
,
14
}
;
聽2
void
聽InsertSort(
int
聽a[],
int
聽size)
聽3
{
聽4
聽聽聽聽
for
(
int
聽i
=
1
;聽i
<
size;聽i
++
)
聽5
聽聽聽聽
{
聽6
聽聽聽聽聽聽聽聽
int
聽key
=
a[i];
聽7
聽聽聽聽聽聽聽聽
int
聽j
=
i
-
1
;
聽8
聽聽聽聽聽聽聽聽
while
(a[j]
>
key聽
&&
聽j
>=
0
)
聽9
聽聽聽聽聽聽聽聽
{
10
聽聽聽聽聽聽聽聽聽聽聽聽a[j
+
1
]
=
a[j];
11
聽聽聽聽聽聽聽聽聽聽聽聽j
--
;
12
聽聽聽聽聽聽聽聽}
13
聽聽聽聽聽聽聽聽a[j
+
1
]
=
key;
14
聽聽聽聽}
15
}
16
17
int
聽_tmain(
int
聽argc,聽_TCHAR
*
聽argv[])
18
{
19
20
聽聽聽聽InsertSort(A,
sizeof
(A)
/
sizeof
(A[
0
]));
21
聽聽聽聽
for
(
int
聽i
=
0
;聽i
<
10
;聽i
++
)
22
聽聽聽聽
{
23
聽聽聽聽聽聽聽聽printf(
"
%d\n
"
,A[i]);
24
聽聽聽聽}
25
聽聽聽聽::system(
"
pause
"
);
26
聽聽聽聽
return
聽
0
;
27
}
28

]]> - SDL娓告垙緙栫▼(8)榧犳爣浜嬩歡http://www.shnenglu.com/mrcplusplus/archive/2007/03/12/19653.html澶х唺鐚?/dc:creator>澶х唺鐚?/author>Mon, 12 Mar 2007 12:10:00 GMThttp://www.shnenglu.com/mrcplusplus/archive/2007/03/12/19653.htmlhttp://www.shnenglu.com/mrcplusplus/comments/19653.htmlhttp://www.shnenglu.com/mrcplusplus/archive/2007/03/12/19653.html#Feedback3http://www.shnenglu.com/mrcplusplus/comments/commentRss/19653.htmlhttp://www.shnenglu.com/mrcplusplus/services/trackbacks/19653.html寰堝娓告垙閮芥槸鐢ㄩ紶鏍囨帶鍒剁殑錛屾墍浠ヨ澶勭悊榧犳爣浜嬩歡涔熸槸闈炲父閲嶈鐨勶紝榧犳爣浜嬩歡鍜岄敭鐩樹簨浠跺鐞嗘柟寮忓樊鐨勪笉澶錛屾墍浠ユ垜灝辯洿鎺ョ粰鍑轟簡涓涓皬紼嬪簭錛岃紼嬪簭鎶婄獥鍙d竴鍒嗕負浜岋紝褰撳湪宸﹀崐閮ㄥ垎縐誨姩鏃訛紝宸﹂潰閮ㄥ垎灝卞彉緇胯壊錛屽彸闈㈤儴鍒嗗彉榛戣壊錛屽湪鍙沖崐閮ㄥ垎縐誨姩鏃訛紝璇ラ儴鍒嗗氨鍙樿摑鑹詫紝宸﹀崐閮ㄥ垎灝卞彉鎴愪簡榛戣壊錛屽綋榧犳爣宸﹀嚮鏃訛紝瀵瑰簲鐨勯儴鍒嗗皢浼氬彉綰㈣壊銆?br />
#include聽
"
SDL.h
"
#include聽
"
SDL_ttf.h
"
SDL_Surface聽
*
screen
=
NULL;

TTF_Font聽
*
font
=
NULL;
//
screen聽to聽show聽on聽window
const
聽
int
聽SCREEN_BPP
=
32
;



int
聽main(聽
int
聽argc,聽
char
*
聽args[]聽)

{
聽聽聽聽
//
Start聽SDL
聽聽聽聽
bool
聽quit
=
false
;
聽聽聽聽SDL_Rect聽rectLeft;
聽聽聽聽SDL_Rect聽rectRight;
聽聽聽聽rectLeft.x
=
0
;
聽聽聽聽rectLeft.y
=
0
;
聽聽聽聽rectLeft.w
=
320
;
聽聽聽聽rectLeft.h
=
480
;
聽聽聽聽rectRight.x
=
320
;
聽聽聽聽rectRight.y
=
0
;
聽聽聽聽rectRight.w
=
640
;
聽聽聽聽rectRight.h
=
480
;
聽聽聽聽SDL_Init(聽SDL_INIT_EVERYTHING聽);
聽聽聽聽
if
(TTF_Init()
==-
1
)
聽聽聽聽聽聽聽聽
return
聽
false
;
聽聽聽聽
聽聽聽聽screen聽
=
聽SDL_SetVideoMode(聽
600
,聽
480
,聽SCREEN_BPP,聽SDL_SWSURFACE聽);
聽聽聽聽
if
(screen
==
NULL)
聽聽聽聽聽聽聽聽
return
聽
false
;

聽聽聽聽Uint32聽colorBlue
=
SDL_MapRGB(screen
->
format,
0
,
0
,
255
);
聽聽聽聽Uint32聽colorGreen
=
SDL_MapRGB(screen
->
format,
0
,
255
,
0
);
聽聽聽聽Uint32聽colorRed
=
SDL_MapRGB(screen
->
format,
255
,
0
,
0
);
聽聽聽聽Uint32聽colorBlack
=
SDL_MapRGB(screen
->
format,
0
,
0
,
0
);
聽聽聽聽SDL_Event聽
event
;
聽聽聽聽
while
(
!
quit)

聽聽聽聽
{
聽聽聽聽聽聽聽聽
if
(SDL_PollEvent(
&
event
))

聽聽聽聽聽聽聽聽
{
聽聽聽聽聽聽聽聽聽聽聽聽
if
(
event
.type聽
==
聽SDL_MOUSEMOTION)

聽聽聽聽聽聽聽聽聽聽聽聽
{
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽Uint16聽x
=
event
.motion.x;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽Uint16聽y
=
event
.motion.y;


聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
if
(x
>
0
聽
&&
聽x
<
320
聽
&&
聽y
>
0
聽
&&
聽y
<
480
聽)

聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
{
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽SDL_FillRect(screen,
&
rectLeft,colorBlue);
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽SDL_FillRect(screen,
&
rectRight,colorBlack);
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
if
(x
>
320
聽
&&
聽x
<
640
聽
&&
聽y
>
0
聽
&&
聽y
<
480
聽)

聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
{
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽SDL_FillRect(screen,
&
rectRight,colorGreen);
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽SDL_FillRect(screen,
&
rectLeft,colorBlack);
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽聽聽聽聽
if
(
event
.type聽
==
SDL_MOUSEBUTTONDOWN)

聽聽聽聽聽聽聽聽聽聽聽聽
{
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽Uint16聽x
=
event
.motion.x;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽Uint16聽y
=
event
.motion.y;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
if
(
event
.button.button聽
==
聽SDL_BUTTON_LEFT)

聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
{
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
if
(x
>
0
聽
&&
聽x
<
320
聽
&&
聽y
>
0
聽
&&
聽y
<
480
聽)

聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
{
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽SDL_FillRect(screen,
&
rectLeft,colorRed);
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
if
(x
>
320
聽
&&
聽x
<
640
聽
&&
聽y
>
0
聽
&&
聽y
<
480
聽)

聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
{
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽SDL_FillRect(screen,
&
rectRight,colorRed);
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽聽聽聽聽
if
(
event
.type聽
==
聽SDL_QUIT)
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽quit
=
true
;
聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽
if
(SDL_Flip(screen)聽
==
聽
-
1
)

聽聽聽聽聽聽聽聽
{
聽聽聽聽聽聽聽聽聽聽聽聽
return
聽
false
;
聽聽聽聽聽聽聽聽}
聽聽聽聽}
聽聽聽聽SDL_FreeSurface(screen);
聽聽聽聽SDL_Quit();

聽聽聽聽
return
聽
0
;聽聽聽聽
}

]]> - SDL娓告垙緙栫▼(7)閿洏浜嬩歡http://www.shnenglu.com/mrcplusplus/archive/2007/03/12/19649.html澶х唺鐚?/dc:creator>澶х唺鐚?/author>Mon, 12 Mar 2007 11:27:00 GMThttp://www.shnenglu.com/mrcplusplus/archive/2007/03/12/19649.htmlhttp://www.shnenglu.com/mrcplusplus/comments/19649.htmlhttp://www.shnenglu.com/mrcplusplus/archive/2007/03/12/19649.html#Feedback0http://www.shnenglu.com/mrcplusplus/comments/commentRss/19649.htmlhttp://www.shnenglu.com/mrcplusplus/services/trackbacks/19649.htmltypedef union{
聽 Uint8 type;
聽 SDL_ActiveEvent active;
聽 SDL_KeyboardEvent key;
聽 SDL_MouseMotionEvent motion;
聽 SDL_MouseButtonEvent button;
聽 SDL_JoyAxisEvent jaxis;
聽 SDL_JoyBallEvent jball;
聽 SDL_JoyHatEvent jhat;
聽 SDL_JoyButtonEvent jbutton;
聽 SDL_ResizeEvent resize;
聽 SDL_ExposeEvent expose;
聽 SDL_QuitEvent quit;
聽 SDL_UserEvent user;
聽 SDL_SywWMEvent syswm;
} SDL_Event;
褰撳彂鐢熼敭鐩樹簨浠舵椂錛宬ey鍙橀噺灝辨槸鏈夋晥鐨勩?br />typedef struct{
聽 Uint8 type;
聽 Uint8 state;
聽 SDL_keysym keysym;
} SDL_KeyboardEvent;
key鍙橀噺鏄竴涓粨鏋勪綋錛屽叾涓璳eysym鎴愬憳鍖呭惈浜嗘寜閿俊鎭?br />typedef struct{
聽 Uint8 scancode;
聽 SDLKey sym;
聽 SDLMod mod;
聽 Uint16 unicode;
} SDL_keysym;
鍦╧eysym鐨勬垚鍛樺綋涓紝sym璁板綍鎸夐敭鎵瀵瑰簲鐨勮櫄鎷熼敭銆?br />姣斿璇村悜涓婂氨鏄疭DLK_UP錛涘悜涓嬪氨鏄疭DLK_DOWN錛涘ぇ瀹跺彲浠ヨ嚜宸卞幓鏌ユ墜鍐屻?br />
涓嬮潰灝辯湅涓涓鐞嗛敭鐩樻秷鎭殑瀹炰緥鍚с?br />璇ヤ緥瀛愪腑錛屾垜浠竴鏃﹀彂鐜版湁涓婁笅宸﹀彸鍥涗釜閿鎸変笅錛屽氨椹笂鍦ㄥ睆騫曚笂鏄劇ず鐩稿搴旂殑娑堟伅錛岃繖閲岀敤鍒頒簡鎵╁睍綾誨簱SDL_TTF錛屽鏈変笉娓呮鐨勶紝鍙傝冧竴涓嬪墠闈㈢殑鍑犵瘒鏂囩珷銆?br />
#include聽"SDL.h"
#include聽"SDL_ttf.h"
SDL_Surface聽*screen=NULL;
SDL_Surface聽*up=NULL;
SDL_Surface聽*down=NULL;
SDL_Surface聽*left=NULL;
SDL_Surface聽*right=NULL;
SDL_Surface聽*message=NULL;
TTF_Font聽*font=NULL;
//screen聽to聽show聽on聽window
const聽int聽SCREEN_BPP=32;

SDL_Color聽textColor=
{255,255,255};


int聽main(聽int聽argc,聽char*聽args[]聽)


{
聽聽聽聽//Start聽SDL
聽聽聽聽bool聽quit=false;
聽聽聽聽SDL_Init(聽SDL_INIT_EVERYTHING聽);
聽聽聽聽if(TTF_Init()==-1)
聽聽聽聽聽聽聽聽return聽false;

聽聽聽聽screen聽=聽SDL_SetVideoMode(聽600,聽480,聽SCREEN_BPP,聽SDL_SWSURFACE聽);
聽聽聽聽if(screen==NULL)
聽聽聽聽聽聽聽聽return聽false;
聽聽聽聽font=TTF_OpenFont("tahoma.ttf",28);
聽聽聽聽up聽=聽TTF_RenderText_Solid(聽font,聽"Up聽was聽pressed.",聽textColor聽);
聽聽聽聽down聽=聽TTF_RenderText_Solid(聽font,聽"Down聽was聽pressed.",聽textColor聽);
聽聽聽聽left聽=聽TTF_RenderText_Solid(聽font,聽"Left聽was聽pressed",聽textColor聽);
聽聽聽聽right聽=聽TTF_RenderText_Solid(聽font,聽"Right聽was聽pressed",聽textColor聽);
聽聽聽聽SDL_Event聽event;
聽聽聽聽while(!quit)

聽聽聽聽
{
聽聽聽聽聽聽聽聽if(SDL_PollEvent(&event))

聽聽聽聽聽聽聽聽
{
聽聽聽聽聽聽聽聽聽聽聽聽if(event.type聽==聽SDL_KEYDOWN)

聽聽聽聽聽聽聽聽聽聽聽聽
{
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽switch(event.key.keysym.sym)

聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
{
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽case聽SDLK_UP:聽message=up;break;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽case聽SDLK_DOWN:聽message=down;break;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽case聽SDLK_LEFT:聽message=left;break;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽case聽SDLK_RIGHT:聽message=right;break;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽聽聽聽聽if(event.type聽==聽SDL_QUIT)
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽quit=true;
聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽if(message聽!=聽NULL)

聽聽聽聽聽聽聽聽
{
聽聽聽聽聽聽聽聽聽聽聽聽Uint32聽colorVal=SDL_MapRGB(screen->format,0,0,0);
聽聽聽聽聽聽聽聽聽聽聽聽SDL_FillRect(screen,聽&screen->clip_rect,colorVal);
聽聽聽聽聽聽聽聽聽聽聽聽SDL_BlitSurface(message,NULL,screen,NULL);

聽聽聽聽聽聽聽聽聽聽聽聽message=NULL;
聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽if(SDL_Flip(screen)聽==聽-1)

聽聽聽聽聽聽聽聽
{
聽聽聽聽聽聽聽聽聽聽聽聽return聽false;
聽聽聽聽聽聽聽聽}
聽聽聽聽}
聽聽聽聽//Quit聽SDL
聽聽聽聽SDL_Quit();

聽聽聽聽return聽0;聽聽聽聽
}



]]> - C++闈㈣瘯棰?/title>http://www.shnenglu.com/mrcplusplus/archive/2007/03/10/19557.html澶х唺鐚?/dc:creator>澶х唺鐚?/author>Sat, 10 Mar 2007 14:09:00 GMThttp://www.shnenglu.com/mrcplusplus/archive/2007/03/10/19557.htmlhttp://www.shnenglu.com/mrcplusplus/comments/19557.htmlhttp://www.shnenglu.com/mrcplusplus/archive/2007/03/10/19557.html#Feedback0http://www.shnenglu.com/mrcplusplus/comments/commentRss/19557.htmlhttp://www.shnenglu.com/mrcplusplus/services/trackbacks/19557.html聽
int
聽_tmain(
int
聽argc,聽_TCHAR
*
聽argv[])

{
聽
char
聽str1[]聽聽聽聽聽聽聽
=
聽
"
abc
"
;
聽
char
聽str2[]聽聽聽聽聽聽聽
=
聽
"
abc
"
;
聽
const
聽
char
聽str3[]聽
=
聽
"
abc
"
;聽
聽
const
聽
char
聽str4[]聽
=
聽
"
abc
"
;聽
聽
const
聽
char
*
聽str5聽聽
=
聽
"
abc
"
;
聽
const
聽
char
*
聽str6聽聽
=
聽
"
abc
"
;

聽cout
<<
(str1
==
str2)
<<
"
\n
"
;
聽cout
<<
(str3
==
str4)
<<
"
\n
"
;
聽cout
<<
(str5
==
str6)
<<
"
\n
"
;
聽::system(
"
pause
"
);
聽
return
聽
0
;
}
浠ヤ笂浼氳緭鍑轟粈涔堝憿錛岀瓟妗堟槸0,0,1銆?br />鍓嶉潰鍥涗釜鍙橀噺閮藉湪鏍堜笂鍒嗛厤浜嗗唴瀛橈紝鏁呭唴瀛樺湴鍧澶у閮戒笉鍚岋紝鑰宻tr5鍜宻tr6鎵鎸囧瓧絎︿覆鍦ㄥ父閲忓尯錛屽ぇ瀹舵湁鑰呬竴鏍風殑鍦板潃銆?img src ="http://www.shnenglu.com/mrcplusplus/aggbug/19557.html" width = "1" height = "1" />
]]>
亚洲国产成人久久综合一区77
|
大伊人青草狠狠久久|
国内精品久久久人妻中文字幕|
久久99精品国产麻豆不卡|
热re99久久精品国99热|
97超级碰碰碰碰久久久久|
久久久女人与动物群交毛片
|
一本色道久久88综合日韩精品|
久久精品a亚洲国产v高清不卡|
久久亚洲AV永久无码精品|
国产午夜久久影院|
亚洲精品午夜国产VA久久成人|
久久久久国产成人精品亚洲午夜|
91久久精品91久久性色|
亚洲愉拍99热成人精品热久久|
亚洲国产精品成人久久蜜臀|
国产日韩久久久精品影院首页|
99久久免费国产精品热|
精品久久8x国产免费观看|
麻豆亚洲AV永久无码精品久久|
久久无码AV一区二区三区|
亚洲va久久久久|
色婷婷噜噜久久国产精品12p|
久久久精品久久久久特色影视|
久久精品成人影院|
国产成人综合久久久久久|
久久se精品一区二区|
热re99久久精品国产99热|
国内精品久久久久国产盗摄|
国产精品久久久天天影视香蕉|
一本大道久久a久久精品综合|
狠狠色噜噜狠狠狠狠狠色综合久久|
www性久久久com|
婷婷综合久久中文字幕|
久久成人永久免费播放|
久久精品无码一区二区app|
中文字幕精品无码久久久久久3D日动漫|
久久久中文字幕日本|
亚洲中文字幕伊人久久无码|
久久免费看黄a级毛片|
www久久久天天com|