Dima
Calvin
.why
Calvin
So i am not such an important to you
Calvin
WhDima Yushutin:
No
Why?
S.
Lol
klimi
Anonymous
thank you
Anonymous
Guys I want to know something.
Anonymous
That I which could be the best platform to see each other's code
Anonymous
Like we can contribute fast without changing urls
Dima
opensource projects?
Anonymous
web camera
Dima
klimi
Welcome Yash
Anonymous
Welcome
Anonymous
😊
Anonymous
Walter
klimi
Welcome
Anonymous
Anyone know a good cross-platform p2p library? (From personal experiences pref.) I was thinking about using a modified blockchain source but...
Anonymous
Maybe some better info here
klimi
I heard something about gnunet
Anonymous
Hii
Anonymous
Ty
Anonymous
Hlw
Walter
Anonymous
Hey everyone. The array in the create function, I need to make it visible for palind function but I can’t figure out
Anonymous
Could you help me please
BinaryByter
do you know how returning variables works?
BinaryByter
here, you will have to return the array
Anonymous
How :(
BinaryByter
lemme find something
BinaryByter
https://stackoverflow.com/questions/5130978/passing-and-returning-variables-in-c
BinaryByter
this looks promising
Anonymous
Got it, thank you
Anonymous
Anonymous
Yeah 😁 why
Anonymous
So how can I solve this
Anonymous
Thank you guys
BinaryByter
yes, you can return an array
BinaryByter
int[] myArrayReturningFunction {
int a[5];
return a;
}
BinaryByter
*surprise* they are the same thing
BinaryByter
Dima
top kek
BinaryByter
whoops, yea
int* myArrayReturningFunction() {
int a[5];
return a;
}
Mihail
That's only because he doesn't own the memory after the function returns that address to it, but the actual returning an array part is valid
Dima
Dima
Dima
well you can make a static and it will always return the same kek
BinaryByter
BinaryByter
i dont deal with areayd and pointers anymore
Dima
> needs a really simple method
> std::shared_ptr in unique_ptr returning std::vector inside of std::array
> i think that will do
BinaryByter
xD
BinaryByter
yea, that sortsa stuff
Anonymous
Dima
that was pure and tasty sarcasm, but yeah
klimi
Dima
klimi
right dima
klimi
is it a
Mihail
klimi
klimi
why no help
Dima
I press F when I see such assignments
Dima
respects man
klimi
Dima
yeah, but it’s so funny and stupid
Dima
I bamboozle every time I see such questions, makes me think like what’s goin’ on, why.. even..
Anonymous
What will be the correct answer
Dima
Dima
why did you choose that speciality, come on man
MᏫᎻᎯᎷᎷᎬᎠ
https://www.vsni.co.uk/products/genstat/htmlhelp/windows/ControlKeyShortcuts.htm
MᏫᎻᎯᎷᎷᎬᎠ
Damn
This is really working
#include <iostream>
using std::cout;
int main()
{
class test
{
public:
int a;
};
test t;
t.a = 1;
cout << t.a;
}
MᏫᎻᎯᎷᎷᎬᎠ
Define a class inside a function!!!
MᏫᎻᎯᎷᎷᎬᎠ
I didn't know that
MᏫᎻᎯᎷᎷᎬᎠ
Well
MᏫᎻᎯᎷᎷᎬᎠ
The question is
Why I can't define a template class inside a function?