#include<stdio.h>
#include<stdlib.h>
char *syllable[26] = {"a","bub","cash","dud","e","fud","gug","hash","i","jay",
"kuck","lul","mum","nun","o","pub","quack","rug","sus",
"tut","u","vuv","wack","xux","yuck","zug"};
void Tutnese(char *word, char *newword);
char *letter;
void Tutnese(char *word, char *newword)
{
//clrscr();
for(*letter = 'A'; *letter <= 'Z'; *letter++)
{
letter=syllable;
printf("%c\n",&letter);
}
}
Tutnese 是一种英语游戏,主要由儿童使用,他们使用它在(感知到的)成年人的隐私中交谈(反之亦然)
我试图让 A="A" B="bub" c="cash" 等等。我期待这样的结果。
“计算机。” 变成“cashomumpubututerug”。- “Stony”变成“Sustutonunyuck”
但我刚开始学习c,我不知道如何使用指针。我一直在收到错误,例如赋值从指针中生成整数而不进行强制转换