none
tips from jk

    Question

  • using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    
    namespace BookList
    {
        class Book
        {
            public string Author { get; set; }
            public string Title { get; set; }
            public decimal Price { get; set; }
    
            public Book(string author, string title, string price)
            {
                this.Author = author;
                this.Title = title;
                this.Price = Convert.ToDecimal(price);
            }
    
            public override string ToString()
            {
                return Author + " " + Title + " €" + Price;
    
            }
    
            public string FileWriteFormat()
            {
                //charles dickens,hard times,10
                return Author + "," + Title + "," + Price;
    
            }
        }
    }
    

    Friday, January 10, 2014 9:16 AM

All replies

  • Hi John,

    Welcome to MSDN forum.

    Could you please tell us what the meaning of " tips from jk" is?

    What do you want us support team to do with this code?

    This forum is mainly to discuss and ask questions about the Visual C++ IDE, libraries, samples, tools, setup, and Windows programming using MFC and ATL.

    Was the above code related to  Visual C++?

    If so, what was the specific kind of this project?

    Please provide more details so that we could have a better understanding of this issue.

    Best Regards,

    Jane.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, January 13, 2014 7:52 AM