Author Topic: getting started  (Read 5232 times)

Offline anthony_code

  • Single posting newcomer
  • *
  • Posts: 4
getting started
« on: September 11, 2008, 08:20:30 pm »
hi everyone. i just downloaded from the site so i can start coding in C. What is the set-up so i can start coding. i cannot find the place where i can start typing the code. i cannot find it in the documentation either. what is the set-up or procedure so i can start coding. i don't need anything special, i am the only user. i just want to write the code i have, compile it and run it. where is the place to write the code? are there any easire and less-graphic-intense compilers to build my code in? thanks a lot.

anthony

Offline DrewBoo

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: getting started
« Reply #1 on: September 11, 2008, 11:27:04 pm »
Hi, Anthony.

You can create a new file from File->New at the top menu.

If your file is saved with a name ending in .c you can find all you need through the Build menu.

If the file ends in .cpp it will be treated as C++ instead of C

Offline anthony_code

  • Single posting newcomer
  • *
  • Posts: 4
Re: getting started
« Reply #2 on: September 11, 2008, 11:51:51 pm »
Thanks you so much, hope I was not negative in the post. Do you think I would benefit from a simpler compiler. I am NOT going to code in C++. Is there anything else I should know before I start writing any code, in order to avoid bugs or other errors? Embarrasingly I found the documentation hard to read.

Anthony

Offline anthony_code

  • Single posting newcomer
  • *
  • Posts: 4
Re: getting started
« Reply #3 on: September 12, 2008, 12:09:46 am »
Sorry I still cannot follow anything. If I go to the top and select file new, a window pops up with the options: Project; Build Target; File;

Custom; From User Template. Which one do I select? If  I select file then the options are: c/c++ header; c/++ source; empty file. Is

there any source documentation on how to-set-up and start programming. Thank a lot

Anthony

Offline DrewBoo

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: getting started
« Reply #4 on: September 12, 2008, 12:15:48 am »
Find an online forum for C programming that's particularly friendly to beginners.  I don't have one to recommend, so Google should probably be your first stop.

Then you can experiment on your own and hit up that forum when you're stuck.

This forum is specifically about using the tool Code::Blocks, so you're not going to get useful help when you run into questions about programming in a particular language.


Good luck, Anthony.

Offline anthony_code

  • Single posting newcomer
  • *
  • Posts: 4
Re: getting started
« Reply #5 on: September 12, 2008, 12:23:06 am »
Thanks Drew !

Offline DrewBoo

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: getting started
« Reply #6 on: September 12, 2008, 01:25:58 am »
Sorry I still cannot follow anything.

(This is one of several options you have)

  • Press Shift+Ctrl+N to create a new file
  • Press Ctrl+S to save it
  • Name the file helloworld.c

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: getting started
« Reply #7 on: September 12, 2008, 08:55:31 am »
File -> New -> Project -> Console application -> Follow the steps as requested and select C application.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline froglipz

  • Single posting newcomer
  • *
  • Posts: 3
Re: getting started
« Reply #8 on: September 13, 2008, 12:28:50 pm »
Thanks now I didn't have to ask the same dumb question....

Expect to see more of me every day I can....