Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 14:45

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 
Author Message
 Post subject: Intro to C/C++
PostPosted: 17 Oct 2007 08:14 

Joined: 17 Oct 2007 08:10
Posts: 31
Location: South Carolina
Hi, I'm just getting started in the C programming language. I actually just started learning C++ yesterday. What are the differences in C and C++? Should I be learning C instead? I don't have any real purpose as to why I'm learning other than I would like to learn. Eventually I would like to be able to write my own programs.

If anyone has any good resources for learning it would be appreciated too. :D


Top
 Profile  
 
 
 Post subject:
PostPosted: 17 Oct 2007 10:09 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
the main difference between C and C++ is that C++ has some other additional features which allows abstract objects, other types of functions, strings without fixed size and more.

Usually my suggestions about learning C is learning the basis (something fast to read) and then continuing to learn through real code examples.
So when you see something new or that you don't understand in the examples you can check it in the C guide more in deep.


Top
 Profile  
 
 Post subject:
PostPosted: 19 Oct 2007 03:44 

Joined: 17 Oct 2007 08:10
Posts: 31
Location: South Carolina
So I could continue learning C++ now, and if I need to I would be able to program in C as well right?

Also, do you have an specific tutorials you recommend? Right now everything I do is really simple and pretty useless too. Just small programs that run from the command line and count numbers.


Top
 Profile  
 
 Post subject:
PostPosted: 19 Oct 2007 08:07 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
Theorically yes, if you know C++ you can program in C too.
But in practice I think that who programs in C++ uses all the ++ part of the language and when he returns on C he could have difficulties.

While about the guide, naturally most depends by your language (personally I used the Tricky C guide and another older one written in italian) but if english is your native language there are no problems.

I have inserted the keyword c guide on google and there are some interesting results.

When you will understand the basis of C (main, include, the general structure of a program and so on) you could just keep only the following which is a reference guide, quick and useful informations without boring words:

http://www.acm.uiuc.edu/webmonkeys/book/c_guide/


Top
 Profile  
 
 Post subject:
PostPosted: 19 Oct 2007 08:33 

Joined: 17 Oct 2007 08:10
Posts: 31
Location: South Carolina
I'll take a look at that guide. I know how to search in google. I was just asking about any guides that you knew and maybe used or liked. Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: 11 Jan 2008 03:04 

Joined: 05 Oct 2007 01:20
Posts: 402
Location: Florida
ok what is C# and it's relations to C/C++?

i read it and it appears that C# is for windows only using .net framework


Top
 Profile  
 
 Post subject:
PostPosted: 11 Jan 2008 03:14 

Joined: 24 Sep 2007 02:12
Posts: 1114
Location: http://sethioz.co.uk
i need to take a deeper look into those guides too. Right now i only know basics of C, but i dont know how to actually write program on my own (without any help).

question to Luigi : how long did it took you to learn everything about C to write simple programs ? like FPs, buffer overflow exploits (cmd based) ..etc.

as far as i know .. C# is visual C.


Top
 Profile  
 
 Post subject:
PostPosted: 11 Jan 2008 10:56 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
evan:
C# is a programming language implemented by Microsoft in .NET and on the other operating systems through Mono and is something like C++ but at a higher level (allows you to code stuff in a small number of lines)
more info here:
http://en.wikipedia.org/wiki/C_Sharp_%2 ... anguage%29

Sethioz:
uhmmm consider that I do things only if I need to do them when I need them so talking about time for me is a bit difficult 8-)
Anyway I started to see C in the 2001 using the help of public code (windows sockets were the most horrible thing I saw at that time since anyone implemented it in a different longer or shorter way and almost nobody implemented windows and non-windows sockets in the same program... blah) and naturally some small C guides just to know the rules of C and the standard functions.


Top
 Profile  
 
 Post subject:
PostPosted: 11 Jan 2008 11:26 

Joined: 14 Aug 2007 11:17
Posts: 24
if you wish to learn C# and .NET: Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition

http://www.amazon.com/Pro-2008-NET-Plat ... 590598849/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: