I'm implementing the dijkstra algorithm to find the smallest path on a network. Starting from a source node s, I need to calculate the smallest path to reach all the other nodes that exist on the network. But the algorithm is not working properl...
I need to use union within struct , but I can not. The error displayed is
[Error] invalid use of 'union Client :: document'
Struct:
struct Cliente{
string nome, email;
union documento{
long cpf...
I'm trying to make a program that makes a stack of objects using lib stack and then draw what's on top, to do some testing I was doing the following:
int main() {
RenderWindow wind(VideoMode(VideoMode::getDesktopMode().width, VideoMode:...
Well I'm trying to read from a .txt file, but when I try to read and by in variables it's giving me the whole wrong info, now wrong places. I've tried using Debug's tool but I can not figure out why ...
Here is the .txt file:
15
29
1;10...
When implementing the Singleton pattern the compiler gives the following error:
include \ graphdata.h | 21 | error: 'constexpr' needed for in-class initialization of static data member 'graphdata * graphdata :: instance' of non-integral ty...
I want to access using overload using node which is an object of the base class method getInicioVetor and getFimVetor within the child class, I wonder if there is a way to do this? I tried it just that it did not work.
static boo...
Some languages use a linker or Wikitravel as it is also called. What is its function and relationship to the compiler?
Why do some languages do not have a linker ?
I'm developing a project where I have an online class that inherits from an X class, where this X class needs to give a new in an online class object. When I do this happens the error, due to the inheritance I believe:
expected clas...