Questions tagged as 'c++'

2
answers

Regex that validates only normal and leap years in C ++

I was trying to validate leap years using regex in C ++. If the user types 28/02/1900 , it would return valid. But if the same type 29/02/1900 , it would return error. Searching, I found this regex that compiled but is not vali...
asked by 10.10.2017 / 23:27
0
answers

QT versus GTK + difference in resources [closed]

Before we start with some considerations: The object of this topic is to search for facts / objects, therefore assumptions / kicks / flames will not be accepted as answers. All responses should take into account a GNU / Linux environment w...
asked by 28.11.2014 / 20:02
2
answers

Regular Expressions C ++

I have text with the following formatting    concept: personasia: toby_pizur: personasia: test How do I get a string with this formatting, only the text after the last colon (:)? In the example above, I would only have "test".     
asked by 04.04.2018 / 21:06
3
answers

Conversion of variables type int to type char *. C ++ [duplicate]

I have the following method that gets two int variables as a parameter and I need to concatenate these two values into a char * variable, but for this to be possible it is necessary for these two int variables to be converted to char *. void...
asked by 28.07.2016 / 20:54
3
answers

Isolate processor to run only my program

How can I isolate the processor to run only my program in C? It is more a didactic and academic question passed by my teacher of AI. He asked us to run millions of real-number sum operations, and take the time the processor took to run the...
asked by 14.09.2017 / 02:19
2
answers

How does optimization -O3 break some programs?

When compiling my own programs, I have the freedom to change some flags of the compiler and start using the -O3 optimization. This optimization can break some programs. I understand that the compiler should do and assume several...
asked by 20.02.2017 / 12:40
2
answers

Exit multiple loops without using goto

Oops! The title says it all! Does anyone know an interesting way to get out of more than one loop without using goto?     
asked by 13.08.2016 / 05:16
1
answer

Object Oriented Multithread in C ++ 11 Native?

How is Multithread Orientado a Objetos implemented in C++11 ? in java this is possible through the% Class extension Thread / Implementing the Runnable interface and overriding the Run method of both. In C++11 I...
asked by 01.06.2015 / 14:23
2
answers

Abstract type of variable

I have this line of code: USphereComponent * SphereComponent = CreateDefaultSubobject<USphereComponent>(TEXT("RootComponent")); How does this return type work for me ( USphereComponent )? Is the variable going to save what kind...
asked by 26.06.2015 / 21:25
3
answers

Regex to validate a particular date format

I was modifying a regex for a program in c ++ that would validate the following input form of the 29/feb/2000 dates. Currently it was only accepting 29/02/2000 or 30/03/2017 . I tried to add to the other months but I can n...
asked by 29.01.2018 / 11:47