Danya🔥
You can access private fields inside the class
Even private fields of other objects of the same class
manson
Even private fields of other objects of the same class
I can't understand, I know code can access everything inside class no matter private or public. but mya is a object, it can't access private member field. just like below code snipet: class A { private: int a; } A myA; myA.a = 5; // error
Danya🔥
You can access any field of the class inside of the class, even for objects that are not this
Danya🔥
It's the default for every major OO language
Danya🔥
C++, Java, С# and so on
manson
C++, Java, С# and so on
😁 I understand, because that code inside class. Thank you.
VD
😁 I understand, because that code inside class. Thank you.
It is not exactly being inside the class or not that matters. What matters is whether a function is a member function or if it is just an ordinary function. Any member function can access private members of a class (not just of object pointed to by this pointer but any object). Member functions can access private, protected and public members. A copy constructor is always a member function. A copy constructor can be defined outside of the body of the class
Anonymous
How to delete identical ids one by one in mysql (within 60K ids) 1 of the same ids should be deleted How to delete the same ids from Mysql database That is, you need to delete 1 of 2 identical ids. 50k databases are mixed, about half of them are the same ids. How to delete them?
You know me
I read that with mysql 8.2 and above you can use row_number similar to that of oracle. Other option is join which you can google.
Anonymous
If this is not production then just create a new table by selecting unique ids and use it. 50k isnt a big number.
DELETE FROM azolar WHERE (uid) NOT IN ( SELECT t.uid FROM ( SELECT MAX(uid) as uid FROM azolar GROUP BY uid HAVING COUNT(*) > 1 ) t );
Konadu
Am a beginner please I want to understand the c++
Rose
Am a beginner please I want to understand the c++
Please check out this channel - @Resources for information on learning sources for C and C++ (books and videos) and Frequently Asked Questions.
𝔸𝕜𝕤𝕙𝕒𝕪
How do I use valgrind KCachegrind for code visualisation on windows
klimi
How do I use valgrind KCachegrind for code visualisation on windows
This might be useful: http://schellcode.github.io/profiling-and-visualization
𝔸𝕜𝕤𝕙𝕒𝕪
While Exploring for the C IDEs I came across the Frama-C, I am curious about it. Should I use it as I am a beginner in C.
klimi
Try vim
If you want to meme, you should go to offtopic for that. Thank you
nami
If you want to meme, you should go to offtopic for that. Thank you
Why is that a meme when I’ve been using the editor for years everyday
klimi
Why is that a meme when I’ve been using the editor for years everyday
but he is talking about profiling and visualization...
klimi
Oh I misunderstood theb
for coding, sure vim is nice tho :)
Moita
What if I want to run the code?
manson
Hey, everyone,how to send screenshots containing code snippets in this group?
manson
you don't, it's in the rules
but how to show code with you guys?host it in GitHub is not a good idea.
Rose
User Chandni has 1/2 warnings; be careful! Reason: no job postings
Chandni
It's my own company but if u don't like I won't help anyone
Danya🔥
It's not job
Any internship is a job, especially the paid one
Chandni
Any internship is a job, especially the paid one
I just thought instead of asking here for doubts they could work practically under my team but nevermind thanks ;
Never Spam Bot
Infi Passion sent multiple messages that looks like a spam. If they send more spam - like messages, they will be muted. Only admins can unmute them. Spam deleted in this group: 335 See spam? Quote it and send /spam
Rose
User veronicah has 1/2 warnings; be careful! Reason: offtop job posting
𝔸𝕜𝕤𝕙𝕒𝕪
Seeking assistance to use Valgrind and KCachegrind for code visualization on Windows without Linux subsystem. Struggling with Valgrind execution on Windows, need guidance to resolve the issue.
Rose
User Mojtaba has 1/2 warnings; be careful! Reason: offtop
Rose
Seeking assistance to use Valgrind and KCachegrind for code visualization on Windows without Linux subsystem. Struggling with Valgrind execution on Windows, need guidance to resolve the issue.
Don't ask meta questions. In other words, don't ask to ask. Questions like "Does anyone know XYZ?", "Has anyone used XYZ?" or "Can someone help me?" are all considered meta questions because they don't specify what your actual problem is. These questions give the impression that you want people to approach you and offer their help as if they don't have any other work to do. Now doesn't that expectation make you look like an idiot? If you have a question ask it directly. You are more likely to get a response that way.
Rose
Welcome Mr! Please read the pinned message 🙂 Click the button below to unmute yourself.
Shaber
How can I resize a vector ?
Danya🔥
How can I resize a vector ?
Do you even know about the Google existence?
Danya🔥
If you don't, it's such a marvelous thing called a search engine
Danya🔥
And a search query consisting of 3 words will give you answer The words are: "vector resize c++"
Danya🔥
Truly incredible, right?
Cal
/start@MissRose_bot
Rose
/start@MissRose_bot
Heya :) PM me if you have any questions on how to use me!
Cal
Seeking assistance on how to compare the current date with input date using c++ ctime library
Rose
User Yash has 1/2 warnings; be careful! Reason: weird nonsense ad
Nagaraju
Hi all could you please help me with this task If laptop connected with external keyboard or mouse. I need detect through C++ program. More over i need to identify the typed key is coming from which keyboard?.
Nagaraju
I am using windows
klimi
I am using windows
Oh, then I won't be able to help you. (but it seems that you will need to ask the OS for it)
Nagaraju
Ok
Pavel
I am using windows
You probably need to do that from WinAPI I haven't worked with it, but maybe something like this https://stackoverflow.com/questions/8640208/what-is-the-fastest-way-to-determine-a-key-press-and-key-holding-in-win32
Rose
That's 2/2 warnings; Yash is banned! Reasons: 1: weird nonsense ad 2: weird ad
Ziky
One possible way how to determine which keyboard was pressed is sniffing USB traffic https://stackoverflow.com/questions/117474/how-to-sniff-a-usb-port-under-windows obviously works only for usb devices using standard usb device class for keyboard and you will have no information about keyboard layout and in which app keypress ended.
klimi
what do you mean? How is this relevant?
*
Well, as for exactly the same code, C and C++'s performances are almost the same, but C++ loads more library, for example libstdc++.so.
How big of a difference is additional lib when dyn linked? Merely slightly more startup latency? Is libstdc++ bloated?
Victor
How big of a difference is additional lib when dyn linked? Merely slightly more startup latency? Is libstdc++ bloated?
It costs slightly more memory for loading libstdc++.so. On the ACM-ICPC Online Judge system where it shows the memory cost, when you use exactly the same code, C++ costs slightly more memory than C.
SMYLE
Please did any one have note that explain function overloading in c++
Pavel
Please did any one have note that explain function overloading in c++
Note? Is there something that you still feel is unclear after reading about it on the internet?
SMYLE
Why handwritten?
I will be more fast Or do you have any good resources?
Pavel
I will be more fast Or do you have any good resources?
Well.. Google, the first article in the search will probably be from GeeksForGeeks, they usually explain these things very well
SMYLE