Hi Guys
this is my code below in my class, for display purposes I need" ingred" to be on 1 line and the balance of the code below, please help as I am new at this and a student using visual studio 2012
my code
public virtual string display()
{
return "Ingred " + "Potassium Nitrate:"+potNit.ToString()+"Charcoal:"+charc.ToString()+"Sulphur:"+sulp.ToString()+"Cost:"+
cost().ToString ("R0.00") + burnRate().ToString();
cost().ToString ("R0.00") + burnRate().ToString();
}

VulpesRank #55 · 29.2K reputationPosted Mar 9, 2014, 9:01 AM EDT
If you're not using MS Windows, then use "\n" instead of "\r\n".
should be used instead.
Guest User39 reputationPosted Mar 10, 2014, 12:37 PM EDT