Source Codes
Results 1 to 3 of 3

Thread: Source Codes

  1. #1
    Junior Member
    Join Date
    Dec 2001
    Posts
    2

    Question Source Codes

    CAN ANYONE TELL ME WOT SOURCE CODES DO AND HOW DO U PUT THEM ON FILES
    dont look now theres a 6 foot
    tall jack russel with a
    machinegun behind u
    Share on Google+

  2. #2
    Senior Member
    Join Date
    Oct 2001
    Posts
    101
    You write the program in it's source code. Ie

    Code:
    public class PrintNumbers
    {
      public static void main( String args[] )
      {
        for( int i = 0; i < 10; i++ )
        {
          System.out.println( i );
        }
      }
    }
    Ok. Now you have some source code. You can save this source code as a text file or as the source code itself (in this case, PrintNumbers.java or something like that) and view it in text editors. Then you can save it to your disk.

    The thing is, the source code will not do anything by itself. You must first compile it. In this case I would go:
    Code:
    javac PrintNumbers.java
    java PrintNumbers
    Ok. Now in my case you have a java class which I could use in other parts of my program (in this case not really but that's a whole other story). If you use C++ or VB, you can make [i].exe[/o] files that are programs that you can run the program on your computer by double clicking on it, etc.

    Basically, if you want to learn what source code is, what it does etc, go learn a computer language such as:
    Java
    C/C++
    Visual Basic
    etc.

    A good place to learn is Planet Source Code. Good luck!
    - Stronzo

    \"Vini, Vici, Vidi\"
    I came, I saw, I conquered.
    - Julius Caesar
    Share on Google+

  3. #3
    Senior Member
    Join Date
    Oct 2001
    Posts
    101

    OH yeah

    Then there is assembly language, but I would not start with that if I were you.
    - Stronzo

    \"Vini, Vici, Vidi\"
    I came, I saw, I conquered.
    - Julius Caesar
    Share on Google+

Posting Permissions

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