I'm trying to return a QString, which will be used as a URL and need to use '&' as a separator in the URL. However, when the character is placed in the QString, it breaks the URL and what should appear after the '&' does not appear.
re...
Can the same way be to delete an integer vector, or an object vector?
Whenever an element is deleted, does the vector position have to be changed?
Is the situation the same eliminating at the beginning or at the end?
As an example:
vector...
I'm working on a project that was originally written in Java.
I want to learn more about math and logic behind the code, and I had the idea of porting the code to another language.
I thought of C ++ and Python.
Which one has more simila...
I have this code in c ++ and I'm getting an error:
#include<iostream>
using namespace std;
template <class T>
void setVector(T* v, int sizeOfV){
for(int i=0;i<sizeOfV;i++)cin>>v[i];
}
void showVector(T* v, int sizeOfV){...
I'm reasonably new to C ++, and I do not know how to use sdl in Clion. I've tried it in several ways, it's currently like this:
CMakeLists:
project(cppsdl)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -lmingw32")
set(CMAKE_EXE_LINKER...
I'm doing a program for Arduino written in C ++ to turn on and off leds when a button is pressed.
I want to save the values of the LEDs that are on and the amount of brightness in an EEPROM memory.
I thought of using an array, so the first el...
I'm trying with QT 5 + QML to create an application where after opening the file using fileDialog it returns a message by a QT signal.
The application opens using a QML and initiates a call to a SLOT in the class responsible. Th...
I am having difficulties with this reasoning. I have a 4x4 array. I should fill it with 0 and 1 as long as the number 1 appears twice in each row and in each column, as in the example below.
1 1 0 0
1 0 0 1
0 0 1...
I would like to know how to validate the price on Qt, as follows:
Examples accepted: 10,00 / 100,00 / 1.000,00 = true
My code, (but is validating true: 10 / 100 )
bool ok;
QLocale::setDefault(QLocale(Q...