save_object
来自「C实现的MUD,对大家基本入门网络游戏很有帮助!」· 代码 · 共 27 行
TXT
27 行
ssssaaaavvvveeee____oooobbbbjjjjeeeecccctttt((((3333)))) MMMMuuuuddddOOOOSSSS ((((5555 SSSSeeeepppp 1111999999994444)))) ssssaaaavvvveeee____oooobbbbjjjjeeeecccctttt((((3333)))) NNNNAAAAMMMMEEEE save_object() - save the values of variables in an object into a file SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS int save_object( string name, int flag ); DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN Save all values of non-static variables in this object in the file `name'. valid_write() in the master object determines whether this is allowed. If the optional second argument is 1, then variables that are zero (0) are also saved (normally, they aren't). Object variables always save as 0. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE save_object() returns 1 for success, 0 for failure. SSSSEEEEEEEE AAAALLLLSSSSOOOO restore_object(3) Page 1 (printed 3/16/95)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?