Questions tagged as 'c++'

0
answers

SDL2 and video memory

I found that SDL_Texture saved in the video memory, but I have a problem I am saving the images as a buffer in the RAM also I have problems with optimization a 0.2mb image (in resources) ends weighing 2.5mb when you import it with IMG_...
asked by 12.02.2017 / 19:59
1
answer

a universal character name specifies a non-valid character with QT

Hi, I'm trying to show the unicode keys to learn more about the subject. The char contains the unicode as follows '\ u0041'. It is a QString of the following "\ u0041" that I convert to char '\ u0041'.Codigo: char myChar = s[0].toLatin1(); //...
asked by 11.10.2016 / 23:54
0
answers

Help with setProxy (const QString & proxyJid) in QT

Hi, I need to include a proxy in my XMPP, but I have several questions. Is the SOCKS5 Jid asked to use this? I would have to do the following: manager = new QXmppTransferManager; manager->setProxy(const QString & proxyJid); Source:...
asked by 08.10.2016 / 21:55
2
answers

Warning: Statemen has no effect; in C ++ program switch type

I was doing a program in C ++, using the switch type function I asked for the price of an item, I read it, then I asked for the discount option that depends on the price, but this discount option is entered manually I enclose my code to un...
asked by 02.06.2016 / 00:40
1
answer

SIGSEGV, Segmentation Fault with C ++ in Code :: Blocks

I am adding nodes to a simple linked list, the nodes save two double values. When I debug the program in Code::Blocks I get an error that says: "Program received signal SIGSEGV, Segmentation fault." Then it tells me which section...
asked by 12.04.2016 / 04:10
3
answers

error "was not declared in this scope" c ++ [closed]

#include < iostream > using namespace std; int main() { int n1, n2, resultado; char operacion(15); cout << "Ingrese número 1 "; cin >> n1; cout << "Ingrese número 2 "; cin >&...
asked by 17.10.2018 / 21:02
0
answers

How can I organize a file by name in c ++ [closed]

Friends who knows how I can organize a sequential access file by name?     
asked by 23.04.2016 / 02:15
2
answers

Save the contents of a .txt in a char * in C ++

I have a program that works with a variable char * word="Text" but I want to get the value of the variable from a txt file Hello.txt Hola mundo! Adios.txt Adios mundo! I have the following code. Archivo.open(archivo); if(!Arch...
asked by 22.12.2016 / 04:39
1
answer

First character of string c ++ [closed]

Good, I would like to know when the first character of a string is "#" and I do not know what function to use. Can somebody help me?     
asked by 18.12.2017 / 23:29
1
answer

How to convert the data in unicode QT

Normally when I want to convert the text to string I do the following: QString::fromUtf16((ushort*)buffer); But is there any way to convert my buffer (data) to unicode?     
asked by 26.10.2016 / 13:39