This is the first example.
#include <stdio.h>
#include <string.h>
int main () {
string_t s, token;
s = stradd("abcd ", "1234 ", "ABCD");
printf("s = %s\n", s);
foreach (token;s) {
printf("token = %s\n", token);
}
}
The output is:
s = abcd 1234 ABCD
token = abcd
token = 1234
token = ABCD
Here is the second example:
#include
#include
using namespace std;
int main(){
string_t word;
char c;
word="then";
printf("word = %s\n", word);
cout<
The output is:
word = then
then
thea
c = t
c = h