Thursday, July 30, 2009

What should i learn before trying to learn a programming language? Anyone know?

i want to learn programming languages but what should i know about computers before? i mean i opened a book on (c++ i think) and it started off with syntax and i was like wat...... so does anyone know what i should start with or work with? Thnx to whoever answers

What should i learn before trying to learn a programming language? Anyone know?
Start where the book tells you, and focus. It's fairly simple to start off, so you should be fine. If you still have troubles, start with C instead of C++.


Or ask a question about what the syntax means! An example is below (I assume the first example is "Hello, World!"):





#include %26lt;iostream%26gt; // This line calls a file that translates your code into an executable





using namespace std; // This makes your code-writing more convenient and has something to do with namespaces, which will be mentioned later in the book with more detail





int main() { // This starts the main method, which is a necessary part of ALL C++ methods.





cout %26lt;%26lt; "Hello, World!" %26lt;%26lt; endl; // cout is the function that outputs information to a console, the %26lt;%26lt; tells the computer to put what comes after it into the cout function, and the "Hello, World!" is what you want to come out.





return 0; // All int functions need a return statement, but you don't need to know why yet.





} // Ends the main method
Reply:Learn a simple language like HTML or Javascript to get the basics of coding, or rather understand the logic of these things. Also try and find some sites that have lots of tutorials and such.
Reply:I would start with some simple batch files and scripts that manipulate the file system, etc. on your computer. you should also have a decent knowledge of DOS if you are going to be programing on a windows based platform...
Reply:Batch files


Basic





Basic lives up to it's name, it's simple and can give you an idea of the logic behind programming.


No comments:

Post a Comment