Questions tagged as 'c++'

1
answer

Binary Search Tree - PrintInOrder ();

My BST (templated class) has the function PrintInOrder() , which does not receive parameters: void BST<Type>::printInOrder() const{} I've been searching the internet, and found a few InOrder() , however they get a Node*...
asked by 13.02.2016 / 09:14
1
answer

Clang presents character error too large but Visual Studio compiles normal

I'm having trouble understanding why clang presents the error message    character too large for enclosing character literal type when trying to run the code: char c = 'ç'; While Visual Studio 2015 compiles seamlessly. I know that di...
asked by 24.06.2016 / 23:08
1
answer

Undefined reference to symbol when compiling program in C ++

I'm testing the curlPP library and wrote the following program: #include <iostream> #include <curlpp/cURLpp.hpp> #include <curlpp/Easy.hpp> #include <curlpp/Options.hpp> #include <sstream> using namespace std; us...
asked by 12.07.2015 / 03:49
1
answer

How does strtoull work?

I've tried every way to understand what is the second parameter to use this function and it in general but I still can not understand.     
asked by 21.05.2015 / 02:28
2
answers

How can I get more accurate values dividing two long?

I'm programming a CNC on my own, and I'm in the middle of my code, and now I have two variables of type long that when split results in an exact fractional value but the Arduino returning a fractional value of only 2 houses. long x = 99;...
asked by 01.07.2015 / 09:17
1
answer

I can not display the names of people over the age of 18

/*Escreva um programa que receba o nome, profissão e a idade de 10 pessoas, calcule e imprima a quantidade de pessoas maiores de idade (idade >= 18 anos) e seus respectivos nomes.*/ #include <iostream> #include <locale.h> #include...
asked by 31.10.2015 / 18:17
1
answer

How can QDialog lock a QMainWindow?

I am implementing an experimental registration program, and I made a case where, if a person does not type and tries to register this empty data, it opens QDialog , receives the warning and does not complete the registration. Basically the...
asked by 26.04.2015 / 19:41
1
answer

How do I call a .dll and declare functions in C ++ .Net

I'm migrating a project to C ++, but I'm having trouble calling .dll This is code: int LoadDLL (void) { char handle; //! Carrega a dll ... handle = LoadLibrary(L"c:\windows\system\minhadll.dll"); //! Verifica se a dll foi cor...
asked by 05.12.2014 / 20:23
1
answer

How to make graphical applications in C and C ++?

I'd like to know how to do apps with GUI in C and C ++. I know logic, like if / else, while, for, swith, and while loops remain the same, but I'd like to know how to do a window, a button, and something interactive. Use Linux Ubuntu 14.04 LTS....
asked by 12.06.2015 / 03:33
1
answer

Limit the input stream to values of type int

#include <iostream> #include <limits> using std::cout; using std::cin; using std::endl; int getVar(int num); int getInt(int num); int main(){ int n; cout<<"Insira um inteiro. \n\n"; getInt(n); return 0 ; }...
asked by 09.01.2016 / 21:03