[ create a new paste ] login | about

Link: http://codepad.org/2VWOcUPS    [ raw code | output | fork ]

C, pasted on Jul 22:
#include <stdio.h>
struct SYOHIN
{
 int kosu;
 int tanka;
 int uriage;
};

void keisan(struct SYOHIN *x);

int main(void)
{
 struct SYOHIN a, b, c;
//<商品別の個数と単価の代入>
 kaisan(&a); printf("商品Aの売り上げは%d円 \n",a.uriage);
 kaisan(&b); printf("商品Bの売り上げは%d円 \n",b.uriage);
 kaisan(&c); printf("商品Cの売り上げは%d円 \n",c.uriage);
}

void keisan(struct SYOHIN *x)
{
//<商品xの売り上げの計算>
}


Output:
1
2
3
4
In function `main':
undefined reference to `kaisan'
undefined reference to `kaisan'
undefined reference to `kaisan'


Create a new paste based on this one


Comments: