Re: String assignement

2005-01-25 Thread Ron Michael Khu
Hi! I dont know much about c++ but after playing around with ur code, i discovered that u gave the assign() method a wrong value for the second parameter... why dont u try "ed-bg+1" ?? (remove the '-1' if u like) i think the second parameter is count or len... not the end index -Ron HIToC wrote

String assignement

2005-01-25 Thread HIToC
Hello all! I have a string CMD_LN that may contain a substring within angle brackets. I would like to assign another string IN_BRACKETS with the substring that is contained within the angle brackets of CMD_LN if it is present. I have written this code that should work: // A_brack.cpp #include