Can I add some custom variables with a new file in Visual Studio? Like this : type customvar = 5a;? (letter and number) | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

Can I add some custom variables with a new file in Visual Studio? Like this : type customvar = 5a;? (letter and number)

Please answer :D

24th Mar 2018, 3:34 PM
JoJas
JoJas - avatar
2 Antworten
+ 1
It depends what you want to do with the variabele. If it is for display only "5a" is a string. If you want to use it in calculations with it you need to define what "a" is. You can make a custom type but then you have to make a type definition first.
24th Mar 2018, 5:25 PM
sneeze
sneeze - avatar
0
WAAWZAAAaaaaa xx as ZZZzZz xx
27th Mar 2018, 2:42 AM
somantri