Skip to main content
That Realtor Programmer Guy's user avatar
That Realtor Programmer Guy's user avatar
That Realtor Programmer Guy's user avatar
That Realtor Programmer Guy
  • Member for 13 years, 10 months
  • Last seen more than a month ago
  • Henrietta, TX
comment
Using scoped enums for bit flags in C++
+1 looks good, clean. I'll try this out in our SDK project.
awarded
awarded
revised
Loading…
comment
How to cross-reference many character encodings with ASCII OR UTFx?
thanks for your response. Apologies I have difficulty collecting this concept - its my first major project where I'm unable to convert into a Unicode format using a library. I am trying to learn the lingo better so I may reform the question. When I'm talking about control characters and bit ranges; I'm referring to bitmasking primarily. I should note, this { control: 31, range: [65,122], print: [32,255] } is meant only for ascii. Other records would have different values. Based on what you've mentioned I am looking at BOM and order scheme instead.Thanks for the assist.
comment
How to cross-reference many character encodings with ASCII OR UTFx?
@JukkaK.Korpela Apologies if the wording is poor; I will have to rethink how to phrase this. Certainly we know that character encodings can be longer than 1 byte =0 We're trying to filter the first byte first before looking in the rest though. The question is how can an efficient mapping algorithm be implemented while preserving the sort of event hooks and requirements I need, with a few caveats. Anyway I'll think this over and try to edit it.
revised
Loading…
Loading…
awarded
comment
Why do books say, "the compiler allocates space for variables in memory"?
Shouldn't it only be the allocation commands stored for globals? If you have hardcoded all the values using the primitives like int or char, the size of the executable would definitely increase by more than the amount of variables added. Such as int a1=1,a2=2, ... all the way to... , a1048576=1048576; Only then you'd definitely get something bigger than 1mb i think.
comment
Why do books say, "the compiler allocates space for variables in memory"?
@James Ah, this is not my experience. For instance int test[256][1024]; int main(){ test[0][0]=2; return 0; } This small program has 1MB allocated but only generates me a 1.4 Kb object file and an 8.4 Kb executable. It should use the correct amount of RAM, though.
Loading…
comment
Why must we learn Procedural programming before we learn Object-oriented programming
@Giorgio, for the record, I'm not calling either new, neither method more or less worthy of being mainstream. i'm simply against how it is being taught currently, which is often a waste of time. it's actually because professors often treat it as a stepping stone to OOP, and lose the scope of it's use.
comment
Why must we learn Procedural programming before we learn Object-oriented programming
When speaking of the style of programming taught commonly, I'm certainly not going to refer to any good programming.. the procedural code taught in universities now is merely being perpetuated by people not letting go of what they are used to from their youth. Some schools are exceptional as are some programmers...good for them, the few.
awarded
revised
lightweight document indexing to handle less than 250k potential records
that was the COMPLETELY wrong link. not sure what i did with the right link so...
Loading…
Loading…
awarded
awarded
awarded