Question:
LINUX: Simple Programing- How Is It Done?
?
2010-12-24 14:21:00 UTC
Programming is a fun idea and many people want to do it. However, it's easy to get lost if you don't know what your doing or how to get started. What is a free, fast, and easy way to take your first steps to making your first C/C++ program without getting lost in it's vast complexity?
Five answers:
Linux Mint 11
2010-12-24 16:51:19 UTC
How to Install C and C++ Compilers in Ubuntu and testing your first C and C++ Program

http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program.html



Download Ubuntu 10.10 Desktop Edition

http://www.ubuntu.com/desktop/get-ubuntu/download



The Perfect Desktop - Ubuntu 10.10 (Maverick Meerkat)

http://www.howtoforge.com/the-perfect-desktop-ubuntu-10.10-maverick-meerkat



Installing Ubuntu as a dual-boot with Windows without partitioning

http://psychocats.net/ubuntu/wubi



Ubuntu 10.10 (Maverick Meerkat) User Guide

http://ubuntuguide.org/wiki/Ubuntu:Maverick





LUg.
2010-12-24 14:29:11 UTC
There is none. It's like a fast, and easy way to take your first steps to surgery without learning anatomy first. Learn programming first http://www-old.oberon.ethz.ch/WirthPubl/AD.pdf Then learn the C syntax and you'll be writing your programs in C. (Learning C doesn't teach you programming, it teaches you a language to do programming in. But you have to know programming first.)



Programming *ISN'T* fast or easy, it *IS* complex. There's no way to "learn non-complex programming", since there's no such thing.
question asker
2010-12-24 15:39:23 UTC
You can try this book:

Programming -- Principles and Practice Using C++

http://www2.research.att.com/~bs/programming.html



Another book which I am currently learning from is Sams Teach Yourself C++ in 24 hours. It's okay but I think the Stroustrup book looks better. Good luck and enjoy programming.
ratter_of_the_shire
2010-12-24 16:06:55 UTC
There is the arduino, a microcontrollor that lets you do some pretty cool things with simple code, because it's very easy to get it to interact with the world.
2016-11-06 07:54:25 UTC
this could be a normal c application you could write: a million. Goto "applications", pick "upload-ons", then choose for terminal. 2. confirm you're on your place itemizing via typing "cd ~" 3. a normal editor featuring Ubuntu is named nano, type: nano rectangle.c 4. a nearby in the terminal the place you could type a textual content fabric rfile looks. In it type: #incorporate int substantial(void) { int base = 0; int height = 0; printf("Compute component to a rectangle: n"); printf("Base: "); scanf("%d", &base); printf("nHeight: "); scanf("%d", &height); printf("nArea is %dn", base*height); return 0; } word that commonly once you type a c application, the code interior the brackets "{ } " is indented. This C application activates you to flow right into a base measurement of a rectangle, shops it in the integer variable base and then asks for height and shops that for the duration of the peak integer variable. "int" is the abbreviated thank you to declare a variable of the integer type. It ability its a place in memory used to shop a quantity a million,2,3,4,...,etc. you could't shop something with a decimal place on it with int variables; like 3.4 as an instance. in case you attempt to place a decimal in this quantity it is going to easily decrease it off. this device purely purely reflects the fee of the backside prolonged situations its height "base*height". 5. Now its time to hold mutually this device you wrote: gcc rectangle.c -o rectangle gcc is the GNU c compiler. you're telling the compiler to hold mutually rectangle.c and then produce an executable application below the call rectangle. (thats the -o decision). 6. Now purely run this device with: ./rectangle


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