有没有什么C++编译时间宏可以用来检测代码是在哪个操作系统上编译的。我基本上只想在Win7上支持某些函数。所以我很有兴趣做这样的事情
#if <os_macro> = WIN7
// This function would do something valid only on Win7 builds.
bool myfunction {
// do something here
}
#else
// This function would typically return false, since its not supported on OS be
Q: What is the largest possible size of an ext3 filesystem and of files on ext3?
Ext3 can support files up to 1TB. With a 2.4 kernel the filesystem size is limited by the maximal block device size, which is 2TB. In 2.6 the maximum (32-bit CPU) limit is of block devices is 16TB, but ext3 supports on
我的项目有一个类软件和另一个类操作系统。一个软件可能支持多个操作系统(我的实际问题要复杂得多)。
我不知道如何在我的数据库中以最有效的方式保存它。我的桌子结构如下:
表: os
id name platform
=================================
winxp Windows XP windows
win7 Windows 7 windows
...
表:软件
id name publisher os
===========================