Global web icon
reddit.com
https://www.reddit.com/r/cpp_questions/comments/a2…
What does std:: Mean? : r/cpp_questions - Reddit
So, basically, a namespace is something that can help you group things. std is for standard use only. The rule is: never add something to std by yourself! The std namespace groups all the standard things: types like vector and string, algorithms like find, reduce, and even more. But why? Lets' say you want to design your own vector.
Global web icon
reddit.com
https://www.reddit.com/r/cpp_questions/comments/o9…
Why is "using namespace std;" used in c++ programs??
As a fellow beginner,Let's first talk about the :: part. For example we have: std::cout For me, it means that cout is a function located within (edit: <iostream> std). But think of it as cout is somewhere in std. and without using using namespace std; and I wanna call cout, then I have to write: std::cout << "Hello"; but by adding using namespace std;, we can write cout directly without the ...
Global web icon
reddit.com
https://www.reddit.com/r/thinkorswim/comments/10iu…
Default Stop Type: STD, Bid/Ask, Mark : r/thinkorswim - Reddit
The order defaults selection that you reference will populate your Order Entry. So yes, if you selected default type of LIMIT, then the STOP does not matter and will not be displayed in the order form. Only when you set your default order type to STOP, will the STOP field then populate with whatever default you select here.
Global web icon
reddit.com
https://www.reddit.com/r/cpp_questions/comments/le…
When should I use std::endl; ? : r/cpp_questions - Reddit
So, the std::endl; object ends the line, and flushes the stream, and I understand that part. Does that mean I should use it any time I write a function that uses ostream class? How can I tell what requires flushing of the stream, and what does not require it? Thanks!
Global web icon
reddit.com
https://www.reddit.com/r/cpp_questions/comments/15…
Can someone explain to a c++ newbie what <<, >>, cin and cout ... - Reddit
Can someone explain to a c++ newbie what <<, >>, cin and cout are exactly? cin is short for “character input”, i.e. a stream of char values as input to the program. Correspondingly wcin (no longer very relevant for anything but it keeps on existing) is short for “wide character input”, i.e. a stream of wchar_t values as input to the program. Originally cin and cout (+ more) were Bjarne ...
Global web icon
reddit.com
https://www.reddit.com/r/cpp_questions/comments/tx…
What am I not understanding here about std::move? - Reddit
But if I make an array, how then does using std::move allow me to move a value to one of its elements and yet I can still iterate over it by incrementing a pointer afterwards? I mean shouldn't it have changed the address that the pointer was pointing and thus making that element no longer part of the contiguous block? What am I missing?
Global web icon
reddit.com
https://www.reddit.com/r/cpp_questions/comments/f7…
What does "std::" mean? ex cout << "Hello" << std:: endl; : r ... - Reddit
The expression using namespace std; makes it so that namespace is the one used by default so you don't have to specify it for every symbol. Your specific example is odd because both cout and endl are defined within the std namespace, so normally they'd either both have the std:: operator or neither would.
Global web icon
reddit.com
https://www.reddit.com/r/explainlikeimfive/comment…
ELI5: What is 3 Standard deviation above the mean ? : r ... - Reddit
There was this guy saying something along, "I think to have great outcomes, you actually do need to work at like three standard deviation above the mean " I only remember basic statistics and simple calculations of mean and standard deviation. Mean is an average of the dataset.
Global web icon
reddit.com
https://www.reddit.com/r/cpp_questions/comments/l6…
What does 'while (cin >> variable)' exactly do? : r/cpp_questions - Reddit
The second aspect is that operator>> returns the calling object. So std::cin >> obj; returns cin; This means when you write while (cin >> value) you do the >> operation into value and then check cin. So what does it mean to check cin? It does not mean that there are characters waiting in the buffer, it checks that the stream is in a valid state.
Global web icon
reddit.com
https://www.reddit.com/r/cpp_questions/comments/js…
What exactly does the size of std::string mean? : r/cpp_questions - Reddit
But, and correct me if my understanding is wrong, then does that mean there's no real way to find the amount of memory allocated for the actual string (the physical array of chars, not its pointer). The size member on std::strings simply returns the number of chars in the string, minus the null terminator.