Error C2078 Too Many Initializers Char
Contents |
array
Too Many Initializers C++
but I continue to get the error: error C2078: too many initializers Can someone too many initializers error in c tell me why this error occurs and how to fix it? 1
2
const char Letters[] = { "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", too many initializers for struct "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z" }; Last edited on Dec 31, 2014 at 12:12am UTC Dec 31, 2014 at 12:20am UTC keskiverto (5744) Value in double quotes is a null-terminated string; an array of characters. Value in single quotes is a char. Change the quotes. Topic archived. No new replies allowed. C++ Information Tutorials Reference Articles Forum Forum BeginnersWindows ProgrammingUNIX/Linux ProgrammingGeneral C++ ProgrammingLoungeJobs Home page | Privacy policy© cplusplus.com, 2000-2016 - All rights reserved - v3.1Spotted an error? contact us
here for a quick overview of the site
Too Many Initializers For Char In C
Help Center Detailed answers to any questions you might have Meta Discuss the workings and http://www.cplusplus.com/forum/beginner/152260/ policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags http://stackoverflow.com/questions/21581095/too-many-initializers-for-char-b Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up too many initializers for char b[] up vote 2 down vote favorite it is morse code program. I am getting error of "too many initializers for char b[]", how can i get rid of this error........ #include
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about http://stackoverflow.com/questions/35353679/error-with-too-many-initializers hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error with too many initializers up vote -1 down vote favorite I need to create an array of different colors and the second array would be for the number of too many objects, so the 1st object detected would loop through all of the colors. I am having trouble getting the list of colors to appear in the Terminal box. This is what I have to far: #include < iostream> #include < string.h> using namespace std; int main() { string Color[11] = { "Red", "Blue", "Green", "Purple", "Yellow", "Black", "White", "Orange", "Brown", '\0' }; cout << Color << endl; return 0; } c++ visual-studio robotics share|improve this question edited Feb 12 too many initializers at 2:16 dasblinkenlight 455k39492842 asked Feb 12 at 2:13 Virang Patel 112