⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 allocate_mapping

📁 C实现的MUD,对大家基本入门网络游戏很有帮助!
💻
字号:
     aaaallllllllooooccccaaaatttteeee____mmmmaaaappppppppiiiinnnngggg((((3333))))    MMMMuuuuddddOOOOSSSS ((((5555 SSSSeeeepppp 1111999999994444))))     aaaallllllllooooccccaaaatttteeee____mmmmaaaappppppppiiiinnnngggg((((3333))))     NNNNAAAAMMMMEEEE          allocate_mapping() - pre-allocate space for a mapping     SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS          mapping allocate_mapping( int size );     DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN          Returns a mapping with space for 'size' elements          preallocated.          For example:               mapping x;               int y = 200;               x = allocate_mapping(y);          where y is the initial size of the mapping.  Using          allocate_mapping is the preferred way to initalize the          mapping if you have some idea of how many elements the map          will contain (200 in this case).  The reason is that          allocating storage all at once is slightly more memory          efficient.  Thus if you are using mappings to store a soul          with 200 entries, the above initialization would be quite          appropriate.  Note, that the above initialization does not          restrict you to 200 entries.  It just that the first 200          entries will be stored more efficiently.  Note: if you will          be deleting many elements from the mapping, you should use x          = ([]) to initialize the mapping rather than using          allocate_mapping().          Note: at this point in time, `size' is meaningless, x =          allocate_mapping(200); is equivalent to x = ([ ]);     SSSSEEEEEEEE AAAALLLLSSSSOOOO          map_delete(3)     Page 1                                          (printed 3/16/95)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -