Four-week project 4 Extension 2 file and salary operations

Source: Internet
Author: User

/** Copyright and version statement of the program: * Copyright (c) 2014, student * All rights reserved from computer College of Yantai University. * file name: * Author: zhaojiaxiang * Completion Date: July 15, March 19, 2014 * version: v1.0 * description of the task and solution section: * input Description: Salary * Problem description: Input salary, calculation * program output: Salary * Problem Analysis: * Algorithm Design: */# include
 
  
# Include
  
   
# Include
   
    
Using namespace std; class Salary {public: void set_salarys (); void add_salarys (int x); void sort_salarys (); void show_salarys (); private: double salarys [500]; // wage int number; // actual number of people}; int main () {Salary money; double x; money. set_salarys (); cout <"Enter the additional salary:" <
    
     
> X; money. add_salarys (x); cout <"sorted by Salary:" <
     
      
> Salarys [I]; I ++;} infile. close (); number = I;} void Salary: add_salarys (int x) {for (int I = 0; I
      
        Salarys [j]) {t = salarys [I]; salarys [I] = salarys [j]; salarys [j] = t ;}}} void Salary :: show_salarys () {for (int I = 0; I
       
        


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.