예제 #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();
        }
예제 #2
0
    static int Main()
    {
        sprint.print();
        var x = new writer();

        return(0);
    }
예제 #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;
 }
예제 #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;
 }
예제 #5
0
파일: main.cs 프로젝트: anders6400/Prakprog
    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));
            }
        }
예제 #7
0
        public ActionResult Create(writer writer)
        {
            try
            {
                _writerAccess.AddWriter(writer);


                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }
예제 #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;
 }
예제 #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");
        }
예제 #10
0
파일: main.cs 프로젝트: jsinkbaek/ppnm
    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);
    }
예제 #11
0
 writer => WriteDict(writer, EncoderConstants.MandatoryPrefixTable(genTypes), "to_mandatory_prefix")
예제 #12
0
 writer => WriteDict(writer, EncoderConstants.OpCodeTableKindTable(genTypes), "to_op_code_table_kind")
예제 #13
0
 writer => WriteDict(writer, InstrInfoDictConstants.RegisterFlagsTable(genTypes), "to_flags")
예제 #14
0
 writer => WriteDict(writer, EncoderConstants.EncodingKindTable(genTypes), "to_encoding_kind")
예제 #15
0
 WriteIOTypeCounters(writer, ioCounters.ReadCounters);
예제 #16
0
 writer => WriteDict(writer, InstrInfoDictConstants.MemorySizeFlagsTable(genTypes), "to_flags")
예제 #17
0
 WritePropertiesIntoBuffer(ref writer, options, true);
예제 #18
0
 writer => WriteDict(writer, SymbolFlagsConstants.SymbolFlagsTable(genTypes), "to_flags")
예제 #19
0
 currentNode.WriteTokenTo(writer, currentLeading, currentTrailing);
예제 #20
0
 public static void WriteVarInt <TBufferWriter>(ref this Writer <TBufferWriter> writer, sbyte value) where TBufferWriter : IBufferWriter <byte> => WriteVarInt(ref writer, ZigZagEncode(value));
예제 #21
0
 OriginalTemplate(writer, bindingContext);
예제 #22
0
 WriteObject(writer, graph);
 Write(writer, o);
예제 #24
0
 writer => WriteDict(writer, MasmSymbolOptionsConstants.SymbolTestFlagsTable(genTypes), "to_flags")
예제 #25
0
 CompressedIntegralTypes.WriteCompressedNullableInt(ref writer, readOnlyMemory.Length);
예제 #26
0
 writer => WriteDict(writer, FormatMnemonicOptionsConstants.FormatMnemonicOptionsTable(genTypes), "to_flags")
예제 #27
0
 writer => WriteDict(writer, InstrInfoDictConstants.OpAccessConstants(genTypes), "to_access")
예제 #28
0
 writer => WriteHash(writer, genTypes.GetObject <HashSet <EnumValue> >(TypeIds.RemovedCodeValues), "h")
 iterator?.Iterate(writer, context, blockParamsVariables, vm._value, template, ifEmpty);
예제 #30
0
 return(TryWrite(writer, value, options, ref state));
 public AbstractPrinter(writer outputWriter)
 {
     this.outputWriter = outputWriter;
 }