How to call on a function found on another file?
问题 I\'m recently starting to pick up C++ and the SFML library, and I was wondering if I defined a Sprite on a file appropriately called \"player.cpp\" how would I call it on my main loop located at \"main.cpp\"? Here is my code (Be aware that this is SFML 2.0, not 1.6!). main.cpp #include \"stdafx.h\" #include <SFML/Graphics.hpp> #include \"player.cpp\" int main() { sf::RenderWindow window(sf::VideoMode(800, 600), \"Skylords - Alpha v1\"); while (window.isOpen()) { sf::Event event; while (window