Search found 190 matches
- September 8th, 2019, 8:04 am
- Forum: Everything
- Topic: Question about Data Members
- Replies: 2
- Views: 1672
Re: Question about Data Members
Every variable in C++, member or non-member, is an object. Functions however are not
- August 21st, 2019, 3:58 pm
- Forum: Everything
- Topic: The usefulness of bit packing
- Replies: 10
- Views: 5234
Re: The usefulness of bit packing
Code: Select all
enum class Option
{
a,
b,
c,
a_b,
a_c,
b_c,
a_b_c
};
- August 21st, 2019, 3:24 am
- Forum: Everything
- Topic: Fun Easy Dumb Algorithm Puzzle
- Replies: 5
- Views: 3074
Re: Fun Easy Dumb Algorithm Puzzle
Code: Select all
void algorithm(std::vector<int>& io)
{
constexpr auto output = std::array{0,4,12,1,5,9,17,2,6,10,18,7,19};
std::copy(output.begin, output.end, io.begin);
}
- August 4th, 2019, 8:14 am
- Forum: Everything
- Topic: How can I program the reticle to turn red for the y coordinates?
- Replies: 6
- Views: 2440
Re: How can I program the reticle to turn red for the y coordinates?
How were you writing it before?
- August 4th, 2019, 6:05 am
- Forum: Everything
- Topic: How a Multiple Producer Multiple Consumer queue works
- Replies: 0
- Views: 12974
How a Multiple Producer Multiple Consumer queue works
A queue is a simple data structure that operates the same way as a real life queue. Objects get "pushed" to the back of the queue and get "popped" when they reach the front of the queue. The front and back of the queue are tracked using indices like unsigned int(s) or std::size_t(s). When an object ...
- July 30th, 2019, 4:50 pm
- Forum: Everything
- Topic: What makes C++ a low-level programming language?
- Replies: 3
- Views: 2843
Re: What makes C++ a low-level programming language?
People think that low level programming is something that you learn to optimise runtime and minmax performance. I actually created this post specifically to help people be better at writing safer code. Most of the time, I see beginners write these clunky constructs that make programs unnecessarily c...
- July 17th, 2019, 12:27 pm
- Forum: Everything
- Topic: Got side tracked...again
- Replies: 7
- Views: 3443
Re: Got side tracked...again
Try walking a marathon. That's a good start.
- June 27th, 2019, 11:11 am
- Forum: Everything
- Topic: What makes C++ a low-level programming language?
- Replies: 3
- Views: 2843
What makes C++ a low-level programming language?
Most people consider C++ as a low-level programming language. Compared to higher level languages like Java and Python, C++ works on a much lower level than these languages would allow. The majority will agree with this statement but few of them could clarify what that actually means. This begs the q...
- June 24th, 2019, 2:05 pm
- Forum: Everything
- Topic: THE DISCORD SERVER IS DOWN!!11!!
- Replies: 6
- Views: 2818
Re: THE DISCORD SERVER IS DOWN!!11!!
Discord is back online again!
- June 24th, 2019, 12:35 pm
- Forum: Everything
- Topic: THE DISCORD SERVER IS DOWN!!11!!
- Replies: 6
- Views: 2818