ini操作
来源:互联网 发布:网络电子游戏现场 编辑:程序博客网 时间:2024/05/18 00:55
4号的 囧 当时忙着小游戏项目 现在才写。。唉~
- //////////////////////////////////////////////////////////////////////////
- // CopyRight(c) 2009, YOYO, All Rights Reserved.
- // Author: LIN YiQian
- // Created: 2009/09/17
- // Describe: INI文件读取练习
- //////////////////////////////////////////////////////////////////////////
- #include <Windows.h>
- #include <iostream>
- void main(void)
- {
- // 读整数
- UINT nResult = GetPrivateProfileInt("pic", "count", 0, ".//config.ini");
- std::cout << nResult << std::endl;
- // 读文本
- char szStr[256];
- memset(szStr, 0, sizeof(szStr));
- GetPrivateProfileString("string", "Display", "", szStr, sizeof(szStr), ".//config.ini");
- std::cout << szStr << std::endl;
- // 写文本
- WritePrivateProfileString("YOYO", "name", "linyq", ".//config.ini");
- // 写段
- WritePrivateProfileSection("CLASS", "company=tq/0date=20090817/0number=48/0", ".//config.ini");
- // 读取段
- GetPrivateProfileSection("CLASS", szStr, sizeof(szStr), ".//config.ini");
- char* p = szStr;
- while (p != NULL)
- {
- std::cout << p << std::endl;
- p = strtok(p + strlen(p) + 1, "/0");
- }
- system("pause");
- return;
- }
- ini操作
- ini操作
- 操作ini文件
- VC++ 操作 ini 文件
- 操作ini文件
- 操作INI文件
- 如何操作INI文件
- INI文件操作类
- Java操作ini文件
- .net 操作INI文件
- ini文件操作
- INI文件的操作
- Ini 文件操作
- Ini文件的操作
- 有关INI操作C#
- Ini文本文件操作类
- 如何操作INI文件?
- 如何操作INI文件
- Fedora Core 5 编译Android
- Android内核的简单分析
- 网络编程基础:使用TCP连接
- 网络编程基础:使用UDP连接
- 网络编程基础:使用SELECT模型
- ini操作
- skyeye 上实现U-Boot 的Nand命令,解决nand read错误
- csdn专家博客
- Linux下运行手机游戏
- sql_mode
- MYSQL5 中文无法插入 Data too long for column
- 我的追求
- 缘来你也在这里——记《程序员羊皮卷》北京第一次线下签
- Words Via Subtitle改进:视频播放例句、加快生成WPS文档的速度