先借我放一下
#include<stdio.h><br>#include<conio.h><br>#include<stdlib.h><br>#include<string.h><br>int main(void){<br>int numberijk;/*定義MNK*/<br>int p; /*定義迴圈數及包牌號碼*/<br>printf(請輸入包牌之MNK....n);<br>scanf(%d&number);<br>i=number/100; /*1到m*/<br>j=(number-i*100)/10; /*N組*/<br>k=(number-i*100)-j*10; /*K個*/<br>printf(請輸入包牌之固定號碼n);<br>char buy;<br>scanf(%sbuy);<br>/*開始找出包牌外的數字*/<br>int a;/*用於元素*/<br>a=strlen(buy);<br>int b;/*拿來放BUY*/<br>/*開始寫迴圈*/<br>for (p=1;p<=a;p++){<br>b=p;<br>}<br>int f;<br>for (p=1;p<=i;p++){<br>f=p;<br>}<br>/*挑出buy以外*/<br>char d;<br>for(p=1;p<=i;p++){<br>if (b!=f){<br>d=p;<br>}<br>}<br>printf(以下是您所包牌的包牌號碼!n);<br>/*開始印出包牌號碼*/<br>int ppllkk;<br>for (p=1;p<=i;p++){<br>if(d!=0){<br> pp=d-i;<br> for (ll=d+1;ll<=i;ll++){<br>printf(%s%d%dnbuydll);<br> }<br>}<br>}<br>printf(祝君中大獎!!!!);<br>/*程式設計 BY: 桃園高中三年一班 李宗諺*/<br>/*Power By Yan. http://www.tysh.net*/<br>getch ();<br>return 0;<br>}
頁:
[1]