Guida C – Programmi da usare e piccola preparazione – 2

23Bentornati, oggi vi parlerò di quali strumenti saranno necessari per questo mini corso; alcuni di quelli che vi proporrò saranno facoltativi e avrete piena libertà nel scegliere se installarli o meno. I programmi serviranno a compilare il programma, cioè a transformare il programma da una serie di scritte in 010101011010100001110010100010111000100101010ecc ecc, che è l’unica cosa che il computer può leggere. Una cosa utile da sapere può essere questa, C e i compilatori usano escluso per Windows una estensione .c quindi un file come hello.c è un file di testo contenente il codice del programma ancora non compilato.

Iniziamo con Linux; per scrivere un programma ci basta un qualunque editor di testi tipo “libreoffice” a patto di salvare il file con estensione .c tipo ciao.c. Comunque vi consiglio un programma quale “kdevelop” installabile da terminale tramite

sudo apt-get install kdevelop

milto utile in quanto fornisce anche una serie di effetti grafici a livello di testo per capire meglio dipendenze e quant’altro.

Tutte le distro hanno già un compilatore preinstallato utilizzabile da terminale: per usarlo dovete aprire il terminale e digitare:

gcc percorsofile/nomefile.c -o nomeprogramma

per aprire il programma vi basterà spostarvi nella cartella in cui l’avete salvato, consiglio il desktop e digitare:

./nomeprogramma

e premere invio.

Passiamo a Windows, per Windows si userà uno stesso programma per scrivere e compilare, non è detto che sia un vantaggio, il programma è questo: DevC++ utile in alcuni casi salva i file con estensione .gcc. Per compilare basterà cliccare su F9 mi pare. Per aprire il programma basterà un doppio click snistro in quanto file .exe cioè eseguibile

Per il Mac la questione è molto simile a Linux, poichè per compilare la situazione è la stessa come editor vi consiglio VIM carino ma un po complesso. La procedura per l’apertura di un programma è la stessa usata con Linux.

Pin It

80 thoughts on “Guida C – Programmi da usare e piccola preparazione – 2

  1. My coder is trying to convince me to move to .net from
    PHP. I have always disliked the idea because of the costs.
    But he’s tryiong none the less. I’ve been using Movable-type on a variety of websites for about a year and am worried about switching to another platform.
    I have heard very good things about blogengine.net. Is there a way I can transfer all my wordpress
    content into it? Any help would be really appreciated!

  2. Hello there I am so excited I found your webpage, I really found
    you by error, while I was browsing on Askjeeve for something else, Nonetheless I am here now and would just like to say many thanks for a tremendous post
    and a all round exciting blog (I also love the theme/design), I don’t have time
    to browse it all at the moment but I have bookmarked it and also included your RSS feeds,
    so when I have time I will be back to read more, Please do keep up the excellent b.

  3. Hmm it appears like your website ate my first comment (it was
    extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog.
    I as well am an aspiring blog writer but I’m still new to everything.

    Do you have any recommendations for inexperienced blog writers?
    I’d certainly appreciate it.

  4. Hmm it looks like your site ate my first comment (it was super long) so I guess I’ll just sum it up what I submitted and say, I’m thoroughly enjoying your blog.
    I as well am an aspiring blog writer but I’m still new to everything.
    Do you have any tips and hints for first-time
    blog writers? I’d genuinely appreciate it.

  5. My programmer is trying to convince me to move to .net from PHP.

    I have always disliked the idea because of the expenses.
    But he’s tryiong none the less. I’ve been using Movable-type on several websites for about a year and am concerned
    about switching to another platform. I have heard great things about blogengine.net.
    Is there a way I can transfer all my wordpress posts into it?

    Any help would be really appreciated!

  6. What i don’t understood is in truth how you are not actually much more well-preferred than you
    may be right now. You are very intelligent. You already
    know therefore significantly when it comes to this topic, produced me in my view believe it from a lot of varied angles.
    Its like women and men don’t seem to be interested except it is something to do with Girl gaga!

    Your personal stuffs great. At all times handle it up!

  7. First of all I would like to say excellent blog!
    I had a quick question that I’d like to ask if you don’t mind.
    I was curious to know how you center yourself and clear your mind before writing.
    I’ve had a tough time clearing my thoughts in getting my ideas out there.
    I truly do enjoy writing but it just seems like the first 10 to 15
    minutes tend to be wasted just trying to figure
    out how to begin. Any ideas or hints? Thank you!

  8. Just want to say your article is as astounding.
    The clearness on your publish is simply great and
    that i could suppose you’re knowledgeable in this subject.
    Fine with your permission let me to grab your feed to keep updated with impending post.
    Thanks one million and please keep up the enjoyable work.

  9. Undeniably believe that which you stated. Your favorite justification appeared to be
    on the web the easiest thing to be aware of. I say to you,
    I definitely get irked while people consider worries that they just don’t know about.
    You managed to hit the nail upon the top and defined out the whole thing without having side-effects ,
    people could take a signal. Will likely be back
    to get more. Thanks

  10. Hello! I know this is kinda off topic nevertheless I’d figured I’d ask.
    Would you be interested in exchanging links or maybe guest writing a blog post or vice-versa?
    My blog addresses a lot of the same subjects as yours
    and I believe we could greatly benefit from each other.
    If you might be interested feel free to shoot me an e-mail.

    I look forward to hearing from you! Excellent blog by the way!

Lascia un commento