Questions tagged as 'c++'

1
answer

How to transform an array of char into UTF-8?

For example, I have a char cadeia[300]; . I put characters in it, now I want to turn it into UTF-8.     
asked by 30.08.2015 / 00:59
1
answer

OpenGL: what the basic "package" of shaders to create elements of a 3D scene

At the moment, I'm beginning to work with the Shaders concept of the most current versions of OpenGL. My basic reference is the open.gl site tutorials. After having seen all the texts, and tested the sample source code available, my question...
asked by 15.08.2015 / 01:07
1
answer

Error undefined reference when trying to use a template class

I have a Set template class and a Menu class both with their respective .cpp and .hpp, when trying to use a pointer of the set class in my Menu class I get the following error: ||=== Build: Debug in Trabalho04 (compiler: GNU GCC Compiler)...
asked by 04.12.2015 / 22:20
1
answer

Compiling with g ++

I am compiling a sample code provided on the GLFW bookstore website as follows: g++ main.cpp -o main.exe glfw3dll.a
asked by 25.07.2015 / 12:16
1
answer

How to clear numeric menu buffer when typing strings?

How to implement a menu that reads numeric values and indicates error (message on screen) when receiving characters and strings? The code below worked for individual characters through if(std::cin >> opcao) , but for strings it store...
asked by 17.04.2015 / 15:29
1
answer

Get table inside table Lua through C ++

I have a lua file with the following content: Pokes_Icons = { ["Bulbasaur"] = { on = 12906, off = 12908, used = 12907, } } I'm trying to get the value of "on" in C ++, I tried it like this...
asked by 30.03.2015 / 18:31
1
answer

Problem with Allegro 4 and C ++

I'm trying to create a game in Allegro 4 , however I'm having problems with a method, more specifically with a BITMAP attribute. The program compiles but stops working soon after. Follow the code: #ifndef INSTANCE_H #define INSTAN...
asked by 07.06.2015 / 13:41
1
answer

Call Java (.JAR) class using C ++ (.EXE)?

I have a Java application (SYSTEM.JAR) with the system input class ... Ok? To make it more transparent to the end user, I'd like to create a compiled C ++ .EXE that just called the Java class. Is it possible? Which C ++ compiler is sugg...
asked by 04.03.2015 / 12:24
1
answer

Critical section problems in concurrent programming

I'm implementing in C ++ a system with threads using semaphores. I am with a doubt, if I treat the progress situation, will I guarantee 100% that my implementation will not occur any impasse? Or do I need to be careful about something else?    ...
asked by 12.11.2014 / 13:54
1
answer

How to organize a C ++ project in folder structure in Visual Studio

I would like to separate my source code into folders to have a better organization in the code by grouping the files into directories. In general, you usually have a lot of .h and .cpp files, and I usually separate the folders. I have always...
asked by 27.09.2014 / 14:41