The answer itself isn't that usefull, but i looked into the table of contents and found the answer in a paragraph 2 chapters further or something.
Thanks anyways :P
Type: Posts; User: Reinmaster7
The answer itself isn't that usefull, but i looked into the table of contents and found the answer in a paragraph 2 chapters further or something.
Thanks anyways :P
Hey everyone!
I just learned about pointers, and i want to combine them with arrays, but i don't know what the general syntax is for a pointer pointing to an array. can it point to a full array or...
I don't understand this.
i dont entirelyunderstand the rand statement, but i do think to know that this is a function that takes the socalled seed from the srand function, and makes calculation with...
You sir, are smart :P
Thank you :D
he defined it correctly, but by reading it you assume this is possible. when you read it back, you see he clearly explains it.
also, i didn't read all of it in the book, because i thought i...
Hello everyone.
I'm working on making a little card game, and therefore i need to be able to deal cards.
so im working on function to give you a card.
I tried this piece of code:
switch...
did i post a report? no, i asked if this was a fault xD :p
It was just a question!
and further in the book i found 2 typos xD, not in sample codes but in normal text. somewhere there is "appy"...
I am a noob, i admit, but i am trying hard :D
I just love coding so much :P
But seeing this, i thought of something. i understand that you can get the seed by the srand(time(NULL)); , but by...
When i do a for loop, going trough this random generating code 1000 times it is generated randomly, but everytime i stárt the program, it's usually a little more than the last time i ran the program
hello!
I've made my first random number generator, and everytime i try it out, the numbers are random, but they all add up. so if i have a randomness range between 1 and 52 (card game) it's...
I thought so :D
int main (){
for ( int i = 0; i < 10; i++ )
{
cout << '\t' << i; // \t represents a tab character, which will
format our output nicely
}
cout << '\n';
for ( int i = 0; i < 10; ++i )
{
cout...
Thanks for the replies, now i understand;)
Now, let's get on with the tutorial! :D
you got Alex' book?
he clearly explains very good how to install it. Read it carefully.
If it's a compressed directory mayby you should open it and the installer is in it?
I've got windows so i'm...
Hello everyone,
I just bought Alex' eBook, and i noticed somethign that i thought was wrong.
In the book, there is this if statement:
if ( x != 0 && 10 / x < 2 ){
cout << "10 / x is less than...