fork download
  1. namespace ConsoleApplication41
  2. {
  3. class Program
  4. {
  5. static void Main(string[] args)
  6. {
  7. Lib A = new Lib();
  8. Book B = new Book("1", "2", "3", 4, 5.5);
  9. A.arrLib[0] = B;
  10. Console.WriteLine("количество элементов в массиве");
  11. Console.WriteLine("{0}", A.arrLib.Length);
  12. Console.WriteLine("Добавить/редактировать книгу");
  13. A.editBook();
  14. Console.WriteLine("Просмотр книги");
  15. A.showBook();
  16. Console.WriteLine("Суммарная цена экземпляров книг");
  17. A.bookSum();
  18.  
  19.  
  20. }
  21. }
  22. }
  23.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(7,13): error CS0246: The type or namespace name `Lib' could not be found. Are you missing an assembly reference?
prog.cs(8,13): error CS0246: The type or namespace name `Book' could not be found. Are you missing an assembly reference?
prog.cs(9,27): error CS0841: A local variable `B' cannot be used before it is declared
prog.cs(9,13): error CS0841: A local variable `A' cannot be used before it is declared
prog.cs(10,13): error CS0103: The name `Console' does not exist in the current context
prog.cs(11,13): error CS0103: The name `Console' does not exist in the current context
prog.cs(12,13): error CS0103: The name `Console' does not exist in the current context
prog.cs(13,13): error CS0841: A local variable `A' cannot be used before it is declared
prog.cs(14,13): error CS0103: The name `Console' does not exist in the current context
prog.cs(15,13): error CS0841: A local variable `A' cannot be used before it is declared
prog.cs(16,13): error CS0103: The name `Console' does not exist in the current context
prog.cs(17,13): error CS0841: A local variable `A' cannot be used before it is declared
Compilation failed: 12 error(s), 0 warnings
stdout
Standard output is empty