stupid bird learns C

stupid bird learns C,第1张

stupid bird learns C

查找

#include

int search(int key,int a[],int len)
{
	int ret = -1;
	for(int i=0;i 

搜索

#include
int amount[]={1,5,10,25,50};
const char *name[]={"penny","nickle","dime","quarter","half-dollar"};

struct{
	int amount;
	const char *name;
}coins[]={
	{1,"penny"},{5,"nickle"},{10,"dime"},{25,"quarter"},{50,"half-dollar"}
};



int main()
{	
	int k,i;
	printf("please input the number you want within (1,5,10,25,50):n");
	scanf("%d",&k);
	for(i=0;i 

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5634668.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-15
下一篇 2022-12-16

发表评论

登录后才能评论

评论列表(0条)

保存