hi there,
i am trying to make a client/server program for my project.
i have created a menu that gives 3 options which in turn would take you to its corresponding method in my client. the method would run and send over some info to the server as a string. what i want to do is put a character into the first part of the array ( i believe this to be arrayname [0] and not [1]) so that when the server reads in the first character it can recognise it and send it to the correct path.
i.e
if arrayname[0] ==Q do this bit
else if arrayname[0] ==C do this
else if arryname[0] == s do this
else send error code
can anyone tell me how this could be done, and how it can be done using tab spacing ?
cheers
fatboy