sprintf()
-
Is there something in C# (maybe working with a 'string' variable) that allows formating like we use in C++ with the sprintf() function or the CString class's member function Format()? Rick Crone
-
Is there something in C# (maybe working with a 'string' variable) that allows formating like we use in C++ with the sprintf() function or the CString class's member function Format()? Rick Crone
Use String.Concat
using System;
class nish
{
public static void Main()
{
string s;
int a=10;
int b=17;
s=String.Concat(a," ",b);
Console.WriteLine(s);
}
}Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut
-
Is there something in C# (maybe working with a 'string' variable) that allows formating like we use in C++ with the sprintf() function or the CString class's member function Format()? Rick Crone
Try String.Format()