encoded wrote: |
---|
not sure if you are aware, but <iostream> is not for cout. std is. |
If you do not do
#include <iostream>
then
std::cout << text
wouldnt work because cout is an object found in the iostream library, under the
namespace "std".
And that is my 'problem' with libraries, you would have to know (probably with time i will get used to it) where the functions you want are located.
The libraries are working just fine. The issue is the following:
1 2 3 4 5
|
//autohotkey code
var := "one|two|three"
loop, parse, var, |
msgbox, % a_loopfield
|
would do exactly what you read... it would
parse a variable by a specified character (pipe in this case) and then bring a message box with the current parsed string (one, two, three on each case).
When i want to do something similar on C++ I would have to know in which header is the function that might help with this type of action, and for me as a beginner, I find it pretty hard to find those things because:
1 - i dont know where to look and
2 - i dont know how to look for it (except google, but that might not work some times)
@rocketboy
thanks i think that might answer my question, and yes I am aware of the benefit of using libraries, what i thought is that there are some standard functions included in the language itself for ease of use instead of ALL of the language being located in libraries.