Thanks Cela! :)
Type: Posts; User: awilmut
Thanks Cela! :)
void main(void)
{
String s("dunc0035:!:5701:500::/shome/dunc0035:/bin/ksh");
StringTokenizer tokens( s, ':' );
}
Heres the rest of the code... It won't help you...
Ok, I have searched the archives and cannot find an answer to my question, so ... I am tokenizing strings by the delimiter ':' and cannot seem
to assign and index value from the output of the...
Thanks Guys...
oops.. sorry folks, it should be:
if ((menuSelection != 'A') && (menuSelection != 'B') && (menuSelection != 'C') && (menuSelection != 'D') && (menuSelection != 'X'))
it's not :D but thanks. Anyone else?
Searched, couldn't find it.. I'm looking to simplify this:
if ((menuSelection != 'A') || (menuSelection != 'B') || (menuSelection != 'C') || (menuSelection != 'D') || (menuSelection != 'X'))
...
citCode is an array of 4 chars
if I also wanted to clear the contents of char how could i do it??
If I wanted to check if a user entered value was blank ie. the user presses enter would I use this code??:
cout <<"Enter city code:"<<endl;
cin >>cityCode;
if (cityCode == '')
secondly how...
i just need a way to be able to input the 3 letter codes in sequence
Ok, but is what I was suggesting possible??
i'm not that far ahead in my c++ courses to do what u suggest...
Andrew Wilmut
Ok, heres my problem.
i have a structure here it is:
struct route
{
char cityCode1[3];
char cityCode2[3];
char cityCode3[3];
char cityCode4[3];
char cityCode5[3];