0

What's the error 1002 means wrong?

error 1002 expected

8th Nov 2016, 7:08 AM
leonard modo
leonard modo - avatar
5 Antworten
+ 1
try write your code here and we can look at it.
8th Nov 2016, 10:08 PM
P3RS0N
P3RS0N - avatar
+ 1
try dont use semicolon after{} but simple , and after " " dont use ,
10th Nov 2016, 7:21 AM
P3RS0N
P3RS0N - avatar
0
string yourStory Console.WriteLine("What kind of story?"); yourStory = Console.ReadLine(); Console.WriteLine("Adventure story {0}; Science fiction {1};Comedy {3};Melody slayer{2}", yourStory);
9th Nov 2016, 8:02 PM
leonard modo
leonard modo - avatar
0
string yourStory Console.WriteLine("What kind of story?"); yourStory = Console.ReadLine(); Console.WriteLine("Adventure story {0}, Science fiction {1},Comedy {3},Melody slayer{2}" yourStory);
10th Nov 2016, 3:39 PM
leonard modo
leonard modo - avatar
0
in the second WriteLine method, for {1} {2} {3} replacement characters, you have not provided any variables. you have provided only yourStory variable which replaces {0}. this has given error.
3rd Dec 2016, 5:32 PM
VinsTheCoder
VinsTheCoder - avatar