I just started learning C++ I used to use AutoIt (http://www.autoitscript.com/) which came with this help file which was essentially a reference(I think).
Any way you could search something like "Random" and you would get this
Function Reference
Random
Generates a pseudo-random float-type number.
Random ( [Min [, Max [, Flag]]] )
Parameters
Min [optional] ... number.
Return Value
Success: Returns a pseudo-random number between Min and Max.
Failure: Returns 0 and sets @error flag to 1 if bad parameters.
Remarks
By default ... OF SUCH DAMAGE.
Related
Round, SRandom
Examples
;Flip of coin
If Random() < 0.5 Then ; Returns a value between 0 and 1.
$msg = "Heads. 50% Win"
Else
$msg = "Tails. 50% Loss"
Endif
MsgBox(0,"Coin toss", $msg )
;Random letter
If Random() < 0.5 Then
;Capitals
$Letter = Chr(Random(Asc("A"), Asc("Z"), 1))
Else
;Lower case
$Letter = Chr(Random(Asc("a"), Asc("z"), 1))
Endif
Is there anything like this for C++. I know there are online ones, but I don't always have access to the internet.
I'm using Microsoft Visual Studio as a compiler
...if you need to know that
For M$ there is MSDN aka M$ Software Developer Network. It has tons of references on it's Windows API.
The problem is becuz it is constantly updated it is always best to refer to it online. I understand you do not have access to Internet which is a sad thing (it also happen to me when I am still studying no monies get those Internet plans) so the best thing to do is use your Uni or some public free PC internet access to download specific references. Careful of virus though.
When our environment is harsh on us, it make us doubly determined to learn it via any means we can lay our hands on.