C

All things asdf (and anything else)
User avatar
Ml08180
JKL;'s Nightmare
JKL;'s Nightmare
Posts: 9737
Joined: Fri Aug 07, 2009 10:27 pm
Contact:

C

Post by Ml08180 » Tue Sep 18, 2018 6:42 pm

Does anyone know of a good site where I can find some C tutorials? I've looked and everything seems to be for C# or C++. My instructor expects us to learn it using a textbook that talks exclusively about assembly language and digital logic and for the most part our class is very confused.
Image

User avatar
Shai'tan
ASDF's Best Friend
ASDF's Best Friend
Posts: 26048
Joined: Fri Sep 14, 2007 12:14 pm
Location: Seven
Contact:

Re: C

Post by Shai'tan » Thu Sep 20, 2018 2:58 pm

Here's a couple I've bookmarked, but I can't vouch for how good they are.

http://www.learn-c.org/
http://www.cprogramming.com/tutorial/c-tutorial.html

If you're familiar with other programming languages (Java, C#, or especially C++) it shouldn't be too hard to grasp. The hardest to learn is probably pointers, so I would put some energy towards learning that. Other than that learning what header files are and how they function is good, memory use if you need it (otherwise don't bother (yet)), and possibly look up some default library functions (expand your toolbox).

If there is anything you wonder about don't hesitate to ask. Have done several courses where we had to use C so I'm somewhat familiar with it.
Quote of the Ages:
atomtengeralattjaro wrote:The Forums of ASDF turn, and Pages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Page that gave it birth comes again. On one Page, called the Six Hundred and Ninety Fifth Page by some, a Page yet to come, a Page long past, a post was made by atomtengeralattjaro. The post was not the beginning. There are neither beginnings nor endings to the turning of the Forums of ASDF. But it was a beginning.

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 35089
Joined: Wed May 23, 2007 3:43 pm
Location: green
Contact:

Re: C

Post by atomtengeralattjaro » Tue Sep 25, 2018 9:23 am

I have nothing to add but good luck in your challengingly cerebral complicated computer class conundrums.
Bad teachers can be a huge pain for everyone involved, my condolences.
Ivokyuftaf6666 wrote:Awesome Site, Delivering Fun
Image

User avatar
assdef
JKL;'s Nightmare
JKL;'s Nightmare
Posts: 6988
Joined: Sat Jan 02, 2010 9:30 pm

Re: C

Post by assdef » Thu Sep 27, 2018 1:39 am

Image
Image

User avatar
vraiment
JKL;'s Nightmare
JKL;'s Nightmare
Posts: 9151
Joined: Sun Oct 05, 2008 2:35 am

Re: C

Post by vraiment » Tue Oct 02, 2018 4:10 pm

There is a very good book called, "Learn C in 24 hours" it will give you good basics.

Also, protip: if you get confused about pointers like:

Code: Select all

int *****myPtrOfPtrs;
I advice you use typedefs wich will make things easier to read:

Code: Select all

typedef int* PtrToInt;

int aInt;
PtrToInt aPtrToInt;
PtrToInt *aPtrToPtrToInt;
Image

User avatar
Ml08180
JKL;'s Nightmare
JKL;'s Nightmare
Posts: 9737
Joined: Fri Aug 07, 2009 10:27 pm
Contact:

Re: C

Post by Ml08180 » Wed Oct 03, 2018 5:56 pm

[/quote]
Shai'tan wrote:
Thu Sep 20, 2018 2:58 pm
Here's a couple I've bookmarked, but I can't vouch for how good they are.

http://www.learn-c.org/
http://www.cprogramming.com/tutorial/c-tutorial.html

If you're familiar with other programming languages (Java, C#, or especially C++) it shouldn't be too hard to grasp. The hardest to learn is probably pointers, so I would put some energy towards learning that. Other than that learning what header files are and how they function is good, memory use if you need it (otherwise don't bother (yet)), and possibly look up some default library functions (expand your toolbox).

If there is anything you wonder about don't hesitate to ask. Have done several courses where we had to use C so I'm somewhat familiar with it.
I appreciate these! I've been using this for about two weeks now but they regularly use things in examples that they don't explain until much later.
vraiment wrote:
Tue Oct 02, 2018 4:10 pm
There is a very good book called, "Learn C in 24 hours" it will give you good basics.

Also, protip: if you get confused about pointers like:

Code: Select all

int *****myPtrOfPtrs;
I advice you use typedefs wich will make things easier to read:

Code: Select all

typedef int* PtrToInt;

int aInt;
PtrToInt aPtrToInt;
PtrToInt *aPtrToPtrToInt;
I'll check out the "Learn C in 24 Hours" book!

The typedefs seem a lot better as those pointers look just awful enough to make me want to not use computers anymore, but unfortunately we have to use pointers as they are on our projects and exams.
Image

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 35089
Joined: Wed May 23, 2007 3:43 pm
Location: green
Contact:

Re: C

Post by atomtengeralattjaro » Thu Oct 04, 2018 8:11 am

Pointer? I hardly know her!
Ivokyuftaf6666 wrote:Awesome Site, Delivering Fun
Image

User avatar
vraiment
JKL;'s Nightmare
JKL;'s Nightmare
Posts: 9151
Joined: Sun Oct 05, 2008 2:35 am

Re: C

Post by vraiment » Thu Oct 04, 2018 10:56 pm

Ml08180 wrote:
Wed Oct 03, 2018 5:56 pm
vraiment wrote:
Tue Oct 02, 2018 4:10 pm
There is a very good book called, "Learn C in 24 hours" it will give you good basics.

Also, protip: if you get confused about pointers like:

Code: Select all

int *****myPtrOfPtrs;
I advice you use typedefs wich will make things easier to read:

Code: Select all

typedef int* PtrToInt;

int aInt;
PtrToInt aPtrToInt;
PtrToInt *aPtrToPtrToInt;
I'll check out the "Learn C in 24 Hours" book!

The typedefs seem a lot better as those pointers look just awful enough to make me want to not use computers anymore, but unfortunately we have to use pointers as they are on our projects and exams.
Typedefs are aliases, they are the same as the type you are aliasing just make things easier to read
Last edited by vraiment on Sat Oct 06, 2018 7:38 pm, edited 1 time in total.
Image

User avatar
assdef
JKL;'s Nightmare
JKL;'s Nightmare
Posts: 6988
Joined: Sat Jan 02, 2010 9:30 pm

Re: C

Post by assdef » Sat Oct 06, 2018 2:30 am

I assume vraiment, being made of tacos and all, learned the programming language "si" instead of C

Also, si más más
Image

User avatar
vraiment
JKL;'s Nightmare
JKL;'s Nightmare
Posts: 9151
Joined: Sun Oct 05, 2008 2:35 am

Re: C

Post by vraiment » Sat Oct 06, 2018 7:38 pm

assdef wrote:
Sat Oct 06, 2018 2:30 am
I assume vraiment, being made of tacos and all, learned the programming language "si" instead of C

Also, si más más
did you meant "ce"?
Image

User avatar
assdef
JKL;'s Nightmare
JKL;'s Nightmare
Posts: 6988
Joined: Sat Jan 02, 2010 9:30 pm

Re: C

Post by assdef » Sun Oct 07, 2018 1:22 am

No, because in English, the letter "C" is pronounced the same as the Spanish word "si". In retrospect, for someone who actually speaks Spanish, the joke seems less obvious.

Also, admittedly, I did not know the Spanish word for "plus" (or +). Google translate suggested "más" which I think really means "and" and not "plus" (English is a much more complicated language). I can see now that "si más más" is clearly a poor and unobvious substitute for "C++".

It seems my attempt at humor was misplaced, and I apologize for wasting everyone's time with such a boring and inappropriately ethnocentric post. I have brought shame to the ASDF Forums, and to all of you, and for that, I am terribly sorry.

I will graciously accept any punishment the Lords of ASDF bestow upon me now.

:(
Image

User avatar
Shai'tan
ASDF's Best Friend
ASDF's Best Friend
Posts: 26048
Joined: Fri Sep 14, 2007 12:14 pm
Location: Seven
Contact:

Re: C

Post by Shai'tan » Sun Oct 07, 2018 2:14 am

I hereby punish you to 10 minutes of snuggle time with assdog, 10 minutes wasted on the internet, 10 minutes of non-community service, and a hot bagel.

Punishment to be carried out in the near non-future.
Quote of the Ages:
atomtengeralattjaro wrote:The Forums of ASDF turn, and Pages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Page that gave it birth comes again. On one Page, called the Six Hundred and Ninety Fifth Page by some, a Page yet to come, a Page long past, a post was made by atomtengeralattjaro. The post was not the beginning. There are neither beginnings nor endings to the turning of the Forums of ASDF. But it was a beginning.

User avatar
vraiment
JKL;'s Nightmare
JKL;'s Nightmare
Posts: 9151
Joined: Sun Oct 05, 2008 2:35 am

Re: C

Post by vraiment » Sun Oct 07, 2018 8:02 pm

assdef wrote:
Sun Oct 07, 2018 1:22 am
No, because in English, the letter "C" is pronounced the same as the Spanish word "si". In retrospect, for someone who actually speaks Spanish, the joke seems less obvious.

Also, admittedly, I did not know the Spanish word for "plus" (or +). Google translate suggested "más" which I think really means "and" and not "plus" (English is a much more complicated language). I can see now that "si más más" is clearly a poor and unobvious substitute for "C++".
'C' is pronounced as "ce", and the correct way to pronounce "C++" is "ce más más" as "más" means "and", "but" and also "plus" depending on what you are saying.
assdef wrote:
Sun Oct 07, 2018 1:22 am
It seems my attempt at humor was misplaced, and I apologize for wasting everyone's time with such a boring and inappropriately ethnocentric post. I have brought shame to the ASDF Forums, and to all of you, and for that, I am terribly sorry.

I will graciously accept any punishment the Lords of ASDF bestow upon me now.

:(
Who care...
Shai'tan wrote:
Sun Oct 07, 2018 2:14 am
I hereby punish you to 10 minutes of snuggle time with assdog, 10 minutes wasted on the internet, 10 minutes of non-community service, and a hot bagel.

Punishment to be carried out in the near non-future.
Oh, Shai cares, hope that bagel tastes good
Image

User avatar
Ml08180
JKL;'s Nightmare
JKL;'s Nightmare
Posts: 9737
Joined: Fri Aug 07, 2009 10:27 pm
Contact:

Re: C

Post by Ml08180 » Wed Oct 10, 2018 4:49 pm

Shai'tan wrote:
Sun Oct 07, 2018 2:14 am
I hereby punish you to 10 minutes of snuggle time with assdog, 10 minutes wasted on the internet, 10 minutes of non-community service, and a hot bagel.

Punishment to be carried out in the near non-future.
How hot of a bagel are we talking about here?
Image

User avatar
Shai'tan
ASDF's Best Friend
ASDF's Best Friend
Posts: 26048
Joined: Fri Sep 14, 2007 12:14 pm
Location: Seven
Contact:

Re: C

Post by Shai'tan » Wed Oct 10, 2018 9:38 pm

3 minutes after being taken out of the oven warm.
Quote of the Ages:
atomtengeralattjaro wrote:The Forums of ASDF turn, and Pages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Page that gave it birth comes again. On one Page, called the Six Hundred and Ninety Fifth Page by some, a Page yet to come, a Page long past, a post was made by atomtengeralattjaro. The post was not the beginning. There are neither beginnings nor endings to the turning of the Forums of ASDF. But it was a beginning.

User avatar
vraiment
JKL;'s Nightmare
JKL;'s Nightmare
Posts: 9151
Joined: Sun Oct 05, 2008 2:35 am

Re: C

Post by vraiment » Thu Oct 11, 2018 8:15 am

I want a bagel
Image

User avatar
assdef
JKL;'s Nightmare
JKL;'s Nightmare
Posts: 6988
Joined: Sat Jan 02, 2010 9:30 pm

Re: C

Post by assdef » Thu Oct 11, 2018 8:08 pm

Image
Image

User avatar
vraiment
JKL;'s Nightmare
JKL;'s Nightmare
Posts: 9151
Joined: Sun Oct 05, 2008 2:35 am

Re: C

Post by vraiment » Fri Oct 12, 2018 6:16 am

Thanks kind sir, that looks tasty
Image

User avatar
assdef
JKL;'s Nightmare
JKL;'s Nightmare
Posts: 6988
Joined: Sat Jan 02, 2010 9:30 pm

Re: C

Post by assdef » Fri Oct 12, 2018 10:42 pm

I assume that's how mexican bagels work? Nachos go on top?
Image

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 35089
Joined: Wed May 23, 2007 3:43 pm
Location: green
Contact:

Re: C

Post by atomtengeralattjaro » Sat Oct 13, 2018 4:56 pm

assdef wrote:
Fri Oct 12, 2018 10:42 pm
mexican bagels work?
why would they need to work, you just eat them anyway
Ivokyuftaf6666 wrote:Awesome Site, Delivering Fun
Image

Post Reply