Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Simple problem with brackets [modified]

Simple problem with brackets [modified]

Scheduled Pinned Locked Moved C#
helpcsharplearning
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Amangang
    wrote on last edited by
    #1

    Hello all, I have just started programming with c# (2008). The only programming experience that i have ever had is visual basic. I am only 12 years old. I have purchased a c# 2009 for dummies book and that does not seem to help my current problem. My problem is that I am unable to write things. This is what i mean: Console.WriteLine("Enter your name:"); Above both the brackets i get a red line and a error saying "invalid token '(' in class, struct, or interface member declaration. I also get the same message for the other bracket. "invalid token ')' in class, struct, or interface member declaration. I have tried everything and asked everybody however know one seems to know a solution, I would deeply appreciate if anybody woul help me. Thank you, Aman

    modified on Tuesday, August 4, 2009 4:44 PM

    V 1 Reply Last reply
    0
    • A Amangang

      Hello all, I have just started programming with c# (2008). The only programming experience that i have ever had is visual basic. I am only 12 years old. I have purchased a c# 2009 for dummies book and that does not seem to help my current problem. My problem is that I am unable to write things. This is what i mean: Console.WriteLine("Enter your name:"); Above both the brackets i get a red line and a error saying "invalid token '(' in class, struct, or interface member declaration. I also get the same message for the other bracket. "invalid token ')' in class, struct, or interface member declaration. I have tried everything and asked everybody however know one seems to know a solution, I would deeply appreciate if anybody woul help me. Thank you, Aman

      modified on Tuesday, August 4, 2009 4:44 PM

      V Offline
      V Offline
      VengefulSakhmet
      wrote on last edited by
      #2

      Hello World C# Go through this tutorial. It should help get you on the right start. You can even download the code and try to compile that by itself. If that fails to compile then you may have issues with how your directories are set up. Best of luck!

      A 1 Reply Last reply
      0
      • V VengefulSakhmet

        Hello World C# Go through this tutorial. It should help get you on the right start. You can even download the code and try to compile that by itself. If that fails to compile then you may have issues with how your directories are set up. Best of luck!

        A Offline
        A Offline
        Amangang
        wrote on last edited by
        #3

        Dear VengefulSakhmet, Thank you very much. May i know here to find your tutorial? Thank you, Aman

        H 1 Reply Last reply
        0
        • A Amangang

          Dear VengefulSakhmet, Thank you very much. May i know here to find your tutorial? Thank you, Aman

          H Offline
          H Offline
          Henry Minute
          wrote on last edited by
          #4

          You see at the top of the message the 'Hello World C#' bit? Click on it, it's a link. The different colour, sort of gives this away.

          Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

          A 1 Reply Last reply
          0
          • H Henry Minute

            You see at the top of the message the 'Hello World C#' bit? Click on it, it's a link. The different colour, sort of gives this away.

            Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

            A Offline
            A Offline
            Amangang
            wrote on last edited by
            #5

            Dear Henry Minute, Thank you very much for the totorial, i am sure that i will find it very usefull. Sorry for the trouble, Aman

            A 1 Reply Last reply
            0
            • A Amangang

              Dear Henry Minute, Thank you very much for the totorial, i am sure that i will find it very usefull. Sorry for the trouble, Aman

              A Offline
              A Offline
              Amangang
              wrote on last edited by
              #6

              Dear HenryMinuite, Man i used your totorial and i did nto find it usefull FOR my problem. The brackets still go red no matter whati try. I even trying copying and paisting it but it still does not work. I Copied the command that writes thing on the launch of the program but it still apears red. Would it help if i paist my script for you to understand and hopefully help? Thank you, Aman

              V 1 Reply Last reply
              0
              • A Amangang

                Dear HenryMinuite, Man i used your totorial and i did nto find it usefull FOR my problem. The brackets still go red no matter whati try. I even trying copying and paisting it but it still does not work. I Copied the command that writes thing on the launch of the program but it still apears red. Would it help if i paist my script for you to understand and hopefully help? Thank you, Aman

                V Offline
                V Offline
                VengefulSakhmet
                wrote on last edited by
                #7

                Dear Aman, The tutorial I had posted at the top called "Hello World C#" should work correctly. Perhaps your directories and libraries are not properly set up. Take a look at: Visual Studio Getting Started. I would go to the FAQ section and look up installation procedures. Also post your full code. I assume you are trying to write a small program for starters, so it shouldn't be hard to tell if your program would compile properly in the right environment. Best of luck! -Laurel

                A 1 Reply Last reply
                0
                • V VengefulSakhmet

                  Dear Aman, The tutorial I had posted at the top called "Hello World C#" should work correctly. Perhaps your directories and libraries are not properly set up. Take a look at: Visual Studio Getting Started. I would go to the FAQ section and look up installation procedures. Also post your full code. I assume you are trying to write a small program for starters, so it shouldn't be hard to tell if your program would compile properly in the right environment. Best of luck! -Laurel

                  A Offline
                  A Offline
                  Amangang
                  wrote on last edited by
                  #8

                  Hello, I asumed that at first. However all my previous programs had worked properly without a error, I even copied and pasted it but the brackets still have the red line underneath. I have not touched the settings, Anyway i will look at the getting started thing. Thank you very much for helping me. I hope that it will help me a lot and fix my unusual problem. Thank you for all your support, Aman

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups