Originally Posted by Cerav
Does anyone know how to change this C++ to C? I'm having trouble doing it some pointers would be nice.
On a quick cursory glance (since I'm in class now), the only part that probably needs changing are the cout cin. The C counterparts are scanf and printf (use the man pages to help you, or just google them). Be careful of buffer overflow exploits though, and use fscanf if you need extra security.