wich prog./files are needed for C/C++

Asked by rigobert roelofs

I would like too no more about the machine-language. So I can program my computer. But I don' t no wich files and programs I will need. Who can help me?I am a Beginner/newwie.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu build-essential Edit question
Assignee:
No assignee Edit question
Solved by:
mycae
Solved:
Last query:
Last reply:
Revision history for this message
Best mycae (mycae) said :
#1

If you want to use bash or python, the files are already there.

For example

Create a new text file in gedit and paste the following in:

#!/bin/bash

echo "Hello! THis is a BASH program"

Save it as "myScript" to your home folder then in nautilus, right click it and set the "execute" permission. Open a terminal (Ctrl+Alt+T) then type

bash ./myScript

you should see :

Hello! THis is a BASH program

You can learn more about python or bash programming here:

Bash is a little frustrating, as it is a bit old and has some quirks that would not really be acceptable in a modern language; however, the system is still quite popular, so if you want to understand more about the system, you can.

Python is becoming quite popular, and has an extensive set of libraries.

Note that both bash and Python are so-called "interpreted languages", and are usually an order of magnitude or so slower than compiled languages, such as C/C++ or what have you.

Some reading:
https://secure.wikimedia.org/wikipedia/en/w/index.php?title=Python_%28language%29

A good book on BASH is "Teach yourself shell programming in 24 hrs" -- you can either download it as a PDF or buy it.

Perhaps someone else might have a suggestions for a book on python

Revision history for this message
rigobert roelofs (rigobert-roelofs) said :
#2

Thanks mycae, that solved my question.

Revision history for this message
mycae (mycae) said :
#3

If you want to use c/C++ you will need to install the compiler -- this is available in the g++ package.

You may want to get a decent C++ book -- there are online tutorials, but these are a little piecemeal. Wikbooks has a couple of books on the subject, but they are a little bit incomplete.
https://secure.wikimedia.org/wikibooks/en/wiki/C%2B%2B_Programming

Revision history for this message
rigobert roelofs (rigobert-roelofs) said :
#4

I thank you for your advises, and I hope you have a fantastic 2011.

Revision history for this message
Sebastian Powell (telattract) said :
#5

I apologize I did not mean to be a source for answers about Ubuntu ...It is
actually I that needs help for I am brand new to this system and have very
little skill sets when it comes to knowing my way around....I do apologize,
I can assure you though that the level of knowledge and help that I have
received amongst the Open Source / Launch Pad and Overall Ubuntu help
experience has been more than adequate, in fact down right helpful...so I AM
SURE SOMEONE WILL ANSWER YOUR QUESTIONS PROPERLY AND BEST OF LUCK!

Respectfully,

Sebastian Powell

On Sat, Jan 1, 2011 at 2:52 AM, rigobert roelofs <
<email address hidden>> wrote:

> Question #139655 on build-essential in ubuntu changed:
>
> https://answers.launchpad.net/ubuntu/+source/build-essential/+question/139655
>
> rigobert roelofs posted a new comment:
> I thank you for your advises, and I hope you have a fantastic 2011.
>
> --
> You received this question notification because you are an answer
> contact for Ubuntu.
>