• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 14:04
CET 20:04
KST 04:04
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
ByuL: The Forgotten Master of ZvT29Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8
Community News
Team Liquid Map Contest - Preparation Notice4Weekly Cups (Feb 23-Mar 1): herO doubles, 2v2 bonanza1Weekly Cups (Feb 16-22): MaxPax doubles0Weekly Cups (Feb 9-15): herO doubles up2ACS replaced by "ASL Season Open" - Starts 21/0258
StarCraft 2
General
Team Liquid Map Contest - Preparation Notice How do you think the 5.0.15 balance patch (Oct 2025) for StarCraft II has affected the game? ByuL: The Forgotten Master of ZvT Nexon's StarCraft game could be FPS, led by UMS maker Weekly Cups (Feb 23-Mar 1): herO doubles, 2v2 bonanza
Tourneys
RSL Season 4 announced for March-April Sea Duckling Open (Global, Bronze-Diamond) PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar) Sparkling Tuna Cup - Weekly Open Tournament SEL Doubles (SC Evo Bimonthly)
Strategy
Custom Maps
Publishing has been re-enabled! [Feb 24th 2026] Map Editor closed ?
External Content
The PondCast: SC2 News & Results Mutation # 515 Together Forever Mutation # 514 Ulnar New Year Mutation # 513 Attrition Warfare
Brood War
General
BW General Discussion It's March 3rd Soma Explains: JD's Unrelenting Aggro vs FlaSh BGH Auto Balance -> http://bghmmr.eu/ CasterMuse Youtube
Tourneys
[Megathread] Daily Proleagues BWCL Season 64 Announcement The Casual Games of the Week Thread [LIVE] [S:21] ASL Season Open Day 1
Strategy
Soma's 9 hatch build from ASL Game 2 Fighting Spirit mining rates Simple Questions, Simple Answers Zealot bombing is no longer popular?
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Battle Aces/David Kim RTS Megathread Diablo 2 thread Path of Exile
Dota 2
The Story of Wings Gaming Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine UK Politics Mega-thread NASA and the Private Sector
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books [Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion TL MMA Pick'em Pool 2013
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
TL Community
The Automated Ban List
Blogs
Just Watchers: Why Some Only…
TrAiDoS
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1635 users

What is Programming?

Blogs > Snuggles
Post a Reply
1 2 Next All
Snuggles
Profile Blog Joined May 2010
United States1865 Posts
October 18 2011 01:45 GMT
#1
I'm at a loss. I've spent 3 weeks trying to get myself into programming after buying an instructional book called Programming in C by Stephen G. Kochan. I'm reading through the chapters and nodding at how things seem to work, but I can't actually get any work done...

So I go on a mad search through google to figure out what tools I need to create my first program. All I want to do is reach my first goal and say "Hello World!" with a simple program. I've gone through things like VIM, compilers like the cygwin and minggw- and I simply cannot get anything to work. Sad isn't it? To have everything typed out but not be able to put it to use because there isn't a book on how to just compile source code into a running program without any hiccups =_=.

On I go continuing to read up on programming, trying to soak in as much information as I can. I stumble upon Microsoft Visual Studio 2010, I get that and enter in my code again.

It's simply-
+ Show Spoiler +

#include <stdio.h>

int main (void)
{
printf ("Programming is fun. \n");

return 0
}


I debug it and it doesn't work. I try the C++ equivalent and it also will not work. However, I check the other side of Visual Studios and find the tools that have everything already written out for you, and all you need to do is click and drag over buttons and boxes to create the program that you want...

So now I'm thinking to myself is this really what programming is? What's the point of getting a book that tells you to type everything out when a pre-existing program allows you to drag and drop everything?

I mean I know programming is a very difficult thing to become skilled at, but is it this hard to just learn how to compile your code? Honestly I think I'm just an idiot, but being an idiot for 3 weeks is tiring. I hope someone can help me out here and get me started because when you're dead-set on trying to learn a skill that might separate you from others in the competition for work, it's extremely depressing when you can't even get past the first step.

***
petzergling
Profile Blog Joined August 2008
538 Posts
October 18 2011 01:53 GMT
#2
if u spent 3 weeks and cant figure out how to copy 2 lines of code from a book i think programming might not be for you
Mod Edit: Don't bold your entire post
Darclite
Profile Joined January 2011
United States1021 Posts
October 18 2011 01:54 GMT
#3
This is a guide BisuDagger, a very helpful fellow, sent me: http://www.learncpp.com/cpp-tutorial/06-writing-your-first-program. Maybe that can help you?
They're fools. You should eat them.
PH
Profile Blog Joined June 2008
United States6173 Posts
October 18 2011 01:54 GMT
#4
Make sure the programming language the book is teaching you can be compiled by whatever compiler you're using...
Hello
Snuggles
Profile Blog Joined May 2010
United States1865 Posts
October 18 2011 01:56 GMT
#5
On October 18 2011 10:53 petzergling wrote:
if u spent 3 weeks and cant figure out how to copy 2 lines of code from a book i think programming might not be for you


Dude that's what I keep telling myself. I've spent a good portion of my free time every day in the past weeks trying to figure it out. =_= I wouldn't dare post a blog about it unless I'm really really desperate.
Deleted User 183001
Profile Joined May 2011
2939 Posts
October 18 2011 01:57 GMT
#6
On October 18 2011 10:53 petzergling wrote:
if u spent 3 weeks and cant figure out how to copy 2 lines of code from a book i think programming might not be for you

To be fair, you're ignoring the start-up things even "experienced" people have trouble with like installing a compiler. Still, this may take 3 hours tops, not 3 weeks, so I'm compelled to agree with you. I would say it's not so much programming not being for him, as it is that he's just approaching it the worst way possible :/.
kingjames01
Profile Blog Joined April 2009
Canada1603 Posts
October 18 2011 02:02 GMT
#7
First, you will need a compiler that will allow you to turn your programming syntax into something that the computer will understand.

Computer programs can be written in any text editor which you then pass into a compiler. However, since you are new at this, you'd probably have problems getting the compiling syntax correct.

Since you're working in C/C++, I would suggest that you download code::blocks. It is a FREE IDE that is specifically geared towards programming in C/C++.

What code::blocks will provide for you is an editor, a code/syntax highlighter, a compiling environment and a debugger all-in-one package.

After installing it, type in your source code, then compile it and finally run it all within code::blocks! Simple!

Let us know if you have more questions.
Who would sup with the mighty, must walk the path of daggers.
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
Last Edited: 2011-10-18 02:17:26
October 18 2011 02:03 GMT
#8
When most people begin programming, the first thing they find is a good Integrated development environment (IDE). What this does is let you just click a button, and it'll compile the code for you. Depending on the IDE, and there are MANY!, it'll be as simple as saving the file with the right extension and pressing F9.

For example, I'll use an easy to set up IDE called Code::Blocks which does C and C++ from the get go.

You make a new empty file (SHIFT+CTRL+N usually).
Then write the code.
Save it as a .c file called test.c for example.
Press F9 to Build and Run. Run, not Debug. The options can be found under Build. What it's doing is compiling the code into something the computer can interpret; the job of the compiler. You'll notice a couple other files after Building, test.o, text.exe and text, don't worry about those.
And then it'll open the command prompt and should show you, "Hello World!".
From there, you can explore the other areas of the language.

After a while, it'll be nice to learn how to use the Debugger, but for simple programs it's unnecessary. But in general, you'll need to create a project file in any IDE you use to Debug.


More experienced people don't like IDEs for some odd reason and prefer to code in plain notepad, or notepad++, and then using Cygwin and the compiler they've installed, compile the code. The difference is all preference, there is no "better method." An IDE simply gets rid of all the "background" work and let you focus on the code while providing nice benefits, like automatically finishing brackets, keeping track of your functions, and the like.

Using Cygwin means you need at least rudimentary knowledge of how to work around in the environment, which is unnecessarily complicated for beginners. I've found the main benefit so is being able to work with different files, where you can use an input file and direct it as input into your program file. But that's really unnecessary for beginners. Also, you get a lot more "nerd cred."

Of course, this is based off my very limited knowledge. I'm sure more experienced people can explain it better and more thoroughly.


EDIT: Also, programming is CODING, meaning you have to write and make and rework code. If you're dragging boxes, you're not programming.

And I'll also recommend Python with Wing IDE since it's really easy to start.
There is no one like you in the universe.
mmp
Profile Blog Joined April 2009
United States2130 Posts
Last Edited: 2011-10-18 02:16:26
October 18 2011 02:12 GMT
#9
Compilers can be unforgiving, but they typically tell you specifically what is wrong with your source code.

Some recommendations for a noobie:
(1) Don't start with C/C++ unless you have a previous background in computer architecture and are familiar with low-level concepts. Start with something simple and friendly (and non-compiled) like Python.
(2) Don't use Visual Foo WYSIWYGs, for all Foo. Programming is about expressing computer instructions in a language, not drag-and-drop (even though some IDEs will simplify a lot of common tasks). Some languages have picky syntax, others are very liberal, but programming comes down to learning the textual vocabulary, grammar, and syntax required to express your program to a computer. Some languages are more intuitive to human readers than others. For example, many languages do not require you to end commands with a semicolon, and it can seem like an arbitrary design choice in hindsight. Some languages excel at expressing abstract concepts in a concise manner, but are difficult to pick up (e.g. Haskell).
(3) TL has a thread for these kinds of discussions and general (non-debugging) support & advice.

+ Show Spoiler +
Remove the 'void' (it's superfluous, and should name an argument unless it's part of a function declaration (in which case the name is optional)) and place a semicolon after your return statement.
I (λ (foo) (and (<3 foo) ( T_T foo) (RAGE foo) )) Starcraft
GigaFlop
Profile Blog Joined October 2010
United States1146 Posts
Last Edited: 2011-10-18 02:21:47
October 18 2011 02:14 GMT
#10
print("I recommend Python, unless you have a reason for choosing C. Do you?")
(╯°□°)╯︵ ┻━┻ "Shift-Q oftentimes makes a capital Q" - Day[9] || iNcontrol - Alligator from heaven = ^
hai2u
Profile Joined September 2011
688 Posts
October 18 2011 02:21 GMT
#11
like others have said, C/C++ is tough to get if you are completely new, but once you get it then the other languages like Java will be a total breeze. Maybe you should try something that's easier for beginners like Python or Java.
Suc
Profile Blog Joined January 2009
Australia1569 Posts
October 18 2011 02:24 GMT
#12
On October 18 2011 11:14 GigaFlop wrote:
print("I recommend Python, unless you have a reason for choosing C. Do you?")

Yeah, haha, I highly recommend Python unless you have a reason for using C.
Your program would be accomplished by the following code in Python:
print 'Hello World!'
Zocat
Profile Joined April 2010
Germany2229 Posts
October 18 2011 02:26 GMT
#13
On October 18 2011 10:45 Snuggles wrote:
On I go continuing to read up on programming, trying to soak in as much information as I can. I stumble upon Microsoft Visual Studio 2010, I get that and enter in my code again.

It's simply-
+ Show Spoiler +

#include <stdio.h>

int main (void)
{
printf ("Programming is fun. \n");

return 0
}


I debug it and it doesn't work. I try the C++ equivalent and it also will not work.


Why doesnt it work? You should get an error message in VS (in the error list on the bottom) when you hit debug.
I think you miss a ; behind the 0
It might happen that the window closes immediatly and you dont realize the program is working. For c++ try to add a char c = getchar(); in the line before the retun.
Snuggles
Profile Blog Joined May 2010
United States1865 Posts
Last Edited: 2011-10-18 02:30:58
October 18 2011 02:29 GMT
#14
Thanks for the help guys. Coming up with the idea of learning how to program all by myself was a pretty wild idea seeing how much trouble I'm having with just compiling...

Based off what you guys have told me so far I've downloaded and installed Code::Blocks. I entered in my code with some changes with mmp's advice here

+ Show Spoiler +
#include <stdio.h>

int main ()
{
printf ("Programming is fun. \n");

return 0;
}


But now I've run into another issue. The build log is real nice since it tells me what's wrong... I hope you guys know what the problem is.

+ Show Spoiler +
Compiling: C:\Users\Thanh\Documents\helloworld.c
Linking console executable: C:\Users\Thanh\Documents\helloworld.exe
Execution of 'mingw32-g++.exe -o C:\Users\Thanh\Documents\helloworld.exe C:\Users\Thanh\Documents\helloworld.o' in 'C:\Users\Thanh\Documents' failed.
Nothing to be done.


So from the looks of it the helloworld.exe file isn't being created.

I chose C because of how difficult it is to excel at. I figured hey it'd be awesome if I could get really good at this language. I don't know if that's a good reason or not, but if things prove to be too difficult I'll probably give python a try instead. But as of now I just don't know how well I'll do until I compile my first program ;_; I'll hop over onto that TL thread after I can finally get a program compiled and running.
Suc
Profile Blog Joined January 2009
Australia1569 Posts
October 18 2011 02:33 GMT
#15
I also like how the message you are trying to print is seemingly ironic.
Galaxy613
Profile Joined March 2011
United States148 Posts
October 18 2011 02:34 GMT
#16
Did you make sure to install mingw32? I think Code::Blocks should've installed it..
100,000 lightyears of awesome.
Snuggles
Profile Blog Joined May 2010
United States1865 Posts
October 18 2011 02:39 GMT
#17
Well if mingw32 is required then I should already have it on my computer from previous attempts of compiling. So I uninstalled that particular mingw32, reinstalled Code::Blocks and now I get this error

Execution of 'mingw32-g++.exe -o C:\Users\Thanh\Documents\helloworld.exe C:\Users\Thanh\Documents\helloworld.o' in 'C:\Users\Thanh\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\CodeBlocks' failed.

I am so lost.
Sermokala
Profile Blog Joined November 2010
United States14104 Posts
October 18 2011 02:41 GMT
#18
I'm doing a class with programming in visual basic 2010 and its a really good. the book for the class is what will give you the introduction you need as it gives you step by step ways of making projects and it makes it really learn how to program stuff and will give you that foot in the door to learn other languages as well.

I will be be downloading that software and pokeing around c thanks for that tip.
A wise man will say that he knows nothing. We're gona party like its 2752 Hail Dark Brandon
mmp
Profile Blog Joined April 2009
United States2130 Posts
Last Edited: 2011-10-18 02:57:42
October 18 2011 02:48 GMT
#19
On October 18 2011 11:39 Snuggles wrote:
Execution of 'mingw32-g++.exe -o C:\Users\Thanh\Documents\helloworld.exe

My bad, I cannot read.

That's not a very helpful error message. I've never used CodeBlocks before, but I'm confident that you have better options. CygWin with native g++ shouldn't fail.
I (λ (foo) (and (<3 foo) ( T_T foo) (RAGE foo) )) Starcraft
Inzek
Profile Blog Joined May 2008
Chile802 Posts
October 18 2011 03:00 GMT
#20
imo more important than knowing the language is understanding the logic behind it (at least at a basic level, i know c can get complicated after) so draws (state diagrams, etc) are important...
i had a basic java class, then teached a gf for his c class, and used matlab, python... (all basic, but what i want to say is that the logic is more important, the syntaxis comes later)
Stork FAN!!!
1 2 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 4h 56m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
elazer 277
OGKoka 243
UpATreeSC 172
TKL 161
ProTech98
BRAT_OK 82
MindelVK 18
EmSc Tv 9
StarCraft: Brood War
Britney 20745
Sea 16492
Mini 630
Shuttle 239
PianO 233
NotJumperer 53
ajuk12(nOOB) 27
Rock 25
Dota 2
Gorgc3533
monkeys_forever54
BananaSlamJamma1
LuMiX0
Counter-Strike
fl0m3501
pashabiceps2246
adren_tv48
Other Games
tarik_tv17294
Grubby4615
FrodaN1515
B2W.Neo705
KnowMe198
C9.Mang0140
Hui .86
QueenE81
Trikslyr43
Organizations
StarCraft 2
ComeBackTV 264
Other Games
BasetradeTV153
Counter-Strike
PGL68
StarCraft 2
EmSc Tv 9
EmSc2Tv 9
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• StrangeGG 60
• Reevou 4
• Kozan
• LaughNgamezSOOP
• sooper7s
• AfreecaTV YouTube
• intothetv
• Migwel
• IndyKCrew
StarCraft: Brood War
• FirePhoenix10
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• lizZardDota273
League of Legends
• Nemesis5251
• TFBlade1379
• Shiphtur401
Other Games
• imaqtpie856
Upcoming Events
Replay Cast
4h 56m
The PondCast
14h 56m
KCM Race Survival
14h 56m
WardiTV Winter Champion…
16h 56m
Classic vs Nicoract
herO vs YoungYakov
ByuN vs Gerald
Clem vs Krystianer
Replay Cast
1d 4h
Ultimate Battle
1d 16h
Light vs ZerO
WardiTV Winter Champion…
1d 16h
MaxPax vs Spirit
Rogue vs Bunny
Cure vs SHIN
Solar vs Zoun
Replay Cast
2 days
CranKy Ducklings
2 days
WardiTV Winter Champion…
2 days
[ Show More ]
Replay Cast
3 days
Sparkling Tuna Cup
3 days
WardiTV Winter Champion…
3 days
Replay Cast
4 days
Replay Cast
4 days
Monday Night Weeklies
4 days
OSC
5 days
Liquipedia Results

Completed

Proleague 2026-03-03
PiG Sty Festival 7.0
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
Jeongseon Sooper Cup
Spring Cup 2026
WardiTV Winter 2026
Nations Cup 2026
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025

Upcoming

ASL Season 21: Qualifier #1
ASL Season 21: Qualifier #2
ASL Season 21
Acropolis #4 - TS6
Acropolis #4
IPSL Spring 2026
CSLAN 4
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
RSL Revival: Season 4
NationLESS Cup
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.