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();
}
VulpesPosted Mar 9, 2014, 1:01 PM
If you're not using MS Windows, then use "\n" instead of "\r\n".
should be used instead.
Guest UserPosted Mar 10, 2014, 4:37 PM