what are the parenthesis inused for?Code:cin.get()
what are the parenthesis inused for?Code:cin.get()
That is how you call functions. The function parameters going inside the parenthesis. In this case, there are no function parameters (since get() doesn't take any).
bit∙hub [bit-huhb] n. A source and destination for information.
If not for the parentheses, there would be no way to know if it is a function with no parameters or a variable.
the dot after cin means that you want to use a function from within 'cin', and after you write any function you need to write (), inside of these parenthesis you can write instructions called parameters..but you can also leave them blank.
What he means by that is you leave them blank, only when the function you are calling doesn't take any parameters. Your function call must match the function you are calling, both in spelling and parameters.
Function tutorial here.
Asking a question you already know the answer to might teach you something you did not know...