- 0
[C++] Accessing private member variables

Asked by
Gigi Buffon,
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Posts
-
By tiagosilva29 · Posted
They need to refactor their internal code to remove .NET Framework and third party libraries. Use .NET 10 or Rust. Stop bundling AI crap, it does not work. -
By seta-san · Posted
Liberals have been , since the ‘60s, declaring that all you need is peace and love. At least until Trump ran for office. After that they have been letting out 50 years of repressed hatred. That’s all they really are anymore, angry and hateful. -
By Copernic · Posted
Zen Browser 1.14.6b by Razvan Serea Zen Browser is a privacy-focused, open-source web browser built on Mozilla Firefox, offering users a secure and customizable browsing experience. It emphasizes privacy by blocking trackers, ads, and ensuring your data isn't collected. With Zen Mods, users can enhance their browser experience with various customization options, including features like split views and vertical tabs. The browser is designed for efficiency, providing fast browsing speeds and a lightweight interface. Zen Browser prioritizes user control over the browsing experience, offering a minimal yet powerful alternative to traditional web browsers while keeping your online activity private. Zen Browser’s DRM limitation Zen Browser currently lacks support for DRM-protected content, meaning streaming services like Netflix and HBO Max are inaccessible. This is due to the absence of a Widevine license, which requires significant costs and is financially unfeasible for the developer. Additionally, applying for this license would require Zen to be part of a larger company, similar to Mozilla or Brave. Therefore, DRM-protected media won't be supported in Zen Browser for the foreseeable future. Zen Browser offers features that improve user experience, privacy, and customization: Privacy-Focused: Blocks trackers and minimizes data collection. Automatic Updates: Keeps the browser updated with security patches. Zen Mods: Customizable themes and layouts. Workspaces: Organize tabs into different workspaces. Compact Mode: Maximizes screen space by minimizing UI elements. Zen Glance: Quick website previews. Split Views: View multiple tabs in the same window. Sidebar: Access bookmarks and tools quickly. Vertical Tabs: Manage tabs vertically. Container Tabs: Separate browsing sessions. Fast Profile Switcher: Switch between profiles easily. Tab Folders: Organize tabs into folders. Customizable UI: Personalize browser interface. Security Features: Inherits Firefox’s robust security. Fast Performance: Lightweight and optimized for speed. Zen Mods Customization: Deep customization with mods. Quick Access: Easy access to favorite websites. Open Source: Built on Mozilla Firefox with community collaboration. Community-Driven: Active development and feedback from users. GitHub Repository: Contribute and review the source code. Zen Browser 1.14.6b changelog: Security Various security fixes New Features Updated to Firefox 141.0 Improved accent color detection, making elements such as toasts more vibrant. Added a better custom color picker (experimental UI, might change) Improved and optimized glance animations and UI WebGPU is now enabled by default on windows Added a more native feel to windows 11 window buttons Fixes picture caching and scroll optimization issues a bug where adding or removing colors in the color picker would make the UI white On Linux, Zen uses less memory and no longer requires a forced restart after an update has been applied by a package manager. Fixed 'copy calculation' in the urlbar not working Download: Zen Browser | 82.3 MB (Open Source) Download: Zen Browser ARM64 | Other Operating Systems View: Zen Browser Home Page | Screenshots 1 | 2 | Reddit Get alerted to all of our Software updates on Twitter at @NeowinSoftware -
By +Nik Louch · Posted
You reap as you sow - he enabled hate, so he can receive a level of it. -
By aphanic · Posted
It is informal speech, it just means to get rid of whatever is preinstalled on the disk. The steps you mentioned in one of your posts are enough, there is no need to overwrite the disk with zeros, random patterns, etc., deleting the existing partitions and installing Windows anew suffices. Even if you wanted to recover data from whatever was there previously, I wager you wouldn't be able to because of how SSDs work (if you want to know more about it, look for TRIM in that context). It is likely the drive doesn't have just 1 partition like you said though, 2-3 would be standard (EFI/boot, Windows, Recovery, maybe even a small reserved one), but you can remove them all during installation: - Press Shift+F10 once Setup appears when booting from the Windows installation media, a command line window should appear. - Run "diskpart" (type it, press Enter), list the disks attached to the machine and select the internal one, the one you want to clean. - Once selected, type "clean" followed by Enter, there'd be nothing on that drive afterwards. Type "exit" to quit DiskPart, and you can close that CMD and continue with Windows installation as usual. It should be something like this: Just beware of which disk you select before cleaning, you can use "detail disk" after selecting one to get some details about it. Yes, if you install Windows from scratch from known-good installation media you can rest easy about that. Firmware rootkits or similar would still be there if they were, but I don't think you should worry. It depends on who you ask, I'd say most people find it to be enough; a full scan after installing Windows shouldn't produce any positive result. Like Nik said, absolute certainty is not something that can be attained, but one can be confident enough.
-
-
Recent Achievements
-
Snake Doc earned a badge
Dedicated
-
Philsl earned a badge
One Month Later
-
armandointerior640 earned a badge
One Year In
-
armandointerior640 earned a badge
One Month Later
-
Itbob513626 earned a badge
Week One Done
-
-
Popular Contributors
-
Tell a friend
Question
Gigi Buffon
Hi, I'm new to C++ and OOP. I've been having a problem with a concept.
Now, i is a private member of the class samp. So, how can the parameter ob access i directly? I know func(ob) is a member function of the class. But I thought private members can only be accessed with a this pointer.
Can anyone explain why the above code works?
Link to comment
https://www.neowin.net/forum/topic/1025404-c-accessing-private-member-variables/Share on other sites
10 answers to this question
Recommended Posts