/ rgh.cpp : Defines the entry point for the console application./#include “stdafx.h“#include“iostream.h“#includeint salary(char zhicheng,int x)char a10=“jiaoshou“,b15=“fujiaoshou“,c10=“jiangshi“,d10=“zhujiao“;if(strcmp(zhicheng,a)=0)return 100*x;if(strcmp(zhicheng,b)=0)return 80*x;if(strcmp(zhicheng,c)=0)return 60*x;if(strcmp(zhicheng,d)=0)return 40*x;else return 0;void main()char zhi10,name10;int y,sum;coutnamezhi;couty;sum=salary(zhi,y);coutint main(int argc, char* argv)char *s4=“*“,“*“,“*“,“*“;for(int i=0;i4;i+)coutsetw(i+4)siendl;结 果 :*Press any key to continue