Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
reason for the & sign
Print
Pages: [
1
]
Author
Topic: reason for the & sign (Read 1310 times)
0 Members and 1 Guest are viewing this topic.
Fnak
Newbie
Posts: 22
reason for the & sign
«
on:
July 04, 2014, 08:29:10 pm »
I created a function that looks like this:
void Draw(sf::RenderWindow &window);
... to draw a sprite.
but I don't understand why the & sign needs to be there...
what is it for? I can't seem to find out
Logged
Jesper Juhl
Hero Member
Posts: 1405
Re: reason for the & sign
«
Reply #1 on:
July 04, 2014, 08:40:43 pm »
It marks the variable as being a
reference
.
Logged
Fnak
Newbie
Posts: 22
Re: reason for the & sign
«
Reply #2 on:
July 05, 2014, 02:05:25 am »
thanks
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
reason for the & sign
anything