Francisco
when I removed it, I encountered this one
Cause now you're calling a constructor that's not defined
Anonymous
done, Im not sure if it is working properly
Anonymous
I compiled it and run it
Anonymous
but theres no error
Anonymous
also theres no showing on my screen
Anonymous
Dima
Could you post the whole code?
Francisco
Could you post the whole code?
And if you can, a minimal example that reproduces your problem
Anonymous
sure
Anonymous
https://pastebin.com/5nPqhw1b
Dima
off word: you should call delete if using new keyword in cxx
Anonymous
off word: you should call delete if using new keyword in cxx
is swimmingPool* swimmingPool1 a bad example?
Dima
you are allocating it on a heap so you need to clear it later. you can create it on a stack, just simply do swimmingPool swimmingPool1(1,2,3);
Dima
and this looks strange `1 double swimmingPool::WaterRequiredToFill(double initialVolume) 2 { 3     return (initialVolume = 7.5*length*width*depth); 4 }`
Anonymous
Hello World I'm trying to make 3x3 tiles puzzle maker (random) and solver. Someone can help? Not need to be graphics.
Anonymous
Anonymous
Have you done something? Cause I'm not gonna do that for you
Im don't want that you will do for me ! Im looking for the algorithm i have no idea Even i can do that in python Im only want to understund how to solve that
Anonymous
Anonymous
when I run it on dev c++ it shows no error, but when I run it on cengage mindtap it shows this
Dima
it’s not a solution, just a tip
Dima
devcxx
Dima
Anonymous
War Room Admin
/get findprojects
Artöm
#gcc9
professor
how would you call a unit name for a module where you list directories , extensions by file , and other similator methods?
professor
hey guys , how can I filter extensions over 400 extensions and avoid if else for` FindFirstFile` ?
Anonymous
Anyone?
Pavel
7777 members
Anonymous
Anonymous
Yours is kinda easy
Anonymous
7777 members
How to define n as the size of Vector?
Pavel
How to define n as the size of Vector?
You mean resize vector, so it contains n elements? std::vector?
Anonymous
1 < happy[i] <1000 I want n elements in all test cases..
Pavel
your_vector.resize(n);
Anonymous
Will this work?
Pavel
Anonymous
Size of vector for every test case to be entered
Pavel
Size of vector for every test case to be entered
I think you need to make it a separate parameter, int k
Anonymous
Pavel
Well, that depends on what you need, but if I understand you correct, then yes :)
Pavel
Will this work?
Also, instead of doing this loop, you could use iota https://en.cppreference.com/w/cpp/algorithm/iota
Pavel
For filling a vector with ascending numbers
Ayush
Ayush
Can someone help me with the question
Anonymous
Ohh you too.. ;_;
Anonymous
Anonymous
Whats the meaning of this error
Anonymous
Mat
Read
Mat
Undefined reference to ___, what can it be?
Anonymous
Undefined reference to cbrt
Anonymous
Cbrt is a inbuilt function
Anonymous
To find cuberoot
Anonymous
?
Anonymous
What should I add now
Mat
Read how to properly include mah.h
Farhan
What actually cbrt return
Farhan
Math.h problem
Anonymous
Ok
Anonymous
Anonymous
Example n[j] = 8 Cube root of 8 is 2
Anonymous
Res = 2
...
Inbuilt where?
https://en.cppreference.com/w/cpp/numeric/math/cbrt
...
Dw, I just searched cause I didn't believe there's a function for that
Dima
Anonymous
For this we should link gcc cuberoot. C -o cuberoot -lm
Anonymous
But no output
Anonymous
Cbrt is a inbuilt function
😐 when did it come to existance
Luigi
Is off topic allowed?
Luigi
Its not c or c++