Questions tagged as 'c++'

1
answer

What is the difference between Debug and Release mode?

I started to get the error: "Microsoft C ++ runtime error library". And I got a lot of trouble trying to fix this error. I was using Qt Creator with mingw32 in debug mode , but I realized that this mode depends on many compiler DLLs. I kn...
asked by 30.08.2016 / 17:47
1
answer

Warning in comparison of floats how to proceed

In an exercise I've made, you're asked to do a compound interest calculation with for for 5% , 6% , 7% , 8% , 9% , and 10% As I could not use a counter check the counter being a type float , or even using switch , then I c...
asked by 19.01.2016 / 00:57
2
answers

Send a command to the Terminal via C ++

How do I send a code to the terminal? For example: on a graphical screen where I type the name of a folder, and it sends to the terminal a mkdir NomePasta ? (Of course, there will be other functionalities, like running programs for e...
asked by 13.08.2014 / 15:14
3
answers

How to get system time and save in a variable?

How to get current time and save to a variable in c ++?     
asked by 12.10.2016 / 01:02
1
answer

Doubts about "linkage"

I tried to pass to IDE a code I found in a book and some doubts came up. Code: newApplication.cpp #include "stdafx.h" #include <iostream> using std::cout; using std::endl; #include "GradeBook.h" int main() { GradeBook gradeB...
asked by 15.11.2018 / 02:13
1
answer

Inheritance with constructors

I need to create a base class animal and 3 other hereditary classes of other animals. Each class must have its own emitirSom function. They must be polymorphically invoked through a vector. It turns out I do not know if the builder...
asked by 26.09.2017 / 02:52
1
answer

Is it possible to use pointers in VB.NET?

Is it possible to use pointers in VB.NET? If so, how do they work? An example in C++ : CSR = ConfigurarInterfaceDeRede(randInt(0,999999),CodAtivacaoSAT,(char*)xml); int a; int *p; p = &a; How would you translate this to VB...
asked by 04.12.2014 / 13:12
1
answer

Hello World in C ++ does not compile

I'm reading the book "Training in C ++ Language", but this teaching everything error. The hello world of the book simply does not compile: #include <iostream.h> void main() { cout << "Primeiro Programa"; } Follow the pict...
asked by 11.12.2014 / 23:24
1
answer

Use of assert instead of if

I was reading a book on data structures implemented in C ++ and here's the author with the following code snippet: T& operator[](int i) { assert(i >= 0 && i < length); return a[i]; } This is a code to access an e...
asked by 17.02.2017 / 20:03
3
answers

Regular expression for e-mail in C ++

I have the following regular expression in a format validation function in C ++ using regex, but it is validating non-standard formats that I want.    b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}b\.[A-Z]{2,4}b Email: [email protected]...
asked by 08.02.2017 / 03:20