1.?销售系统销售系统???ϵͳԴ??
2.c语言粮油进销存系统源代码
3.ERP系统源码-云进销存(web+app)搭建附源码(PC+APP+H5+小程序)
4.收银系统源码收银系统OEM定制开发(收银POS+线上商城+ERP+营销插件+聚合支付)
????ϵͳԴ??
代码
class Program
{
//人民币面额
private static decimal[] moneyArr = new decimal[] { M, M, M, M, 5M, 2M, 1M, 0.5M, 0.2M, 0.1M, 0.M, 0.M, 0.M };
//存各种面额的人民币发放份数
private static int[] moneyCountList = null;
static void Main(string[] args)
{
decimal currentMoney = .M;
int[] moneyCount = Calculate(currentMoney);
Console.WriteLine("当前需找零金额:{ 0}¥", currentMoney);
for (int i = 0; i < moneyCount.Length; i++)
Console.WriteLine("面额{ 0}¥ 共 { 1} 张", moneyArr[i], moneyCount[i]);
Console.ReadLine();
}
/// <summary>
/// 计算发放金额数
/// </summary>
/// <param name="money"></param>
/// <returns></returns>
static int[] Calculate(decimal money)
{
moneyCountList = new int[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
int tmpMoney = NumHelper(money);
while (tmpMoney > 0)
{
for (int i = 0; i < moneyArr.Length; i++)
{
if (tmpMoney >= NumHelper(moneyArr[i]))
{
int result = tmpMoney / NumHelper(moneyArr[i]); //直接除,比一条一条减算的源码源码qq空间源码web快
moneyCountList[i] = result;//对应的发送份数
tmpMoney = tmpMoney % NumHelper(moneyArr[i]); //余数
break;
}
}
}
return moneyCountList;
}
/// <summary>
/// 将金钱转换成整数处理
/// </summary>
/// <param name="money"></param>
/// <returns></returns>
static int NumHelper(decimal money)
{
return Convert.ToInt(money * );
}
}
c语言粮油进销存系统源代码
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<conio.h>
//日期结构体
typedef struct
{
int year;
int month;
int day;
}DATE;
//商品结构体
//定义链表
typedef struct Node
{
long num;
char name[];
char kind[];
DATE pro_date;
int save_day;
int shuliang;
float jinjia;
float shoujia;
DATE sale_date;
struct Node *next;
}Node,*LinkList;
//申请函数
void apply()
{
int i,flag=1;
FILE *fp;
char name[],key[];
flushall();
printf("用户名(不能为空):");
scanf("%s",name);
flushall();
printf("密码(不能为空):");
for(i=0;i<=;i++)
{
key[i]=getch();
if(key[i]==)
{
key[i]='\0';
break;
}
printf("*");
}
fp=fopen("key.txt","w");
if(fp==NULL)
{
printf("the file can not open!");
flag=0;
exit(1);
}
fprintf(fp,"%s %s",name,key);
fclose(fp);
if(flag==1)
printf("\n申请成功,请登录!\n");
else
printf("\n申请失败,请重新申请!\n");
}
//登录函数
int load()
{
FILE *fp;
int i;
char name[],key[];
char name1[],key1[];
fp=fopen("key.txt","r");
fscanf(fp,"%s %s",name,key);
fclose(fp);
printf("用户名(不能为空):");
scanf("%s",name1);
flushall();
printf("密码(不能为空):");
for(i=0;i<=;i++)
{
key1[i]=getch();
if(key1[i]==)
{
key1[i]='\0';
break;
}
printf("*");
}
printf("\n");
if(strcmp(name1,name)==0&&strcmp(key1,key)==0)
{ printf("登陆成功!\n\n");return 1; }
else
{ printf("用户名或密码错误;请重新登录!"); return 0;}
}
//密码保护系统
void key()
{
int choice,c;
do
{ printf("\n