« first day (707 days earlier)      last day (4467 days later) » 

23:09
All you want are the goods not the mood.
Xeo
Xeo
Soo... what should I do now.
We should have a close category called "Doesn't exhibit the problem the OP said it does."
Are you talking about the lower case erase thread? xD
interesting problem to write tutorials on variadic templates that you don't have access to
@Borgleader, I'm talking about many threads.
23:14
thread? you mean question
@DeadMG, You mean as in you use MSVC? You could technically try the examples with liveworkspace or something.
@chris Is what I did.
And yeah, question is probably a better word.
Too used to forums
Must adapt my vocabulary xD
@Xeo, Now he wants it gone. tbh it is localized.
Xeo
Xeo
23:17
@chris I suggested deleting it
@Xeo, Didn't notice that was you. I think it's if it has an answer at all.
Xeo
Xeo
Mhm
-2
Q: C++ std::string.erase() Results in a Lowercase String

Aidanstring RemoveEndSlash(string Path) { if(Path.size() != 0 && Path[Path.size()-1] == '\\' || Path[Path.size()-1] == '/') Path.erase(Path.size()-1); return Path; } Which takes: C:\Program Files\ to: c:\program files How can I make erase() not convert the string to lo...

Close votes please (on OPs request)
And after that, delete votes
I feel left out not having 10k rep.
I should get cracking on that sometime.
@chris Aww.. Oh wait I don't have 10k either.
At my current rate I still have 3 months of hard work before I reach 10 k
23:21
I need to piss and sleep
I hope that works out for you.
I suppose I could repwhore and answer the ones I hate answering because they're so obvious (in a bad way) until 10k, but it doesn't feel right.
@chris Repwhoring is a skill and there's much competition as well.
Near-rhyme unintended.
Repwhoring is a skills and it's more of a competition of will. badumtss
I'm tired...
I notice that I've been dozing in over the last five minutes. Therefore I shall now go to bed.
23:36
Great, another question that doesn't do what the OP says it does, unless it's that other header.
I put a link to a working LWS on there. If the problem exists, it's 90% likely some unfinished header the OP's including and screwing up the class definition with.
I didn't even try looking I figured it was one of the files he didn't show us.
There was nothing obvious in the code he posted that would cause this.
Well I must say I'm going to be an expert at helping the first year C++ class figure out their problems.
I'm just sitting in and helping/correcting common misconceptions/doing my own thing this year.
Their biggest problem is C++ class.
(Second biggest is C++)
@CatPlusPlus As general as stated, that is bad advice. It's perfectly fine and done in billions of programs. — Jens 3 hours ago
Oh god where do these people come from
Why, why, why am I on this terrible site
The string isn't marked const, so it isn't in a read only section of the executable. it returns a pointer to the data from the executable, but the data is still editable during runtime. — Cole Johnson 2 hours ago
Ahahaha
23:52
Okay, so a billion other programs just blew up customers' computers. All good.
Theres shared read only memory and read-write memory?
I must have been sleeping during that class...
what do you mean shared?
It's just read only memory
Yes, there is read-only memory.
There is also gasp non-executable memory.
-1
A: Initializing string and array in C - The difference

Ravindra bagalechar *str = "ABCDE"; In the above line, “ABCDE” is stored in a shared read only location, but pointer str is stored in a read-write memory. int *array = {1,2,3,4,5}; Here, you are trying to initialize, but you can't initialize a pointer like an array.

And other fancy paging stuff.
Like memory that doesn't exist.
Or memory that doesn't exist yet.
23:59
I was under the impressions that all ram memory "blocks" we're created equal
-.-;
If C was a decent language, string literals wouldn't have a type that's convertible to a mutable one.
8

« first day (707 days earlier)      last day (4467 days later) »