Update connectNstatic.cpp

uhh again, i just started on the most basic parts.. more than welcome to change my code if anyone finds problem with them. now i'm off to noon cmpt class