Jump to content

I'm trying hard but a little help PLZ

Darkraisisi
Go to solution Solved by minibois,

it is in line 20 

 

and the error is Unexpected symbol 'firstName'

I see, you forgot a + in this line.

"Hey Your name is :" firstName + " " + secondName

=

"Hey Your name is :" +  firstName + " " + secondName

well i was learning c# via this site and i thought i knew a enough to make this "programe"

 

 

 

using System;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
    String firstName = "testEen";
    String secondName = "testTwee";

            Console.WriteLine ("What is your name ?");
            Console.WriteLine("type your first name.");
                firstName =    Console.ReadLine();

            Console.WriteLine ("What is your second name ?");
            Console.WriteLine("type your second name.");
                    secondName = Console.ReadLine();

            Console.WriteLine("Hey Your name is :" firstName + " " + secondName );
        }        
    }    
}

 

 

 

 

But my built in debug programme says there is 1 bugs in the 4e last line , whats wrong ??

 

 

i'm using monoDevelop on my mac

 

if any one wants to know where i learn it is here 

 

http://csharp.net-tutorials.com/basics/variables/

Link to comment
Share on other sites

Link to post
Share on other sites

What is the error?

 

 Don't forget to follow your posts as well, top left corner :P

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to comment
Share on other sites

Link to post
Share on other sites

what line spicifically is the error in?

Planning on trying StarCitizen (Highly recommended)? STAR-NR5P-CJFR is my referal link 

Link to comment
Share on other sites

Link to post
Share on other sites

it is in line 20 

 

and the error is Unexpected symbol 'firstName'

I see, you forgot a + in this line.

"Hey Your name is :" firstName + " " + secondName

=

"Hey Your name is :" +  firstName + " " + secondName

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to comment
Share on other sites

Link to post
Share on other sites

and only assing call increment decrement new objects expressions can be used as a statement

unexpectedsymbole ' )' expecting';'

Link to comment
Share on other sites

Link to post
Share on other sites

I see, you forgot a + in this line.

"Hey Your name is :" firstName + " " + secondName

=

"Hey Your name is :" +  firstName + " " + secondName

a thank you , i was typing the extra bull from the error log and my laptop died xD , but now i know thanks 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×