10 Replies
Google C# format strings
And then give me some pelmeni :p
ight if i will understand this shit xd
I'll be at a computer in about 15 min if you can't figure it out:)
ye i would use some help
Pobiega
REPL Result: Success
Console Output
Compile: 602.141ms | Execution: 84.365ms | React with ❌ to remove this embed.
figured it out, basicly i put "var" instead of "int" or "double" and used that $....:F5
went through without errors, idk if thats the correct way, but if it works, it works, right?
You don't need var, the important part is the dollar sign and the format string
oh.. lemme try that
yes, thanks, what's "var" used for anyways then?
i'll post my code if anyone needs it : )
var
is a variable declaration with "type inference". it means, take the type on the right side
so var name = "Steve";
will be a string, because "Steve" is a string.
var x = 5;
will be an int
variable.Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.