Added: 3 years ago
From: thenewboston
Views: 104,280
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (208)

Sign In or Sign Up now to post a comment!
  • /*am i smart now?*/

  • Rofl I literally leaned about this in school order of op first is multipication or division depending what goes Forster and what are in parenthasy then add and subtracted lololololololoololololololoolo­lololl

  • Standard math rights :P

  • @jobserboy same here bit i intend to be a games programmer when I'm older

  • @aenhacker actually it's

    Brackets

    Indices

    Division

    Multiplication

    Addition

    Subtraction

  • Order of Operation,

    Bracket off

    Division

    Multiplication

    Addition

    Subtraction

    Bo.D.M.A.S - Malaysia's Learner

  • thanks man! i'm in secondary school and taking c as a hobby. you're the best explainer ever :D

  • /*your videos are awesome!*/

  • @lazavideoz same here, when I'm older I intend to be a games programmer, that's why I'm here

  • @lazavideos same here xD when im older I intend to be a games programmer that's why I'm here lol

  • I am 13 and im already making programs like a simple calulator and such because of youtube videos like this.

  • what is conio.h ?

  • @Shockszzbyyous console input output header

  • i luv u mahn...

    ur a lif saver...

  • Fabulous teaching ..!

    i left my classes n sit here to learn c

  • You are the best explainer in the world

    Thank you so much

  • for comments does //this is a comment

    work?

  • @tdude179 yes thats for one liner though, if for multiple lines use */ comment

    comment/* if I'm correct

  • i mean /* comment

    comment*/

  • Esa maldita libreria conio.h no funciona en GNU/LINUX,... hay que usar ncurses.h

  • This guy is better than a book I read on c programming. He acualy explians what each command means!

  • love it sir; juz starting to learn; hopin to learn evrythin

  • I use // for comments. easier lol

  • what is #include conio.h ?????????? whats the use of that >?

  • @TheNewbie27 getch() uses this library

  • it game me _CRTIMP int __cdecl printf (const char*, ...);

    as an error in stdio.h

    help?

  • @VaginosaurusRex why do you ask for help but not tell us what you wrote?

  • @inuasha880 lol sorry that was 2 months ago when i was just getting into programming. i'm sure it was some silly mistake.

  • thanks it helps me alot

  • @MrWASD98 Correct. Those are line comments which automatically end once you go to the next line. Sometimes they're more practical since you don't have to mark the end of the comment as is the case with /*.

  • Great tutorials, Users of Linux please remember that some things are not necessary (such as getch () or conio.h) for your programs when compiled in gcc, and will in fact break the program when attempted to be compiled with the gcc!

  • Again Thak you!

  • [Linker error] undefined reference to `WinMain@16' ld returned 1 exit status

  • Brackets

    Exponents

    Division

    Multiplication

    Addition

    Subtraction

    BEDMAS

  • Youre tutorials are fucking awesome!

    I understand everything and it Works Fine!!

  • You make the best tutorials.

  • It's

    Brackets

    Orders

    Division

    Multiplication

    Addition

    Subtraction

    Bodmas Aussie version

  • Yeah! I'm learning math AND C!

  • We get taugh PEMDASFLTR Please Excuse My Dear Aunt Sally For Looking Too Rough, Parenthesis, Exponent, Multiplication, Division, Addition and Subtraction, from left to right. (Meaning MDAS from left to right haha)

  • Fucking BAM mate ! :D

  • I'm taught BEDMAS

    Brackets (Parantheses, Brackets and Braces)

    Exponents

    Division

    Multiplication

    Addition

    Subtraction

  • order of operation

    Parentheses

    Exponets

    multiplacation/division

    addition/subtraction

    (please excuse my dear aunt sally)

    americans style

  • You should teach at a University, me and my classmates at De La Salle University watch your tutorials all the time.

  • I'm sorry, but I laughed when you started explaining 1st grade math... xP

  • what getch () does?

  • @MetallicAus stop the program from closing after running the code, if you dont use it, it will just start and close in under a second.

  • very clear thanks a lot sir. but can you please teach us little complex problems?

  • what about exponents

  • i gez The 5 who disliked prblbly came here expctn porn!! Big up Bucky!! u rly rock! u are way beta dn da joint brains of all ma univsty progrmin lecturers!!

  • man I need some help, how do you change the compiling option from c++ to c only?

  • i just saw something you look like Chris Daughtry

  • please come teach in my software engineer unit :(

  • silly :)

    brackets not prentheseys

    or it would be pedmas not bedmas

  • I am using a mac

  • To do comments on mine you do this: // Comment Here

  • lol order of operations is math you learn in middle school, not programming. people should have to know that in my opinon.

  • The Best tutorial for C.I tried to learn C from a book but it was very very difficult.The video tutorials are 100 times better...

  • @strangegeorge2 book tutorials suck so much

  • @CzSoft yes, they are. You do 'em which ever first you get the smae results.

  • Order of Operation

    Brackets

    Indices

    Multiplication

    Division

    Addition

    Subtraction

    BIDMAS - The Pedmas UK version :D

  • @Praaestantia the order you have this in would spell bimdas

  • @Praaestantia

    Division is before Multiplication. BID(division)MAS

  • @Praaestantia Y U NO please execuse my dear aunt sally? ;(

  • @Praaestantia Y U NO please excuse my dear aunt sally? ;(

  • @Praaestantia its BIMDAS NOT BIDMAS !!!

  • @Praaestantia or BODMAS...

  • @Praaestantia 6/2(1+2) = 1 or 9 ????

  • @davidenelson  9 I believe.

  • @Praaestantia

    I learned BEDMAS, Indices -> Exponents

  • nice tutorial it really helped me  a lot....PEMDAS!

  • lol I laughed a lot at 4 + 6 * 10 = 100

  • isthe.com/chongo/tech/comp/c/c­-precedence.html

  • Thanks for the videa.  Very good for beginners. Is it necessary to write getchar()

  • the order of operations is not something that you neededto explain, cuz, every1 learns that in school

  • "46 what the heck"

  • Order of preference or another way to remember it is

    BIDMAS:

    Brackets, indices, division, multiplication, addition, subtraction :)

  • @MisterJ4512 I know that but when you compile and run the program it doesn't make any difference

  • why do you forward slash n in printf("%d\n", value);

  • @TheSouthKakilakian the forward slash makes the program print the value and then go to the next line. Like pressing enter

  • @TheSouthKakilakian \n is an escape character (google them). This one goes to the next line.

  • Comment removed

  • alright

    value 6 + 4 * 10 is a 100

    execute compiler on your own

    looking for a 100 LoOking for a hundred! What 'u GoT? wait for it! there we GO!

    46???!!!!! What the Heck is ThaT...(O_O)?!!!!!!

  • Er..is using mathlib.h also the same as conio.h? Just asking

  • @amritggeorge No. mathlib has all the calculations functions (sqrt, aprox etc). Conio = CONsoleInputOutput

    Conio has getc and all the other crap

  • its called BEDMAS

    Brackets

    Exponents

    Division

    Multiply

    Add

    Subtract

  • @gingerkid963 It would have to use a logical pipe operator: if(value == 1 || 10 || 50).

  • @CzSoft more like "please excuse my dear aunt sally" ;)

  • can any one help! me as soon as i compile, i get the little window that tells me that there is no errors but the other window where the program runs on wont appear. what am i doing wrong!

  • Once again, if you are using Linux, there is no conio.h, instead you can use

    sgtty.h

    There is also no getch, use getchar() instead. Bucky, you might want to make a permalink on all your code about this funny library. It really zaps the noobs!

    Nice job -- using your links to teach my son coding!

  • 46 what the heck? haha

  • how do you make an if statement that includes OR in it.

    lets say i wanted to say:

    if (a== 1 or 2 or 3)

  • @gingerkid963 QUOTE "how do you make an if statement that includes OR in it."

    The logical OR operator is "||"

    example

    if (10 > 9 || 7 == 2)

    The bitwise OR operator is "|"

    example

    unsigned int val = 10 | 29;

  • boooooooooooooring

  • @CzSoft or, even though it's a little elementary...

    B.rackets

    E.xponents

    D.ivision

    M.ultiplication

    A.ddition

    S.ubtraction

    = bedmas XD

  • @CzSoft i got a better one

    Brackets

    Of

    Division

    Multiplication

    Addition

    Subtraction

    or simply BODMAS

  • @AmiruddinAyaz nyc dude!! ws wonderin no ne mentioned dz, n i ws taught since primry! i ws lyk wtfffffffff!!! lool

  • @CzSoft or Please Excuse My Dear Aunt Sallie =D

  • help me plz: Write a C program to calculate the following Sum:

    Sum=1-x^2/2! +x^4/4!-x^6/6!+x^8/8!-x^10/10!

  • @ranju184 if you just want to know what the value is just use wolframalpha (dot) com :P

  • *Updated* Order of Operations:

    Grouping symbols

    Exponents

    Multiplication

    Division

    Addition

    Subtraction

    just remember GEMDAS xD

  • I learned PEMDAS in 3rd grade

  • i did everything right, but when i hit F9 ( compile & run) window opens shows no errors or warnings but still nothing happens. It just flashes and nothing. Don't know if it's because my windows 7 or something else.

  • Great videos dude. I've watched them up to here... I'll prolly watch them all tonight. I'm 27 and this 'order of operations' crap is making me remember all my highschool and middle school shit that I haven't thought about for years. Keep it up man.

  • I LOVE YOU...thanks so much

  • We call that order of math equations BIMDAS. Brackets, indices, multiplication, devision, addition and subtraction

  • please excuse my dear aunt sally

  • for the comments you could do:

    //comment here this just makes the whole line a comment and why does he put the /n after the %d

  • for the comments you could do:

    //comment here this just makes the whole line a comment

  • In Maths, we call the Order of Operations: BOMDAS.

    Brackets Over Multiplication Division Addition Subtraction

  • @ean94 What about exponents?

  • im drunk!

  • okay this is for children and no one has a use for this. You are syaing this is what people are paying you 80 to 100k a year for? You can just buy a caculator. Some machine puts this data in. This is not very hack worthy..Hope we learn something that comapnies want because I am pretty sure this is not worth paying anyone to do.

  • @silverpizza100 I found the thing that makes it all clear..its called the Ardunio. Got to dig deep if you want it. Geez. they should include one with every start up c instruction. It puts code into action via USB. Great for really learning how and why. Im going to get one. They are expandable as well. I still want 80 to 100K, lol

  • P - Please

    E- Excuse

    M- My

    D- Dear

    A- Aunt

    S- Sally

  • Could you give a quick explanation of what conio.h is?

  • @blacktalon12 It is a file location in C. Hope that helps..

  • best teacher i hv ever seen!! i dont knw y my computer s not teachin like u :(

  • why conio.h is it necessary??

  • @manutube8080 No. But a file location is needed. You can enter in any that is on C. You could enter in iostream if you want. You are just telling the computer to inculde a file with the program. Otherwise it has no referance point. Its like a piece of paper to write on.

  • @silverpizza100 I really like how you help out people on here who have questions! :)

  • @iCryonikz TY , have you checked out the watcha ma call..Ardunio? It will allow you to take code and run commands via USB port. You can turn on and off, make blink LED lights and a few other things, It is expandable and no one has ever herd of it. lol

    cost is around 28 - 45 bucks. It just helps make sence of how code can be used to do real things. check out Hacktronics they have them there. I am going to get one..

  • super teacher

  • BODMAS

  • you are a awsome teachet thnx a lot man!!

  • Dude, you have really helped me so far.

    The thing I really enjoy about using C programming in Linux is that the Terminal tells me where there are errors in code so that I can troubleshoot it myself.

    So far, I don't see too many differences in code between Windows & Linux programming.

  • @yoshifannumba3 its not the code that changes too far, it's the compiler you use... there are special Linux & Windows compilers, you know ;)

  • @BackRaw ok, I've only used gcc.

  • @yoshifannumba3 I guess - but don't know! - that it doesn't matter which compiler you use, because e.g. system("PAUSE"); is not available for Linux, but getch(); is for both Windows and Linux... you'll just have to google for the commands, I promise you'll find them =)

  • @CzSoft It's really P E MD AS. Division can come before multiplication if it is to the left of the multiplication.

  • You are a good teacher! lol

  • Now I know how to do my math homework.... Write it in C :D

    It isn't cheating, I'm writing the app xD

    (I think I should give the source to my teacher too)

    Thumbs up if you would like to give a thumbs up :)

  • Whats #include conio.h? Other than that great tutorial.

  • @TheDarkSagan I think it's:

    Include = Includes the other thing >_>

    conio.h = CONsole In Out Header (I think :P)

  • hey man u have stopped making tuts on autodesk 3ds max i was following them and only 22 are there pls make more in depth thanq

  • Ignore everything said about %, it is not used to give a 'decimal remainder' as he states.

  • @CzSoft

    Order of Operations:

    Parenthesis

    Functions

    Multiplication

    Division

    Addition

    Subtraction

    There is no exponent operation in C, you must use a function.

    PFMDMAS.

  • Idk where ur from but it's B.E.D.M.A.S. Brackets, Exponent, Division/Multiplication, Addition/Subtraction

  • What's conio.h for?? Also in the last tutorial

  • PEMDAS thats how i learned itq xD

  • great video it helped me a lot thnx

  • Again, great teaching great tut, amazing!

  • How long must i watch crappy videos before i learn C?

  • Hopefully... one day, after learning "C" this may earn me loads of boolean or is that bullion

  • you're awesome bro!

  • @CzSoft Or if your from the UK it is BIDMAS:

    Brackets

    Indices

    Division

    Multiplication

    Addition

    Subtraction

    :)

  • thanks man

    i'm learning with your tutorials......

  • @CzSoft or Please Excuse My Dear Aunt Sally.

  • why did we need to write #include <conio.h>..what's the meaning of that?btw, sorry for asking..i'm just learn about c programming..

  • @aisha09253 he never explains this but conio.h contains the function "getch()". you DO NOT need this. stdio.h contains the function "getchar()" which works just fine. and if you dont know why you put getchar() at the end of the program its because in this case the program will exit prematurely. getchar waits for a keyboard input.

  • lol doesn't all people who went to school till the age of 10 know about BIDMAS!!!

    rofl some people are retards!!

  • A return is just a value that you want to pass back to the calling function. There are two main uses to return values

    Error handling

    return 0 most commonly indicates that you are exiting without error. In C++ or Java you usually return a boolean which is either true or false, but C doesn't have booleans so you return an int indicating the error status of the function.

    Value Passing

    Ok so we are at the end of a function that calculated 2+2 and that was stored in variable sum which we return

  • He isn't teaching us basic math, if he didn't teach this us and we try to do

    6 + 4 * 10, and it said 64 we would be like WTF.

  • Lol, so i tought this was gonna be about functions, you know f(x) = transformations of x, or something interesting. But teaching 6th grade maths to programmers? I mean, come on...

  • @mainmenu895 youd be surprised how many adults dont understand basic algebra....

  • Anyone following this tutorial can save time and learn a new trick: int value = 6 + 4 * 10;

    you can define the value using math functions while initially declaring the variable

  • Thanks

  • Comment removed

  • :D bodmas

  • do you know the meaning of return 0;

  • @stonechime18 First of all, when you return you exit out of the function. Returning a value just means that the value you returned will be accessible to the function caller.

  • thanks a lot man... wow.. u are a great teacher..

  • @CzSoft

    PEMDAS:

    Please

    Exuse

    My

    Dear

    Aunt

    Sally

    Thats how I remember it from grammar school, :)

  • why did not you use &value ???

  • your website doesnt work dude

  • can you show us how to do other Math Functions such as mean, and average and range

  • thanks :)

  • great videos i have watched every single one of them

    please make some more, please

    thank u

  • what editor are u using?

  • wooping cough ^^

  • the // are for one line comments, while the /* */ are for multiple line comments.

  • you didn't tell us what the second header means and what its for..please fill me in with that information