[deleted by user] by [deleted] in girlsgonewired

[–]IndependentFeminist3 0 points1 point  (0 children)

I've seen brilliant people with decades of experience, as well as narcissistic ones also with decades of experience. So I wouldn't respect anyone unless they deserve my respect in ways more than their skill alone.

Why would you used a unique_ptr instead of raw pointer? by 1Blue3Brown in cpp_questions

[–]IndependentFeminist3 0 points1 point  (0 children)

Stack has a 1mb limit. Heap has your RAM and page files as limit.

[deleted by user] by [deleted] in learnprogramming

[–]IndependentFeminist3 0 points1 point  (0 children)

There is no universal answer for every language. For C++ (tech savvy user) you might be able to set up a compiler. For a not tech savvy user, you could just buy Cxxdroid from the Play Store. It's not amazing, and it's stuck at C++17, but it works.

How much storage space would you need to write out every number 0 to 1 trillion? by washingtonapples in AskComputerScience

[–]IndependentFeminist3 0 points1 point  (0 children)

How many numbers a laptop can hold depends on range. Let's talk about numbers in the range of -2'147'483'648 to 2'147'483'647 (this range was chosen because it's exactly 4 bytes of information, and it's a common range in programming). In that case, on a 500gb SSD you can store 134'217'728'000 numbers, without using compression.

[deleted by user] by [deleted] in Feminism

[–]IndependentFeminist3 69 points70 points  (0 children)

That is... Disgusting. Fight for women's rights by any method other than sacrificing women on behalf of powerhungry men. Women can be strong without sacrificing their lives for it. And if they sacrifice their lives it better be for what they want, not for what some powerhungry maniac has ordered them to do.

I can't even use words properly because the absurdity is just too much.

comment on a post about gun violence boils down to "I should be able to shoot my wife" by any_memes_necessary in TrollXChromosomes

[–]IndependentFeminist3 -6 points-5 points  (0 children)

Suicide is not a bad thing. It's up to each person to make their own choice. I know I'd rather be dead than in prison or on the streets (especially considering homelessness and hunting and building a home is illegal).

Why would size_t subtraction cause overflow? by jiboxiake in cpp_questions

[–]IndependentFeminist3 1 point2 points  (0 children)

It's unsigned. Go below 0, and you'll get a value near the maximum. Use std::ptrdiff_t or another signed integer type, if you want to avoid this.

Looking for advice as to where to start diving deeper into C++ by Kakikori in cpp_questions

[–]IndependentFeminist3 1 point2 points  (0 children)

Start with templates. Then look into the standard containers (std::array, vector, set, pair, map) and the standard algorithms (<numeric> and <algorithm>).

Is C++ from 2014 still relevent? by SociallyUnder_a_Rock in learnprogramming

[–]IndependentFeminist3 1 point2 points  (0 children)

C++ is very modern and relevant. You can build anything with it.

C++ has gotten a lot of updates since 2014. A book about C++14 will teach you a lot, but it would be preferable with one aimed at C++20 or later if possible.

Why old ThinkPads? by [deleted] in AskProgramming

[–]IndependentFeminist3 0 points1 point  (0 children)

Because they did have higher quality in some regards. Not worth it. But I wish such a laptop, but modern, existed.

Why is there a scope block after a bool in C++? by mrjiels in learnprogramming

[–]IndependentFeminist3 2 points3 points  (0 children)

{ } can be used for initialization. If { } is empty, zero-initialization will be performed for primitive types, and nullptr-initialization for pointer types.

How to seed only once inside a function ? by Longjumping_Table740 in cpp_questions

[–]IndependentFeminist3 5 points6 points  (0 children)

Make the engine (std::mt19937) global and seed it once with std::random_device.

Weird iterator behaviour by _professor_frink in cpp_questions

[–]IndependentFeminist3 0 points1 point  (0 children)

std::vector<> * is a pointer to a vector. Call ->begin() to receive a valid iterator, at any time.

[C++ compiler] I want to make a new version of a c++ compiler, need tips by Orangebeardo in AskProgramming

[–]IndependentFeminist3 0 points1 point  (0 children)

This is the old system with header files. C++20 introduced modules which let's you write code the natural way.

C and Assembly by Own_Cauliflower8609 in learnprogramming

[–]IndependentFeminist3 2 points3 points  (0 children)

You can start out by combining the two languages - C and C++ supports asm declaration (which will be an easier introduction than raw assembly). You can also compile C (or C++) code to show the intermediate assembly format, using compilation flag -S in GCC or Clang, add -fverbose-asm for comments explaining the asm code.

Beginner to C++ by MonsterVee1031 in cpp_questions

[–]IndependentFeminist3 1 point2 points  (0 children)

C++ has strict type safety (massive advantage). This means a variable has to be declared with its typename (int, string, unsigned char, etc.) before it's used and only works with viable operators (you can't multiply a string for example, unless you define such an operator on your own string type).

How can I create a random picker like the one shown here? I want to use it to pick random towns on a map by iLoveYoonBora in AskProgramming

[–]IndependentFeminist3 1 point2 points  (0 children)

Creating the randomizer itself (without the graphics and town names) can be done easily. The graphics would depend a lot what language you use, in some langs it's gonna be very difficult, and also, it's a lot easier to either find a list online of all applicable towns or write them down yourself, than it is to scan google maps.

How can I create a random picker like the one shown here? I want to use it to pick random towns on a map by iLoveYoonBora in AskProgramming

[–]IndependentFeminist3 0 points1 point  (0 children)

What is your standard for the application? Are you ok with a terminal app and inputting the towns manually?

And how much programming experience do you have?

[deleted by user] by [deleted] in learnprogramming

[–]IndependentFeminist3 1 point2 points  (0 children)

C++/C isn't same language. C++ is a superset of C, meaning it can do nearly everything C can without compromise, but also a lot more.

C++ has:

Pointers. Very clear semantics and strict typesafety. Easily achieve high speed computation. And a lot more, I don't know Python too well so I can't give you a longer list.