Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - IOInterrupt

Pages: [1]
1
General / Re: Super basic C++ question
« on: March 10, 2013, 09:14:32 pm »
Thanks guys.  I read a good chunk of 'Thinking in C++' quite a while back, but I guess I will need to dig into it again, because I don't recall objects being initialized like that....I thought maybe I was seeing as shorthand version or something.

2
General / Super basic C++ question
« on: March 10, 2013, 08:54:05 pm »
Hello, I am new to C++ and needless to say, SFML.  I have a really basic question regarding the object initialization.  While I have no experience with C++, I have been developing with PHP for 7+ years so I do have a understanding of programming fundamentals. 

As an example:
    sf::VideoMode videoMode(320,240);
    sf::Window window(videoMode,"Basic Display Window");

Are these statements initializing the variables and then immediately running the constructor method with the given parameters?  It just looks a little foreign to me and I would expect something more similar to.

sf::VideoMode viewMode = new sf::VideoMode(320,240);
sf::Window window = new sf:Window(videoMode,"Basic Display Window");

Any articles that you might be able to link to as well would be greatly appreciated.

Pages: [1]