Original Post
Hey everyone. I've been studying C++ for almost a year now. I want to go over the very basic to make sure I've learned this right... To call up a function from another file in the main loop, let's say update() { if {not updated, then update} else {do nothing} } (which will be stored in update.cpp) would we then do something like this in the main game loop (Yes I know there are more specific things in the syntax but for the sake of simplicity Im just going to give the layout) #include update.cpp main() { if { object exists update(); else { wait for 5 seconds then try again } } } So, do I have everything right so far? Please correct me if Im wrong as i don't want to continue learning something the wrong way. Thank you for your input everyone.