[text] needs name

Viewer

copydownloadembedprintName: needs name
  1. #import <math.h>
  2. #import <stdio.h>
  3. #import <Foundation/Foundation.h>
  4. #import <string.h>
  5. #define NAME_SIZE 40
  6. #define POSITION_SIZE 40
  7.  
  8. //structs of Employee, list of employees, the expense of employees and the list of goods
  9. typedef struct{
  10.     int ID;
  11.     char Name [NAME_SIZE];
  12.     char Position [POSITION_SIZE];
  13.     double Salary;
  14.                  
  15. }Employee;
  16.  
  17. //typedef struct {
  18.    // int ID;
  19.    // int lenght;
  20.     //int Count;
  21. //}EmployeeList;
  22.  
  23. //struct Expense{
  24.   //  int ID;
  25.     //char Description;
  26.     //double Cost;
  27.     
  28. //};
  29.  
  30. //struct ExpenseList{
  31.     
  32.  //   int Lenght;
  33.    // int Count;
  34. //};
  35.  
  36. int main() {
  37.   
  38.     Employee n = {1,"shaun","management", 20000};
  39.     print_Employee(n);
  40.  
  41.     return 0;
  42.     }
  43.  
  44.  

Editor

You can edit this paste and save as new:


File Description
  • needs name
  • Paste Code
  • 30 Nov-2021
  • 757 Bytes
You can Share it: