-
December 15th, 2001, 06:35 PM
#1
Junior Member
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
-
December 15th, 2001, 07:04 PM
#2
Senior Member
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
-
December 15th, 2001, 07:09 PM
#3
Senior Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|