看板 Trace 關於我們 聯絡資訊
#include<stdio.h> #include<stdlib.h> int main() { int i=3,j=4,k,l; k= addormult(i,j); l= addormult(i,j); printf("%d,%d\n",k,l); system("pause"); return 0; } int addormult(int a,int b) { int ck,dl; ck=a+b; dl=a*b; return(ck,dl); } 請問一下 為什麼跑不出來呢?? 哪裡寫錯惹? 謝謝^___^ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.41.173.77
rick :你要回傳兩個整數讓一個變數去接收? 難怪跑不出來 11/06 09:02