小编Ign*_*eme的帖子

在C++中获取操作系统版本的最佳跨平台方式

嘿,我对C++有点新意,正在编写一个简单的程序.我的程序将使用一些文件夹


Windows 7路径:C:\ Users \%username%\ Appdata\Local ...

Windows XP路径:C:\ Documents and Settings \%username%\ Local Settings\Application Data ...

Unix:/ home /%username%/ .hiddenfolder/...


现在问题是windows.在我的头文件中,我可以做得很好

#ifdef _WIN32

区分Windows和unix版本的程序,但在运行时我需要找到用户是否使用XP或Vista/7来设置正确的路径.有这样做的标准方法吗?

c++ windows

4
推荐指数
1
解决办法
609
查看次数

Opengl顶点数组对象

OpenGL的顶点数组对象是否存储在VRam中?

我真正要问的是:如果我加载一个模型,例如使用Assimp,那么将顶点和indice数据读入顶点数组对象; 我会在Ram中复制数据,还是将其复制到GPU?

opengl vao

2
推荐指数
1
解决办法
1845
查看次数

为什么这个Java parseInt十六进制字符串导致NumberFormatException?

Integer.parseInt("ff8ca87c", 16);
Run Code Online (Sandbox Code Playgroud)

由于某种原因,这给了我一个NumberFormatException.你知道为什么吗?

Exception in thread "main" java.lang.NumberFormatException: For input string: "ff8ca87c"
    at java.lang.NumberFormatException.forInputString(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at java.lang.Integer.valueOf(Unknown Source)
Run Code Online (Sandbox Code Playgroud)

java parseint

0
推荐指数
1
解决办法
197
查看次数

标签 统计

c++ ×1

java ×1

opengl ×1

parseint ×1

vao ×1

windows ×1