Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

Errors with my char array

$
0
0
Hello I am trying to make a char array in C#. I looked the code up online when I got some errors with my code. The code is `char[] CarName = new char[] { 'CelicaGT4', 'HondaNSX', 'NissanR34'};` I get 6 errors with this code. I get error CS1012: Too many characters in character literal 3 times and error CS1525: Unexpected symbol `' 3 times as well. Thank you in advance

Viewing all articles
Browse latest Browse all 7934

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>