.:`=-~rANdOm~`-=:. Game Servers

Technology (Read Only) => Programming => Topic started by: Сєşάя on August 10, 2011, 05:24:04 AM

Title: C, C++ and C# tutorials
Post by: Сєşάя on August 10, 2011, 05:24:04 AM
Hey guys !
They know where I can find sources of tutorials on C, C + + and C #?

Thx for read !
Title: Re: C, C++ and C# tutorials
Post by: blαh2355 on August 10, 2011, 07:34:28 AM
Well I'm reading C++ for dummies It's okay for a beginner.
Title: Re: C, C++ and C# tutorials
Post by: Peetah on August 10, 2011, 07:54:09 AM
I wouldn't start with the books first.
There insanely long and very hard for beginners.
Or that was just my bad English 2 years ago.
Title: Re: C, C++ and C# tutorials
Post by: Сєşάя on August 10, 2011, 08:17:20 AM
I think I'll buy some books of C, C++ and C# (Python, Assembly...etc  :D) for learn. And the compiler I think that for C++ will be Visual C++ or C++ Builder.
Title: Re: C, C++ and C# tutorials
Post by: blαh2355 on August 10, 2011, 09:38:47 AM
Well, this guy is really good and shows you a lot of C++

C++ Tutorial (1) - Absolute n00b spoonfeed (http://www.youtube.com/watch?v=tyVhn0FWWB4&feature=relmfu#)
Title: Re: C, C++ and C# tutorials
Post by: dannyoboy007 on August 11, 2011, 02:35:23 AM
Well I'm reading C++ for dummies It's okay for a beginner.

I'm reading that too, but mines 4th edition (Dunno what version yours is), and it says to download the absolute most recent of GNU C++ go to www.deloreon.com (http://www.deloreon.com) which apparently no longer exists, so god knows how old this book is :P I think an old version comes on the CD but im just using Visual Studio 2010..... i'm all set, now i just need a decent tutorial that is easy to follow and doesn't throw you in at the deep end immediately.
Title: Re: C, C++ and C# tutorials
Post by: blαh2355 on August 11, 2011, 04:43:30 AM
I'm reading that too, but mines 4th edition (Dunno what version yours is), and it says to download the absolute most recent of GNU C++ go to www.deloreon.com (http://www.deloreon.com) which apparently no longer exists, so god knows how old this book is :P I think an old version comes on the CD but im just using Visual Studio 2010..... i'm all set, now i just need a decent tutorial that is easy to follow and doesn't throw you in at the deep end immediately.
Mine is 6th edition :D

http://gcc.gnu.org/ (http://gcc.gnu.org/)

This is the GNU gcc page that said in the book.
Title: Re: C, C++ and C# tutorials
Post by: Tomcat on August 11, 2011, 08:41:32 AM
Buy some books

or find some free translated ones
Title: Re: C, C++ and C# tutorials
Post by: Сєşάя on August 11, 2011, 02:05:18 PM
Buy some books

or find some free translated ones

Ye...I'll buy some books :)
Title: Re: C, C++ and C# tutorials
Post by: Tomcat on August 12, 2011, 09:25:24 AM
Here is a free one in spanish


http://mat21.etsii.upm.es/ayudainf/aprendainf/Cpp/manualcpp.pdf (http://mat21.etsii.upm.es/ayudainf/aprendainf/Cpp/manualcpp.pdf)
Title: Re: C, C++ and C# tutorials
Post by: Сєşάя on August 12, 2011, 02:09:15 PM
Here is a free one in spanish


http://mat21.etsii.upm.es/ayudainf/aprendainf/Cpp/manualcpp.pdf (http://mat21.etsii.upm.es/ayudainf/aprendainf/Cpp/manualcpp.pdf)

Thanks man ! Do you know where I can download Visual C++ 10.0 (Torrent)?
Title: Re: C, C++ and C# tutorials
Post by: Tomcat on August 12, 2011, 06:16:04 PM
Thanks man ! Do you know where I can download Visual C++ 10.0 (Torrent)?

You could try the express version

that's what i use
Title: Re: C, C++ and C# tutorials
Post by: Сєşάя on August 12, 2011, 06:26:35 PM
You could try the express version

that's what i use

Hmmm..I was lookin on google and I see that Visual C++ 10.0 is in the Visual Studio package. Maybe I can download the Visual Studio Ultimate 2010  ^-^
Title: Re: C, C++ and C# tutorials
Post by: ursus on August 12, 2011, 07:12:38 PM
http://stackoverflow.com/questions/194812/list-of-freely-available-programming-books (http://stackoverflow.com/questions/194812/list-of-freely-available-programming-books)

you're welcome
Title: Re: C, C++ and C# tutorials
Post by: Сєşάя on August 13, 2011, 06:50:30 AM
http://stackoverflow.com/questions/194812/list-of-freely-available-programming-books (http://stackoverflow.com/questions/194812/list-of-freely-available-programming-books)

you're welcome

Thx bro ! :thumbsup:
Title: Re: C, C++ and C# tutorials
Post by: Travelsonic on August 15, 2011, 11:01:56 AM
Thanks man ! Do you know where I can download Visual C++ 10.0 (Torrent)?

Well, if you don't need the advanced features, the express edition is free.

Spoiler (click to show/hide)
Title: Re: C, C++ and C# tutorials
Post by: Сєşάя on August 15, 2011, 05:49:18 PM
#include <book.languages>
if César have books == False
{

César need buy books about C, C++ and C#

}
if César have books about C, C++ and C# == True
{

César need make programs and show to your friends

}
Title: Re: C, C++ and C# tutorials
Post by: Travelsonic on August 16, 2011, 09:49:35 PM
#include <book.languages>
if César have books == False
{

César need buy books about C, C++ and C#

}
if César have books about C, C++ and C# == True
{

César need make programs and show to your friends

}

Compile error line 1: book.languages no such file or directory

 :trollface:
Title: Re: C, C++ and C# tutorials
Post by: Сєşάя on August 17, 2011, 06:21:05 AM
Compile error line 1: book.languages no such file or directory

 :trollface:

FAK!!!  :'(
Title: Re: C, C++ and C# tutorials
Post by: Сєşάя on August 18, 2011, 04:54:16 PM
Anyone know how to put string input in language C?
Title: Re: C, C++ and C# tutorials
Post by: Cake Faice on September 02, 2011, 02:37:16 PM
getting a bit too ahead of yourself there with your username?
Title: Re: C, C++ and C# tutorials
Post by: Сєşάя on September 02, 2011, 02:41:50 PM
getting a bit too ahead of yourself there with your username?

I changed my username after that post.
Title: Re: C, C++ and C# tutorials
Post by: accelleon on September 02, 2011, 04:18:46 PM
well C++ and C# are both derived from C so learning C first will set you on the best path. C# splits in the direction of .NET which uses a simpler but possibly slower framework, where as C++ is generally native code.
Title: Re: C, C++ and C# tutorials
Post by: Сєşάя on September 02, 2011, 06:26:58 PM
well C++ and C# are both derived from C so learning C first will set you on the best path. C# splits in the direction of .NET which uses a simpler but possibly slower framework, where as C++ is generally native code.

WASSUP MAN...long time no see.

Yeah man, first I'm learing C, after I'll learn C++ and after I'll learn C#.
Title: Re: C, C++ and C# tutorials
Post by: accelleon on September 03, 2011, 08:27:24 AM
WASSUP MAN...long time no see.

Yeah man, first I'm learing C, after I'll learn C++ and after I'll learn C#.
yea.. long story short i don't have internet anymore i'm at a friend's house. so yea WASSUP!
Title: Re: C, C++ and C# tutorials
Post by: Cake Faice on September 03, 2011, 10:26:43 AM
Yeah man, first I'm learing C, after I'll learn C++ and after I'll learn C#.

Then uh, do you really need to put the Programmer title in your username just yet?
Title: Re: C, C++ and C# tutorials
Post by: Сєşάя on September 03, 2011, 11:04:38 AM
Quote from: Face Cake
Then uh, do you really need to put the Programmer title in your username just yet?

Because I know Python.
Title: Re: C, C++ and C# tutorials
Post by: jimonions on September 03, 2011, 09:35:29 PM
(http://assets.diylol.com/hfs/6ae/f43/d07/resized/optimistic-indie-developer-meme-generator-learning-gamemaker-making-mmo-c2feab.jpg)
Title: Re: C, C++ and C# tutorials
Post by: Сєşάя on September 04, 2011, 07:49:28 AM
(http://assets.diylol.com/hfs/6ae/f43/d07/resized/optimistic-indie-developer-meme-generator-learning-gamemaker-making-mmo-c2feab.jpg)

 ???
Title: Re: C, C++ and C# tutorials
Post by: Travelsonic on October 07, 2011, 05:47:05 PM
Anyone know how to put string input in language C?

Simple way: using a character array

Advancing it:  use pointers and a dynamic array of characters

Even more advanced-nes:  make a linked link class, or rather, the equivalent since IIRC C doesn't use classes like C++ does, where the data member is a character.

And use assert as a lazy-ish means of validation - make the program blow up in the face of whomever mis-uses it.  :trollface:

Title: Re: C, C++ and C# tutorials
Post by: Сєşάя on October 08, 2011, 10:19:41 AM
I bought my C book last month, very good book, I know now how to manipulate strings:

char name[256];

printf("Tell me your name: ");
scanf("%s", name);
printf("Hello %s", name);
Title: Re: C, C++ and C# tutorials
Post by: Travelsonic on October 23, 2011, 09:27:48 AM
One thing I'd get proficient in is dynamic memory allocation -> that way you aren't creating containers that waste space since the unknown of how much space you needs is currently forcing you to create containers or variables that take up more space than what may be needed.
Title: Re: C, C++ and C# tutorials
Post by: ursus on October 24, 2011, 04:15:39 PM
I bought my C book last month, very good book, I know now how to manipulate strings:

char name[256];

printf("Tell me your name: ");
scanf("%s", name);
printf("Hello %s", name);

wouldn't str name make more sense?
Title: Re: C, C++ and C# tutorials
Post by: Tomcat on October 24, 2011, 05:25:50 PM
wouldn't str name make more sense?

doesnt rly matter

but yes
Title: Re: C, C++ and C# tutorials
Post by: Travelsonic on October 24, 2011, 07:01:35 PM
doesnt rly matter

but yes

Depends - I mean, yes, it is an array of character arrays - which usually makes up a string, but at the same time the variable name makes the programmer perfectly aware of its intended use, I guess.  nameStr, IMO, would be best - the name gives it away as an array of characters [acting as a string] that stores someone's name.  :D
Title: Re: C, C++ and C# tutorials
Post by: ursus on October 25, 2011, 09:57:57 PM
Depends - I mean, yes, it is an array of character arrays - which usually makes up a string, but at the same time the variable name makes the programmer perfectly aware of its intended use, I guess.  nameStr, IMO, would be best - the name gives it away as an array of characters [acting as a string] that stores someone's name.  :D

yo dawg we herd u liek arrays so we put arrays in your array so you can array while you array
Title: Re: C, C++ and C# tutorials
Post by: Travelsonic on October 27, 2011, 06:36:29 PM
yo dawg we herd u liek arrays so we put arrays in your array so you can array while you array

Today in my data structures class we talked about arrays of linked lists.  THAT'S torture for ANYBODY.
Title: Re: C, C++ and C# tutorials
Post by: Сєşάя on October 28, 2011, 05:59:10 AM
Quote from: Travelsonic
Today in my data structures class we talked about arrays of linked lists.  THAT'S torture for ANYBODY.

Vectors, arrays, list, FIFO, LIFO, etc ??
Title: Re: C, C++ and C# tutorials
Post by: Travelsonic on October 29, 2011, 11:50:47 AM
Vectors, arrays, list, FIFO, LIFO, etc ??

That is the class in a nutshell... plus linked lists, binary trees, etc... though we aren't using the STL vector class since we're learning about programming our own container classes.  Or rather, we did, now we're on to linked lists.
Title: Re: C, C++ and C# tutorials
Post by: Сєşάя on October 29, 2011, 01:40:20 PM
I read a lot the book of Language C. I'll start with Vectors now
Title: Re: C, C++ and C# tutorials
Post by: Сєşάя on January 20, 2012, 08:39:35 AM
Lol...I didn't finish my book. Now I'm learning pointers. Damn bro, some parts of C is fucking hard like character manipulation.
Title: Re: C, C++ and C# tutorials
Post by: Travelsonic on January 21, 2012, 10:23:35 AM
yo dawg we herd u liek arrays so we put arrays in your array so you can array while you array

Once I made a linked list class for my Data Structures class [got an A in the end even though I only got 1 out of 5 projects in for the class  :D :D did perfectly on all the quizzes and exams though.]  To test it, I made a linked list, where each linked list node would initiate construction of a linked list, so I'd have a 36,000 node linked list each node creating another 36,000 node linked list, with each node in these lists doing it... until memory runs out.  :P
Title: Re: C, C++ and C# tutorials
Post by: Сєşάя on January 22, 2012, 06:23:37 PM
I'll make a litle "OS" when I know all about C. I won't make a real. Just for kind.

I also know how to use pointers (a bit hard).

Code: [Select]
#include <stdio.h>

main()
{
int x = 5, y = x*x, z = x*y;
int *ptx, *pty, *ptz;

/* Colocando os endereços para cada ponteiro */
ptx = &x;
pty = &y;
ptz = &z;

printf("X = %d\nPos X = %ld\n\n", *ptx, ptx);
printf("Y = %d\nPos Y = %ld\n\n", *pty, pty);
printf("Z = %d\nPos Z = %ld\n\n", *ptz, ptz);
getch();
}