Questions tagged as 'c++11'

0
answers

Process completed with code 3, incorrect memory manipulation?

It's nothing special, a simple one-way linked list that has to be self-ordered as soon as you enter any element, I'm starting to do it but I can not get the nodes to link correctly. The problem is that I do not understand why the elements are de...
asked by 18.06.2018 / 20:20
1
answer

libwinpthread-1.dll, libgcc_s_seh-1.dll and error 0xc000007b

I use the IDE CLION to program in C ++, and it took very little time. I'm doing a mini-game on the console where I need to generate random numbers. Use rand () with the standard library and time (), but the environment recommends me to use a di...
asked by 18.01.2018 / 21:00
2
answers

Some func / class to create class instances by a char * or string in C ++

It is possible to create a instance of a class by searching for char * or string in c ++ 11 strong>: ex: class MyClass:basic_class{}; basic_class* m = (basic_class*)new(typer("MyClass")); I do not know if it's "typer" something li...
asked by 25.05.2017 / 13:33
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
1
answer

The C ++ entry point can not be found

I am starting to program in C ++, I have already made some small programs and compile them correctly, but when I started classes in C ++ when compiling it and executing the program I get this error. This is my code. Main. #include <...
asked by 06.10.2016 / 23:11
1
answer

I have a question with iterators of istream in C ++ 14

I have the following lines: using par = std::pair<std::string, unsigned>; std::istream& operator>>( std::istream&is, par & p ) { is >> p.first >> p.second; return is; } std::ostringstream out( "qwe 12...
asked by 08.02.2018 / 00:27
1
answer

random number with decimals? c ++

I need to randomly generate Ogre::Real , but I doubt that anyone works with Ogre , so with a float it reaches me. Between 0.01 and 3.0     
asked by 29.06.2017 / 11:03
1
answer

Problem when using a singleton with an abstract factory

I only put the title of the pattern that I am using, but that is not a problem (maybe it seems to me to be a header problem) I also try to detail everything in my code with its respective compilation error. If someone has any idea to solve it, I...
asked by 01.11.2018 / 01:00
1
answer

How to generate a list from a list vector by concatenating subsequences of positives and negatives

Implement a function void sign_join(vector< list<int> > &VL,list<int> &L) that, given a vector of lists VL generate a L list where they are First concatenated all the first non-negative subsequence of VL [0...
asked by 10.09.2018 / 17:09
1
answer

c ++ problem with operator overload [duplicate]

I try to make a simple sum of two objects and I skip error took time trying to solve it.    Complejo.cpp #include "Complejo.h" Complejo::Complejo(double real, double complejo) { this->real = real; this->complejo = complejo...
asked by 01.03.2018 / 06:56