Beispiel #1
0
        static void Main(string[] args)
        {
            book   book   = new book();
            writer writer = new writer();

            Console.WriteLine("-----------------------------------------------------------");
            Console.WriteLine("INPUT BOOK INFOMATION");
            Console.WriteLine("-----------------------------------------------------------");
            Console.Write("Input book title : ");
            book.title = Console.ReadLine();
            Console.Write("Input book price : ");
            book.price = double.Parse(Console.ReadLine());
            Console.WriteLine();
            Console.WriteLine("-----------------------------------------------------------");
            Console.WriteLine("INPUT AUTHOR INFORMATION");
            Console.WriteLine("-----------------------------------------------------------");
            Console.Write("Input author name : ");
            writer.name = Console.ReadLine();
            Console.Write("Input author email : ");
            writer.email = Console.ReadLine();
            Console.Write("Input author birth year : ");
            writer.year = int.Parse(Console.ReadLine());

            int tyear = DateTime.Now.Year - writer.year;

            Console.WriteLine($"The book named \"{book.title}\" write by {writer.name} ({tyear} year old) ");
            Console.WriteLine($"Costs {book.price} baht. (Write contact: {writer.email})");
            Console.ReadKey();
        }
Beispiel #2
0
    static int Main()
    {
        sprint.print();
        var x = new writer();

        return(0);
    }
Beispiel #3
0
 public encoder(writer w = default, error err = default, array <byte> buf = default, uint bits = default, uint nBits = default, array <array <byte> > quant = default)
 {
     this.w     = w;
     this.err   = err;
     this.buf   = buf;
     this.bits  = bits;
     this.nBits = nBits;
     this.quant = quant;
 }
Beispiel #4
0
 public encoder(writer w = default, error err = default, GIF g = default, long globalCT = default, array <byte> buf = default, array <byte> globalColorTable = default, array <byte> localColorTable = default)
 {
     this.w                = w;
     this.err              = err;
     this.g                = g;
     this.globalCT         = globalCT;
     this.buf              = buf;
     this.globalColorTable = globalColorTable;
     this.localColorTable  = localColorTable;
 }
Beispiel #5
0
    static int Main()
    {
        sprint.print();
        var y = new writer();
        var x = y;

        y.s = "new string\n";
        x.print();
        y.print();
        return(0);
    }
        public IHttpActionResult AddUser(string username, string password)
        {
            var _writer = new writer();

            try
            {
                _writer.write(username, password);
                return(Ok());
            }
            catch (Exception ex)
            {
                return(InternalServerError(ex));
            }
        }
        public ActionResult Create(writer writer)
        {
            try
            {
                _writerAccess.AddWriter(writer);


                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }
Beispiel #8
0
 public encoder(writer w = default, Order order = default, Func <ptr <encoder>, uint, error> write = default, uint bits = default, ulong nBits = default, ulong width = default, ulong litWidth = default, uint hi = default, uint overflow = default, uint savedCode = default, error err = default, array <uint> table = default)
 {
     this.w         = w;
     this.order     = order;
     this.write     = write;
     this.bits      = bits;
     this.nBits     = nBits;
     this.width     = width;
     this.litWidth  = litWidth;
     this.hi        = hi;
     this.overflow  = overflow;
     this.savedCode = savedCode;
     this.err       = err;
     this.table     = table;
 }
Beispiel #9
0
/**********************************************************************************************************************************************************************************************************************************************************/

        private void button3_Click(object sender, EventArgs e)
        {
            writer a = new writer();

            a.Path  = path;
            a.data  = data;
            a.datas = data;
            a.res   = d2;
            a.createExcelFile();
            a.daily();
            a.weekly();
            a.montly();

            Console.WriteLine("Finish");
        }
Beispiel #10
0
    static int Main()
    {
        sprint.print();
        var x = new writer();
        var y = new writer();

        x.print();
        y.print();
        y.s = "new string\n";
        y.print();
        var z = new swriter();

        z.s = "hello from swriter\n";
        z.print();
        return(0);
    }
Beispiel #11
0
 writer => WriteDict(writer, EncoderConstants.MandatoryPrefixTable(genTypes), "to_mandatory_prefix")
Beispiel #12
0
 writer => WriteDict(writer, EncoderConstants.OpCodeTableKindTable(genTypes), "to_op_code_table_kind")
Beispiel #13
0
 writer => WriteDict(writer, InstrInfoDictConstants.RegisterFlagsTable(genTypes), "to_flags")
Beispiel #14
0
 writer => WriteDict(writer, EncoderConstants.EncodingKindTable(genTypes), "to_encoding_kind")
 WriteIOTypeCounters(writer, ioCounters.ReadCounters);
Beispiel #16
0
 writer => WriteDict(writer, InstrInfoDictConstants.MemorySizeFlagsTable(genTypes), "to_flags")
Beispiel #17
0
 WritePropertiesIntoBuffer(ref writer, options, true);
Beispiel #18
0
 writer => WriteDict(writer, SymbolFlagsConstants.SymbolFlagsTable(genTypes), "to_flags")
Beispiel #19
0
 currentNode.WriteTokenTo(writer, currentLeading, currentTrailing);
 public static void WriteVarInt <TBufferWriter>(ref this Writer <TBufferWriter> writer, sbyte value) where TBufferWriter : IBufferWriter <byte> => WriteVarInt(ref writer, ZigZagEncode(value));
 OriginalTemplate(writer, bindingContext);
 WriteObject(writer, graph);
 Write(writer, o);
Beispiel #24
0
 writer => WriteDict(writer, MasmSymbolOptionsConstants.SymbolTestFlagsTable(genTypes), "to_flags")
Beispiel #25
0
 CompressedIntegralTypes.WriteCompressedNullableInt(ref writer, readOnlyMemory.Length);
Beispiel #26
0
 writer => WriteDict(writer, FormatMnemonicOptionsConstants.FormatMnemonicOptionsTable(genTypes), "to_flags")
Beispiel #27
0
 writer => WriteDict(writer, InstrInfoDictConstants.OpAccessConstants(genTypes), "to_access")
Beispiel #28
0
 writer => WriteHash(writer, genTypes.GetObject <HashSet <EnumValue> >(TypeIds.RemovedCodeValues), "h")
 iterator?.Iterate(writer, context, blockParamsVariables, vm._value, template, ifEmpty);
Beispiel #30
0
 return(TryWrite(writer, value, options, ref state));
 public AbstractPrinter(writer outputWriter)
 {
     this.outputWriter = outputWriter;
 }