Nameful
but, it lives until the program finishes generally
Sasuke
but, it lives until the program finishes generally
Oh I thought it remains untill computer goes out of powet
Sasuke
It's not that bad then
Igor🇺🇦
It's not that bad then
It's bad. It can consumes memory that can be use up all computer memory and slow down the machine. You don't know how long your program can run, if your program runs on a server and doesn't clean after each request it will eventually make the system unusable
వ్లాదమిర్ పుతిన్
వ్లాదమిర్ పుతిన్
someone hlp with this code
Sasuke
someone hlp with this code
Do your homework yourself
వ్లాదమిర్ పుతిన్
Do your homework yourself
i know. im learning to write math equations in C++. i did in ppython previously. C++ is completely new for me. just needed this first as an example
Anonymous
i know. im learning to write math equations in C++. i did in ppython previously. C++ is completely new for me. just needed this first as an example
You may not learn C / C++ by example. There are lots of undefined behavior / implementation-defined behavior that you may not understand until you read
rr
i am starting my programming journey?/ read couple of things for C .. would i go directly for C++ or continue with C??
Yakov
i am starting my programming journey?/ read couple of things for C .. would i go directly for C++ or continue with C??
It’s okay to start with C++, it’s basically just C with a lot more features
వ్లాదమిర్ పుతిన్
i think this can b the base to start exploring
Anonymous
Hello. I need to extract all the sub vectors of this array: const int v[8] = {-2, -5, 6, -2, -3, 1, 5, -6}; Using the std of C++, how can I do it?
Anonymous
Do you have a example?
Joel
For(int i = start; i < end; i++) { SomeVec.push_back(v[i]); } /* start is index you want to start and end the end */
Joel
I hope this is your question
Anonymous
{-2, -5} {6, -2, -3, 1, 5, -6} {5, -6} ... I like to extract all sub vectors
Anonymous
01000001011011010100000101101110
It is not my question.
Explain your question?
Anonymous
It is not my question.
hint 1: https://www.math.fsu.edu/~wooland/mad2104/proof/pf20.pdf
Anonymous
I have this array {-2, -5, 6, -2, -3, 1, 5, -6}; I like to extract ALL subvectors. {x, -5, 6, -2, -3, 1, 5, -6}; {-2, x, 6, -2, -3, 1, 5, -6}; {-2, -5, x, -2, -3, 1, 5, -6}; {-2, -5, 6, x, -3, 1, 5, -6}; ... {x, x, 6, -2, -3, 1, 5, -6}; {-2, x, x, -2, -3, 1, 5, -6}; ...
01000001011011010100000101101110
Anonymous
Can you translate it to code? 😂
Yoh
So I want to make a new object copy an array from another object using a copy constructor, but the array isn't being filled, am I writing it correctly?
Anonymous
definitely not
void printSubArrays(vector<int> v, int start, int end) { if (end == v.size()) return; else if (start > end) printSubArrays(v, 0, end + 1); else { cout << "["; for (int i = start; i < end; i++){ cout << v[i] << ", "; } cout << v[end] << "]" << endl; printSubArrays(v, start + 1, end); } }
Anonymous
Do you know how to program a timer with C++ 😕??
klimi
c++ chrono
Anonymous
yes
egor
what are you trying to do?
I click on the local windows debugger it says: I can not start the program .cpp.dll cpp.dll is not a valid Win32 application
Dima
you need an executable file, exe or whatever
Dima
or attach library to exe
Anonymous
Hello
Dima
Welcome
Anonymous
I m new
I_Interface
I m new
Welcome
Anonymous
But i want to learn c
Anonymous
Can you plz guide me
Anonymous
?
I_Interface
Anonymous
Thank u
Kevin
Hello how do you break a statement in c++ program not within a loop
klimi
what?
klimi
to end if statement
klimi
like continue
M
break; ?
Prosvetlennii Dimas
how to create interfaces in c++ like in C#?
Prosvetlennii Dimas
without qt?
Dima
how to create interfaces in c++ like in C#?
probably you are looking for pure virtual classes
Dima
class IMyInterface { virtual void DoWork() = 0; }
Prosvetlennii Dimas
oh, thanks, that what i need
Anonymous
Do you know how to program a timer with C++ 😕??
Anonymous
C++ chrono
what is the c++ chrono 😅
klimi
Google stopped working huh
klimi
https://en.cppreference.com/w/cpp/chrono
Julio
Hi
DanielQR
It's Borland Compiler a good option for C/C++? Get me your opinion about that.
Anonymous
Anonymous
No, I tested it
huh, can you provide a sample?
Anonymous
Now I am sleping. In 8 hours I send you.
Anonymous
lol ok
Anonymous
Now I am sleping. In 8 hours I send you.
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10] [2, 3, 4, 5, 6, 7, 8, 9, 10] [3, 4, 5, 6, 7, 8, 9, 10] [4, 5, 6, 7, 8, 9, 10] [5, 6, 7, 8, 9, 10] [6, 7, 8, 9, 10] [7, 8, 9, 10] [8, 9, 10] [9, 10] [10] i got this from the code as expected. this is not the set of all subsets
Anonymous
Dinosaurs use to use Borland C++.
don't they just use LLVM nowadays?