Questions tagged as 'c++'

1
answer

problems after compiling C ++ with compiler G ++ [closed]

I'm having a problem here after compiling a program in C ++ using the g ++ compiler, after I compile everything, I try to open the executable file, then open my windows cmd (I use windows 10), the problem is that when the terminal starts to show...
asked by 21.03.2017 / 16:43
1
answer

random numbers in c ++ without repetition

I need to make a program that generates N numbers without repeating between a set of 1 to 600000 numbers. the N values are 50000,10000,50000,100,000 and 500,000. These numbers will be stored in a vector. What is the most efficient way to do this...
asked by 02.04.2018 / 00:13
1
answer

vectordouble using ctypes for dll in python

I have a .dll inside it that has a BUBBLE function that returns a double. The problem is that BUBBLE has a vector<double> in the argument. extern "C" minhaDLL_API double BOLHA(vector<double> OI); In fact it has a ex...
asked by 10.04.2018 / 02:57
1
answer

How to compile codes using Sublime? [duplicate]

I would like to know if I can add a compiler to the sublime to compile things straight from the program, more practical as well.     
asked by 17.07.2016 / 18:39
1
answer

Compile error: "attribute not allowed"

I'm having trouble compiling a program in Visual C ++ and since I'm a beginner, I can not find where the error is. The program is running perfectly on CodeBlocks. What could be the problem? The error report follows:     
asked by 20.11.2015 / 15:54
1
answer

Problems with Dev-cpp [closed]

I installed Dev-Cpp 5.5.1 and it shows an error like this when I try to compile:    "Failed to execute (and the file path)". Can anyone help me with this? I've tried version 4.9.9.2 and the same error occurs.     
asked by 26.03.2014 / 17:02
2
answers

C ++ compiler [closed]

I'm starting the Information System course and would like to know which compiler is best to use because the teacher has passed several and did not specify which one is better?     
asked by 10.03.2014 / 00:34
1
answer

Double-chained List Problem

My function - for now - can create a list and add items at the beginning or end of the list. However, when calling the add item function, selecting 1 or 2, and typing the item, the program simply exits. I can not find what the problem is, follow...
asked by 31.12.2018 / 05:54
2
answers

Error 'std :: out_of_range' when using C ++ substring

I have a txt file that contains the following information in each line: Example:    John-88888888 I need to read each line of this file and separate the name in one variable and the number in another, for that I used the substring,...
asked by 24.08.2015 / 02:03
1
answer

Errors: division by zero and iterator not dereferencable

I'm having trouble compiling this code, it returns me two errors when I run it: vector<bool> cp( size ); // determine crossover point (randomly) for( int i = _numberOfCrossoverPoints; i > 0; i-- ) { while( 1 ) { int p...
asked by 07.11.2018 / 03:33