Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
文字列内のすべての文字が一意である C コードに文字列があります。この文字列からすべての部分文字列を取得し、空の文字列を除外して文字列を取得したいと考えています。これどうやってするの?
例: 文字列: "12a" 取得する必要があるのは: '1', '2', 'a', "12", "1a", "2a".
PS私の問題では、文字列セットで表されるセットと部分文字列で表されるサブセット。