Questions tagged as 'c++'

1
answer

GOTO and ACTION table generator

Regarding LR Syntactic Analyzer, I fear the following Wiki: link There is a canonical algorithm for generating the GOTO and ACTION tables. I searched, and I did not find any software that has implemented this algorithm, so that it can...
asked by 29.09.2014 / 23:53
1
answer

Is it possible to create a std :: list with an initializer_list?

I'd like to pass a temporary std::list to a function, but I do not know if it's possible to do so. I know it is possible to pass% temporary% with std::vector : #include <iostream> #include <vector> template<typenam...
asked by 11.09.2014 / 21:18
1
answer

C ++ error: E2034 Can not convert 'wchar_t *' to 'const char *'

When running a C ++ code these two problems occur: - [BCC32 Error] USerialCommunication.cpp(96): E2034 Cannot convert 'wchar_t *' to 'const char *' - [BCC32 Error] USerialCommunication.cpp(96): E2342 Type mismatch in parameter '__src' (wanted...
asked by 10.09.2014 / 23:59
2
answers

Error accessing pointer

int main() { int**items[5]; for (int i=0;i<5;i++) { *items[i] = new int; <-- } return 0; } The program compiles, but does not rotate. I ran the debugger and pointed out that the error is where the arrow poin...
asked by 23.09.2014 / 13:26
1
answer

C ++ if select object

I'm doing a program for arduino written in C ++ to turn on and off leds when a button is pressed. I created a class Led and put the methods in it, now I wrote an if that checks when a button is pressed, however I want it when the if verify that...
asked by 03.08.2014 / 22:40
1
answer

Help: Valuing a char array of a struct within an if

I'm trying to set the value of a char vector of a struct inside an if, but without success ... A struct itself: struct ficha { char nome[31], classificacao[31], telefone[21]; float altura, peso, imc; }paciente1, pa...
asked by 15.07.2014 / 23:36
1
answer

use of localdb with team foundation server

I have a visual studio solution, which contains several C ++ projects and a SQL DB project, which is published to an instance of localdb. Versioning is done using Team Foundation Server. My question is: How can I configure the sql project i...
asked by 17.04.2014 / 12:18
1
answer

I can not find the mistakes

Someone can help me, this program is giving several errors, but I can not find any. Thanks in advance. Errors: [Error] can not convert 'int *' to 'int **' for argument '3' to 'int read (int, int, int **)' [Error] invalid conversion from...
asked by 09.06.2014 / 20:51
1
answer

How to use a constructor with two or more classes?

I'm developing an orientation-to-object library. I've created an iterator for my future container. I have advance_iterator and regress_iterator . Both give bidirectional_iterator . The code is: #ifndef OBJSTD_ADVANCE_ITERATO...
asked by 19.06.2014 / 04:04
1
answer

Problem with char * and fgets ()

I have struct with a field of type vector of char and I have a file .txt with several lines in this format with names of songs.    text1 text2 text3 text4 I need to read the entire file line by line and store each...
asked by 20.06.2014 / 06:29