Programming Query
Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Programming Query

  1. #1
    Senior Member kingkong's Avatar
    Join Date
    Oct 2007
    Location
    UAE
    Posts
    197

    Programming Query

    Hi Ao,

    I am really in a odd place right now going to ask a very stupid question but its better if i ask

    i have download C# Express Edition
    Form below link
    http://www.microsoft.com/express/product/

    And as i started with the most simple program but the book which i prefer is a bit old edition which says 1st sample of programming as


    main()
    {
    printf ("I see, I remember");
    }

    but in the very first line there is a problem "main"

    It does say the error messege i m attaching the screenies of it may be if you guyz can help me in this please.

    Thanks and regards
    KK
    Attached Images Attached Images
    Question is not "Why are you Online"
    Question is "Why are you Off line"

  2. #2
    Just Another Geek
    Join Date
    Jul 2002
    Location
    Rotterdam, Netherlands
    Posts
    3,403
    C# has, besides it's name and some of it's syntax, nothing to do with C or C++. It's an entirely different programming language. Main() and printf are a C thing.
    Last edited by SirDice; January 22nd, 2008 at 12:50 PM.
    Oliver's Law:
    Experience is something you don't get until just after you need it.

  3. #3
    Senior Member kingkong's Avatar
    Join Date
    Oct 2007
    Location
    UAE
    Posts
    197
    SO u mean to say C and C# are two different languages ?
    Question is not "Why are you Online"
    Question is "Why are you Off line"

  4. #4
    Custom User
    Join Date
    Oct 2001
    Posts
    503
    Definitely - not only are they two different languages, but they are two completely different kinds of language. C is a procedural language whereas C# is object oriented. C# is similar to Java. The equivalent in C# would look like:

    Code:
    public class MainClass
    {
      public static void Main(string[] args)
      {
        System.Console.Write("I see, I remember");
      }
    }
    If you want to write in C/C++ using Visual Studio you'll have to download a different version.

    ac
    Last edited by gothic_type; January 22nd, 2008 at 01:57 PM.

  5. #5
    Junior Member
    Join Date
    Dec 2006
    Location
    Gretna, LA
    Posts
    19
    What happened to "Hello World" being the first program to write in every book? all these changes scare me.

  6. #6
    Senior Member kingkong's Avatar
    Join Date
    Oct 2007
    Location
    UAE
    Posts
    197
    OMG

    I never knew about this

    as i have asked for C language on AO but some one recommemded me C#!!!

    anyways now i think i will get it from hippo.com

    thx for the beautiful information!!!!

    Regards
    KK
    Question is not "Why are you Online"
    Question is "Why are you Off line"

  7. #7
    Senior Member
    Join Date
    Mar 2004
    Posts
    557
    Kingkong,

    I don't know who recommended C#, but that recommendation
    was reasonable.

    There are two ways to increase your chances for a
    well-paid job position nowadays - either know an
    old programming language (cobol, fortran,CL(V5R3)
    on OS/400, VMS, ...),

    or be proficient in a modern language (e.g. .NET-flavours,
    such as C# or VB.NET).

    Every language has its own strength and purposes. You won't
    use perl for an extensive application with GUI, you won't use
    .NET for a slim text-analysis tool, you won't use VB6 for computationally
    intensive applications, ...

    I love c/c++ and I have been using it for uncountable years. However,
    it really depends what you want to achieve... just a thought.


    Cheers
    If the only tool you have is a hammer, you tend to see every problem as a nail.
    (Abraham Maslow, Psychologist, 1908-70)

  8. #8
    Senior Member kingkong's Avatar
    Join Date
    Oct 2007
    Location
    UAE
    Posts
    197
    Hey Sec Ware!!

    That was really helpfull advice and suggestion

    But as far as concern with programming i wanted to learn C language 1st before kick starting with anyother programming

    Now i was trying to get it done Though This link
    http://www.rudeserver.com/how-to/install-borland/#step1
    Hope fully it should work today i m going to try as i m off from work

    Thank and regards
    KK
    Question is not "Why are you Online"
    Question is "Why are you Off line"

  9. #9
    Just Another Geek
    Join Date
    Jul 2002
    Location
    Rotterdam, Netherlands
    Posts
    3,403
    Can you program? I mean do you know how to in any type of language?
    If not, C might be a little to much to get started.. Programming in C means you have to do everything yourself, reserve memory, allocate variables, clean up etc... You might want to start with a more higher level language just to get into the basics.. Once you know how to solve problems you can move on the more lower levels.. The syntax might be different but the basics of programming (it's structure) will remain the same..
    Oliver's Law:
    Experience is something you don't get until just after you need it.

  10. #10
    Senior Member kingkong's Avatar
    Join Date
    Oct 2007
    Location
    UAE
    Posts
    197
    Hi Again Sir Dice,

    I am not a programmer by profession or a computer expert i have lot of interest in learning computer and i want to leave my profession of accountancy and join in new stream of programming

    and i want to become a programmer by profession

    so what do u recommend for kick starting with programming.
    Question is not "Why are you Online"
    Question is "Why are you Off line"

Similar Threads

  1. Learning to program?
    By Katja in forum General Programming Questions
    Replies: 6
    Last Post: August 30th, 2005, 09:44 PM
  2. Win32 API Programming C++
    By mathgirl32 in forum AntiOnline's General Chit Chat
    Replies: 4
    Last Post: October 31st, 2004, 08:03 AM
  3. Foot Printing with Host
    By SonofGalen in forum The Security Tutorials Forum
    Replies: 7
    Last Post: February 9th, 2004, 10:14 AM
  4. Free Computer and IT Books
    By Agent_Steal in forum Product / Book / Training / Conference Reviews
    Replies: 8
    Last Post: January 2nd, 2004, 06:50 AM
  5. Newbies, list of many words definitions.
    By -DaRK-RaiDeR- in forum Newbie Security Questions
    Replies: 9
    Last Post: December 14th, 2002, 07:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 Security News

     Patches

       Security Trends

         How-To

           Buying Guides