初學者程式員在這里,試圖弄清楚如何在 C 中找到和列印最長的公共前綴。
我在這里有一個程式的基礎。
#include <stdio.h>
void findprefix(char *str1, char *str2, char *found);
int main(void) {
char str1[100];
char str2[100];
char found[10] = { '\0' };
printf("\nGive string 1: ");
scanf("
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/373365.html
