User forums > General (but related to Code::Blocks)

Too dumb to get started?

<< < (6/9) > >>

kidmosey:

--- Quote from: kagerato on August 01, 2006, 04:27:23 am ---
--- Quote from: kidmosey ---I don't know what exactly you would have to unlearn, considering C++ is just an extension of C.
--- End quote ---

What people actually mean to say when they mention something like this is that C and C++ are different programming models.  C is functional whereas C++ is object-oriented.  While you can write functional-style code in C++, it can be a serious mistake to do so.


--- End quote ---

Okay, that clears it up.  Thanks :D

And as for the rest of your article... Well said!

Der Meister:
Just to be precise: C is *NOT* a functional programming language. It's an imperative (or procedural, if you like this word more) language. Functional programming languages are languages like Haskell or Lisp.

PDEE:
Wow kagerato, great post. I learnt something from that. Thanks

PDEE

dopyiii:
I just thought I'd throw in my 2c.  There's a really good free e-seminar at http://www.mindview.net/ done by Chuck Allison called Thinking in C (currently in Beta 3).  It's basically a series of audio lectures (with slides and example code) on C for those who already know how to program in other languages.  It gives them what they need to know about C in order to effectively program in C++ and/or Java (kind of a warm-up to the Thinking in C++/Java books).  It makes sense since C++ is built on C and much of what Java is comes from C++.

I had Chuck as a professor and I can vouch for his knowledge and teaching ability.  The whole thing takes a few hours, but it would be time well spent.  If you know everything that's covered in this e-seminar, you should have few problems stepping up to C++ or Java.

Hope that's helpful.

Newbie0815:
first let me say, I´m impressed how many real nice and helpful answers I´m receiving here, thanks to everyone for that

now let me give you a bit update on my progress
in plain console C I got far enough to understand most of the beginners tutorials I found
I´ve written some applications, up to a pocket calculator, pretty unpractical within the console, but it complies without errors and works as expected, so for that part I´m quite proud, even though I sure am still a beginner

So I dared to look into tutorials for win32 applications, which is somewhat an entirely different world
I got lost almost right away, mostly because there are no 2 tutorials for the same compiler, from videos at MSN how to write applications in visual C++ to plain C++ code I can use in CodeBlocks, they are not compatible, CodeBlocks allows me to import almost any format, but mixing them doesn´t work
I´ve tried learning by taking small pieces of code from the tutorials, pick out what I can use for my plan, modify it to my needs and repeat that with always new modifications so often, until I understand what that piece is actually doing and why

As my first project, to learn by doing, I´ve picked the idea, I want to write a simple chatserver where clients can connect to exchange messages, call it a huge goal for a beginner if you like, I like huge tasks and I got plenty of time, so I figured having a huge goal, involving all kind of tasks is the easiest way for me to learn
Of course I don´t want to download a ready made one, I don´t even need one, I just want to learn how to do it
Of course I´ve downloaded a few examples, just to pick a few ideas out of them
I´ve noticed, most of them are written in VB or VC, I´ve even downloaded and installed Visual Studio Express, but for one the code is so way different from gcc, almost an entirely new language and the options are pretty much limited to what the compiler offers
I´ve tried to translate some code to gcc, but that appears way beyond my skills
So I went back to plain gcc, and I got quite far, I´ve got both, client and server developped to the point where only connection and message exchange is missing, which I´ve replaced by simple message boxes while I have not yet learned how to make the connection

Thats where I´m stuck now, I found just ONE tutorial that explains it short and easy at http://www.c-worker.ch/tuts/wstut_op.html (in german) but that one is written for borland and my attempts to translate it to gcc have failed so far, meaning I can´t even start implementing it into my project
Maybe someone here can help me out? How to mix code written for different compilers or how to translate it?
The source for both, is direct available on the page
Client: http://www.c-worker.ch/tuts/sock.c
Server: http://www.c-worker.ch/tuts/socksrv.c

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version