Questions tagged as 'c++'

1
answer

Configure ncurses in Codeblocks using Ubuntu

I am trying to run this program in CodeBlocks with Ubuntu operating system. The compiler is GNU GCC Compiler #include <iostream> #include <ncurses.h> using namespace std; int main() { cout << "ingrese letra" << e...
asked by 04.07.2017 / 05:44
1
answer

How to read the attributes of xml tags using QXmlStreamReader?

I am working with xml files, using the QT Liberia. The problem that presents itself to me is as follows: I do not know how to read the attributes of xml tags using QXmlStreamReader. For example I have the following file: <?xml version="1...
asked by 02.06.2017 / 15:12
1
answer

Create ABB iteratively C ++

I have the following code that compiles perfect, but when executing and printing the tree, it is empty. void arbol::ArbolBusqI(string x, pnodo& nuevo) { pnodo ptr = nuevo; for (;;) { if (ptr == NULL) {...
asked by 25.05.2017 / 02:34
0
answers

Problems with OVERLAY by OGRE

I have problems making use of OGRE overlays: playState.h : #include <OgreOverlaySystem.h> #include <OgreOverlayElement.h> #include <OgreOverlayManager.h> #include <OgreFontManager.h> #include <Og...
asked by 12.05.2017 / 19:02
1
answer

segmentation fault in c ++ with mysql connector

Good morning, I'm very new in the programming environment and I'm doing some test programs. I'm using c ++ in codeblocks and mysql connector. This is a segment of the code. What I want to do is send the value of the variable "t" that increase...
asked by 31.07.2017 / 19:41
1
answer

Template error "no arguments depend on a template parameter"

There is an exercise that I tried to do and that does not compile me, despite correcting several foolish failures, but the issue is that it fails due to (I think) errors in the approach. this is the statement:    Develop the template metho...
asked by 31.07.2017 / 02:12
2
answers

Error no match for call to (std :: vectorint) (int &)

A function that looks for a number that the user enters on the screen, what happens is that the compiler gives me an error that I do not understand: #include<iostream> #include<string.h> #include<vector> using namespace std;...
asked by 28.04.2017 / 18:36
0
answers

reference to 'operator delete [] (void *)' not defined

I have made the following code and when I try to compile it I skip the error "hide.cpp :(. text + 0x5f): reference to 'operator delete' without defining" I would like to know how to solve it. Code (C ++): #pragma warning(disable: 4996) #in...
asked by 19.05.2017 / 21:16
2
answers

Error compiling in C ++: XXX undeclared (first use in this function)

The messages are:    línea 51: 'malloc' undeclared (first use in this function) .% ... línea 99: 'free' undeclared (first use in this function) .% ... línea 111: 'free' undeclared (first use in this functi...
asked by 13.04.2017 / 06:37
0
answers

C ++ Weapons Inventory [closed]

I am studying videogame development using C ++. For my project, I plan to create a mini-game FPS with weapons. I post here in order to help me a little to think about what the classes in charge of managing the inventory would be like. I would...
asked by 13.04.2017 / 14:46