Anonymous
Means to enhance my Java knowledge
Pavel
YK Y
Codeblocks
Pavel
how the garbage value looks like
YK Y
Pavel
oh that's interesting
Pavel
try to replace your loop with cout << "len=" << v.size() << "\n"; for(int i =0; i < v.size(); i++) { cout << v[i] << " "; }
Pavel
just to see what happens
YK Y
Want to try range based loop!
Pavel
Tried this.. It is working!
can you find your compiler version there are some instructions that may help https://superuser.com/questions/206157/checking-version-of-gcc-compiler-in-codeblocks
klimi
Do you use STD c++11?
Pavel
Can you look at the code and tell me if there is an error or a missing character?
missing }, but he pasted a photo where he has that } also it wouldn't compile without it anyway
Pavel
other than that it looks correct for me
klimi
No
Um something more recent?
klimi
range for loops are in stdc++11
Dofwfiom
can anybody help me
Anonymous
other than that it looks correct for me
https://pastebin.com/9KidtBRk
Dofwfiom
COORD times() { time_t rawtime = time(NULL); struct tm t; _localtime64_s(&t, &rawtime); t.tm_mon += 1; t.tm_year %= 100; HANDLE hconsole = GetStdHandle(STD_OUTPUT_HANDLE); COORD po; po.X = 58; po.Y = 20; SetConsoleCursorPosition(hconsole, po); cout <<"year:"<< t.tm_year<<' '<<"month:"<< t.tm_mon <<' '<<"day:"<< t.tm_mday <<' '<<endl<<"hour:"<< t.tm_hour <<' '<<"minutes:"<< t.tm_min <<' '<<"seconds:"<< t.tm_sec << endl; po.X = 1; po.Y = 1; SetConsoleCursorPosition(hconsole, po); return po; }
Anonymous
what is this?
game functions
Dofwfiom
time
Dofwfiom
function
Anonymous
Can you see the code c++
Pavel
game functions
looks like some part of DRM protection, I can't tell something more specific about this code, I don't have expertise in this
klimi
what with this one? what is your question?
"Can anyone help me"
Pavel
that's not a valid question :)
Mat
what with this one? what is your question?
He died before having the time to write the question 🤷‍♂️
Pavel
ah, ok
Pavel
Grammatically....
well, yes.. then answer would be "I don't know"
Joesph
t.me/indianrank
Joesph
t.me/indianrank
No promotion just a indian stuff(coding in hindi) group
klimi
How can you .... Say.... No promotion
Joesph
How can you .... Say.... No promotion
Crushing the perception of ppls
klimi
Wtf
Yeah right
klimi
Like why....
Joesph
Wtf
#include <impossible.h>
NXiss7
what is this?
Hook to bypass blackscreen protection on consoles.
Anonymous
Hook to bypass blackscreen protection on consoles.
Right. But I want to know if this code has no errors or not When I write this code in c ++ Show me a mistake
Anonymous
Asad
one question guys: will my program leak memory if i do not delete the allocated pointers but assign their values to nullptr after i no longer need them?
Dima
It will leak unless it’s std::shared_ptr
Asad
ok here i am trying to implement 'singly linked list' and i cannot delete the pointers, i think. they are allocated inside the insertion function. in this case how can i deal with this leaking??
Anonymous
Right. But I want to know if this code has no errors or not When I write this code in c ++ Show me a mistake
No one knows about these things but Russian Developers I gained experience and knowledge of these things from them
Pavel
Or if it C, make a function that will clear the list by deleting all the elements
Crush_my_love
/report
Dima
lol why
Dima
at least he can talk so this is not a problem
Crush_my_love
lol why
he used photo instead screenshot
Crush_my_love
at least he can talk so this is not a problem
c'mon it's 2020, and people still can't use just a small button called prtsc
Dima
sudo apt-get prtsc
Crush_my_love
this is insane and annoying
klimi
/report
What's the problem?
Crush_my_love
What's the problem?
he shoot his monitor screen instead to post a proper screenshot
Crush_my_love
I thought it's forbidden to do so in this chat
Anonymous
Hey can someone tell me if for example int&& in a move constructor/operator can be understood as int** ? Just the access to its members are different right?
I_Interface
Anonymous
I will and i know they ate different but i imagine them similar under the hood. Is that a wrong assumption?
Pavel
Hey can someone tell me if for example int&& in a move constructor/operator can be understood as int** ? Just the access to its members are different right?
no, && is a specific definition, it's not a reference to a reference it behaves differently from what you've wrote and have different purposes https://www.artima.com/cppsource/rvalue.html
Asad
It WILL LEAK
https://pastebin.com/DTe3e8BN
Asad
some people are saying it is not memory leak
Asad
on lines 30-45.