If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: what would be the correct syntax and how would i run this?

no i just dont understand the syntax that well i want someone to show me what to change in it to my liking and how to do it

The documentation is clear -- the function is defined, all parameters are described, etc.

It is assumed that the person reading the documentation already knows the C or C++ language. Documentation for library and library functions should not be used as a tutorial in learning the language. You need to learn the C++ language first (to the point you know what functions are, how to call them, what pointers are and how to use them), before you understand technical documentation such as what you've presented.

Re: what would be the correct syntax and how would i run this?

Originally Posted by Paul McKenzie

The documentation is clear -- the function is defined, all parameters are described, etc.

It is assumed that the person reading the documentation already knows the C or C++ language. Documentation for library and library functions should not be used as a tutorial in learning the language. You need to learn the C++ language first (to the point you know what functions are, how to call them, what pointers are and how to use them), before you understand technical documentation such as what you've presented.

Regards,

Paul McKenzie

thats why i came here for help i know some cpp but not all i just wanted somone to give me a little tip as i have been trying to work it out for hours i have not just looked at it and thought i cant do that and posted on here i looked at it for hours and tried it many different ways

Re: what would be the correct syntax and how would i run this?

thats why i came here for help i know some cpp but not all i just wanted somone to give me a little tip

Again, the function is completely documented. What is required is that you know how to read the documentation, and it seems you don't know how to read documentation to C++ functions.

The authors of the documentation assume you know C++ already -- the authors have done what is required to relay the information to you on what is required to call the function (that's why you had the earlier response of "the documentation says it all"). The only thing missing is example of usage in a mock function or code, but that can probably be found by doing a web search.

All this suggests that you do not know C++ enough to understand how to call functions, and learning how to do that is done by books and tutorials, not a programming board such as CodeGuru. I could understand if you wrote a valid program (compiled, linked, etc.), and at runtime the function call failed (error return code, exception thrown, etc.), but what you're stating is that you don't understand basic C++ syntax with respect to calling functions and therefore can't write your program.

i have been trying to work it out for hours i have not just looked at it and thought i cant do that and posted on here i looked at it for hours and tried it many different ways

Re: what would be the correct syntax and how would i run this?

Originally Posted by theunknowncoder

i done it all but i am stuck on the last 2 args now i just dont understand them

You don't understand pointers? In fact, how can you write a coherent, C++ program without knowing what pointers are, how to use them, and how to read simple documentation? I'm sure your program isn't just one line.

at all no offence but the documentation just makes things harder

As I stated earlier to you, the documentation assumes you know C++. If you don't know C++, then of course you won't understand the documentation. I don't know how much simpler I can make this point to you.

This is how every author who is responsible enough documents their functions. Get used to it (meaning this -- learn C++ properly, and you won't get confused).

Re: what would be the correct syntax and how would i run this?

Originally Posted by Paul McKenzie

You don't understand pointers? In fact, how can you write a coherent, C++ program without knowing what pointers are, how to use them, and how to read simple documentation? I'm sure your program isn't just one line.
As I stated earlier to you, the documentation assumes you know C++. If you don't know C++, then of course you won't understand the documentation. I don't know how much simpler I can make this point to you.

This is how every author who is responsible enough documents their functions. Get used to it (meaning this -- learn C++ properly, and you won't get confused).

Regards,

Paul McKenzie

ok so i read up abit on c++ learnt it for about 5 hours and got use to the syntax i was reading about pointers and can i ask how you do a pointer to a function?