Question:
how do I enter code?
David
2014-10-01 17:55:25 UTC
how do I enter code?
Eight answers:
Beautiful Mynd
2014-10-02 09:57:49 UTC
Everyone else has correctly answered this question. However, if I were you, I would pick up a book, and simply follow the instructions. If you're asking a question on how to enter code, that kinda shows you haven't grasped the preliminary fundamentals of whatever language your starting with.



So getting a book on what you're doing and familiarizing yourself with the tools, is more important than trying to jump to coding something. How else can you "code" if don't even know how to use the tools to do so? Just some helpful food for thought.
mark_poc
2014-10-01 18:42:46 UTC
You type in the code in a word processor and make a plain text file. Then you feed that file to a compiler program that converts it into machine code (almost ready to run). This file is called an object file (.obj) and is then fed to a linker program that finishes the job of creating an executable file (.exe) ready to run on a computer.



It is common nowadays to have all three of these (word processor, compiler and linker) integrated into one environment called an IDE (Integrated Development Environment). Then you just type in the code in the window and then press a button to start the compile and link process. Then you can run a copy of your executable code right there in the IDE to check it out. There are quite a few free IDE's around - Gene above (or below?) listed a few.
Dovregubben
2014-10-02 07:31:34 UTC
You can write code for any language using a text editor, such as Noteped on a windows machine or EMacs on a Linux box.



For the code to be usable it has to be compiled or interpreted, which transforms it to machine language.



On linux, the command line compiler gcc can be use to compile C code.

In a Windows environment, Visual Studio is one of many Integrated Development Environments (IDE) that allows you to create and edit an application, and has a build in compiler.

Visual Studio allows you to create applications in Visual Basic, C++, C#, F#, JavaScript,and Python



Eclipse is also a great IDE for creating Java applications. this would also part of the environment you would use to create Android apps.
?
2014-10-01 18:18:30 UTC
Code is just text written by a keyboard. Its nothing different than what i am writing here. However programming compilers and interpreters parse the text according to their rules and keywords. Which is different for each language. Microsoft Visual Studios, Eclipse, Vim, etc. are nothing more than a fancy text editor.
Gene
2014-10-01 18:04:21 UTC
With an editor.



My fav is Gnu emacs: https://ftp.gnu.org/gnu/emacs/



For Java, a lot of people like Eclipse: http://sourceforge.net/projects/game-eclipse/



For Microsoft languages (VB, C#, F#), Visual Studio is standard. http://msdn.microsoft.com/en-us/vstudio/aa718325.aspx



But source code is almost always just text, so any text editor will do. You can even start with Notepad.
anonymous
2014-10-01 18:02:22 UTC
Type it on your keyboard. How else?
?
2014-10-04 15:55:01 UTC
You just made my day.
io
2014-10-02 09:16:34 UTC
it is a secret..


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...