#include <iostream> using namespace std; struct node { char data; int next; }; int main() { // word1、word2是两个单词的首地址, addr用于输入,实际上不存储数据 int word1, word2, n, addr; node a[100005] = {0}; while ( cin >> word1 >> word2 >> n ) { for (int i = 0; i &l...