Computer Hope

Software => Computer programming => Topic started by: Ajax Hurts on February 26, 2018, 07:48:18 PM

Title: Code blocks IDE
Post by: Ajax Hurts on February 26, 2018, 07:48:18 PM
 :'( :'( :'( :'(

This will ake me look like a retard but id rather start somewhere than give up and throw my laptop across the room.

I'm using a nice simple IDE - code blocks for writing c programs.

The prblem is not the language at this warm up stage when i'm writing simple programs to build calculators and stuff but the software is proving a bit annoying and fiddly for me but probably nobody else.  Enough of feeling sorry for myself.

Does anybody know what i'm doing wrong.  When I try to add a new program like calc.c , save it, buid and then run, code blocks overwrites the hello world name to calc.c but runs the hello world program instead of the new program that I tried to add.  Any ideas anyone?
Title: Re: Code blocks IDE
Post by: nil on February 27, 2018, 06:44:34 PM
Did you build your project again (gear icon) before running it (play icon)? If you just run it, the executable will not be re-built. Make sure to click the gear again to build the executable with your updated source code.
Title: Re: Code blocks IDE
Post by: Geek-9pm on February 27, 2018, 06:58:17 PM
Ajax Hurts,
Hello, welcome to CH.
Are you new to computer programming?
Do you have any formal training?
Please proved some info about what you are using.
Are you using a C compiler?  Not a good idea for novice.

IMO, and others, a good place to start might be an interpreter.
Interpreters have a more friendly  IDE.
A good place to stat might be Python.
You might like to read this:
https://lifehacker.com/how-i-taught-myself-to-code-in-eight-weeks-511615189
Quote
To a lot of non-developers, learning to code seems like an impossibly daunting task. However, thanks to a number of great resources that have recently been put online for free— teaching yourself to code has never been easier. I started learning to code earlier this year and can say from experience that learning enough to build your own prototype is not as hard as it seems. In fact, if you want to have a functioning prototype within two months without taking a day off work, it’s completely doable.
Hope that is of some help.  :)