ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

com·mence

2022-08-01 10:33:01  阅读:206  来源: 互联网

标签:... screen initial initialize mence SDL com assign


commence [Date: 1300-1400; from Latin com- ( COM-) + initiare 'to begin'] 拉丁语里com-是together, with的意思。

initialize算是个新词(1957年):

initialize (v.)
"to make ready for operation," 1957, from initial (adj.) + -ize. The same formation had been used earlier to mean "use initials [the first letters of a name in order] instead of a name" (1837); "designate by initials" (1833).

  • His initials are DPH: they stand for David Perry Hallworth.
  • 'Can I have your initial, Mr Davies?' 'It's G, Mr G Davies.'
  • George Bernard Shaw [萧伯纳] was well-known by his initials GBS.

换种说法:The difference between initialize and initiate is that initialize is to assign initial values to something while initiate is to begin; to start. 比如:

// screen surface, the place where everything will get print onto
SDL_Surface *screen = NULL; // assign initial value
void init(){
    // initialize SDL video. If there was an error SDL shows it on the screen
    if ( SDL_Init( SDL_INIT_VIDEO | SDL_INIT_AUDIO) < 0 ) ...
    screen = SDL_SetVideoMode(640, 480, 16, SDL_DOUBLEBUF);
...
bool done = false; // assign initial value
init();
SDL_FillRect(screen, 0, SDL_MapRGB(screen->format, 255, 0, 0));
while (!done)
...
/*
SDL_Init() simply forwards to calling SDL_InitSubSystem(). Therefore, the two may be used interchangeably. 
Though for readability of your code SDL_InitSubSystem() might be preferred. The file I/O (for example: SDL_RWFromFile) and threading (SDL_CreateThread) subsystems are initialized by default.
Message boxes (SDL_ShowSimpleMessageBox) also attempt to work without initializing the video subsystem, in hopes of
being useful in showing an error dialog when SDL_Init fails. You must specifically initialize other subsystems if
you use them in your application. Logging (such as SDL_Log) works without initialization, too. */

David Bowie - Ground Control To Major Tom Lyrics (lyricsmania.com) lyrics: 歌词。mania: 迷/狂/控

Ground control to major [少校] Tom
Ground control to major Tom
Take you protein pills and put your helmet on
Ground control to major Tom
Commencing countdown, Engine's on
Check ignition
And may God's love be with you
...

六级/考研单词: commence, designate, verb, differentiate, initiate, assign, void, thereby, thread, default, dialog, log, lyric, helmet, countdown, ignite

标签:...,screen,initial,initialize,mence,SDL,com,assign
来源: https://www.cnblogs.com/funwithwords/p/16539267.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有