Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (133)

Sign In or Sign Up now to post a comment!
  • "If you're gonna lie - lie big":-D

  • i like your style of teaching a lot.

  • hey, for 4:00, why did u put a space for salary and the battingAverage, but not for the age..like this " age=35; salary = 500000; battingAverage = .312; "  does it matter if u do or not? and if it does, how would u know

  • @XxRohShamBohXx it doesnt matter

  • getchar();

    Doesn't work for me, i dont know why it doesnt ... help please

  • @lewisself What environment are you using to create and compile your C?

  • @LearnToProgramDotTV It doesnt matter anymore, ive got it working still good totortials, shame you havnt done more on C

  • alot of perspective gained from this

    "thank you";

  • Why did you put int main(void) in stead of main()?

  • @ Sasha009000 it's actually spelled integer. And just look up algebra 1 or like the lowest math class available to find out.

  • I got thousands of errors all saying something along the lines of 'printf' undeclared (first use this function)

  • I added the getchar(); but the window still goes away.

  • could someone explain to me how variables would be used in a game?

    i know they are, i just cant think of how

  • @lolJonezy Best example I can think of (and there are thousands of ways variables can be used in a game) is to store the score...

  • nice

  • @LazyRpg what, you think games are 2d and 3d with cool graphic textures, story and music?

    we started making games with C like guessing game, and string conversion. these are some of the original "GAMES" you're not talking about.

  • When im clicking compile and run nothing happens but i have no error types can someone help me

  • @cptkostya

    @MKShadowX

    Thanks for your replies,and sorry for my later ones. But the compiler never spit out any errors, just flashed red lines all over the place, but I gave up on learning from @LearnToProgramDotTV And just started reading cprograming(dot)com, seems more...infomrative in a sense, I like it a bit better. These Tutorials remain unfinished,a nd I honestly don't want to sit on me arse and wait for him to upload more, cause I know he's busy and all that, as I am. So I Moved on.

  • what did he add in between age and 35

  • heh, im twelve mark, i dont know what an interature is. im making a game with my friends that we might put up on steam.

  • Hmm I went and downloaded dev-C++ and tried to do this little out put, but it won't read, and compile, I checked my code, everything is consistent, i even copy and pasted the int names age,salary, battingaverage, and yes i capp'd battingAverage like was told in the video

  • @AdrickCrimson What did you typed in? because i had the same problem but i forgot the semi colon at the end or i guess ---> ; that :p

  • @AdrickCrimson What errors did your compiler given you?

    

  • @MasTerZunDead

    eekss! sryy... btw thankx... :)

  • everytime my programe fails.... da msg shows "studio.h no such file or directory "

    wt do i do??!

  • ya why did you put int main (void) thats the only thing that i dont get

  • umm i put in my age is 14 then when i went to test it says i am 2 years old...

  • By the way, you can add "\n" inside the quotations of a printf command to end the line.

  • when i do the compile and run it goes back to ("hello, (my name)") and not ("I am 35 years old")

  • @musikbrotha how do you mean?

  • how come u didnt put space between = and age, u put space between = and salary?

  • @theco22wen I was inconsistent. The spaces shouldn't matter... So feel free to add a space or NOT add a space. It should work either way!

  • This isnt too hard considering I already know Lua! :D

  • Love your Tutuourials , but could u please make ur fonts bigger in c++ through the settings so its abit easier to read

  • What is the sign by "i am ??? jears old?

  • Hey can anyone tell me what constant did he add after age..its somewhat like ""

  • i need a bit of help for this tutorial and the first one getchar(); wont make the console stay open i dont get any errors though

  • When you make a new project which one do you pick?

  • Void means there is no return data

  • Anyone there can tell me what void means? (I'm not english but understand)

  • Whats the thing beside age?

  • how did you make that little m next to age?

  • Good tutorial but to learn in-depth I recommend cs50.net. Theses courses are from Harvard university.

    Cs50.net

  • what does in main(void) mean?

  • @CookieMonstersUnited means main doesn't take any arguments. he could just as well have main(int argc, char *argv[], char *envp) if he wanted to but void(or leaving it blank) is shorter to type if you're not using the args.

  • not OOP ready my ass!!!! C is can totally be used for OOP.

  • Salary=500,000.

    You can only dream...

  • i get an error when compiling on

    printf("I am %d years old", age);

    what does this mean?

  • This is so awesome, im learning a lot..

  • what is the symbol before 35?

    you are typing it at 3:19

    and how do you type it?

  • doesnt work work for me when i compile and run

  • i found doing the printf with declaring the values easier this way?

    printf("I am %d, I earn £%d a year and my average is %f", age, salary, average);

  • @LearnToProgramDotTV Hey why does it say "Source file not found" when i compiled and ran it i wrote exactly what you did.

  • thanks alot ... u really teach well..

  • For C

    Under C89, main() is acceptable, although it is advisable to use the C99 standard, under which only these are acceptable:

    int main ( void )

    int main ( int argc, char *argv[] )

    For C++

    The following are acceptable uses:

    int main ( int argc, char *argv[] )

    int main ()

    The first option follows similar conventions to those used by C99.

    The second option is used when you do not require access to the command line arguments, and is equivalent to the int main(void) option used by C99.

  • what's the LETTER before d

    ("I am d years old", age")

  • @johnmpek it's "="

    you can see it if use have HD resuolution

    i woundered a while to

  • thanks a lot man.. i find it easier to understand you than my teacher.. keep it up.

  • I get an error in compile on battingAverage = .312; - It say "battingAverage undeclared (first use in this function)"

  • @vegardertilbake1 Check your code as carefully as possible. Make sure you capitalized battingAverage the same way throughout the program. If you want you can email me the code and I'll take a look at it!

  • @LearnToProgramDotTV Hi, thanks for replying. The problem was solved after i downloaded Setup Creator feature of Dev-C++. I dont know why but after i added that, i got a new problem. It sayed that it needed a " ; " before salary, so i added that. And it worked:) .. I have the 4.9.9.2v as you 2. Can it be a bug?

  • @vegardertilbake1 i get an syntax error in compile on salary

  • I love what you are doing. Very basic. My teacher is good but he is a bit like Doc Brown so it gets hard to follow his logic sometimes.

  • i keep getting an error when i go to compile and run and the error is on age

  • @AionJunkie What is the error? sometimes the error is actually the line before the targeted line. make sure you put your ';'

  • @crazynoob \n works in java too bud ;) if you know java, try out \1, 2 or even 3 and u might get a nice surprise.

  • @pyropshere228 Java is all OOP, C has no OOP, Java cannot run without a JVM(java virtual machine) which makes it pretty much only useful for applications and applets, since system files HAVE to run on their own. Since C is neither OOP nor does it require a VM, it's extremely ideal for programming operating systems, among other things (windows and linux both are C based, and Mac also iirc).

  • what's the difference between this and java??

  • question, could'nt you just put "int age, salary, float battingaverage;" ?

  • @14thPianist You could have. It's equivalent. I like using repetition with beginners because it gives me more chance to talk about the basic concepts.

  • @LearnToProgramDotTV @LearnToProgramDotTV Hi. I find your lectures useful. Thanks. I downloaded the progam from bloodshed website and tried ur example. It worked (no error was shown) but I did not see the black result window. Please how can I activate this? Regards.

  • @Markks100 tell me if your still having a problem ill send you the code to open the window

  • @bondservant4Him Yes. I am still having the problem. Regards.

  • @Markks100 send me your code in a private message

  • thenewboston is better!!!!!

  • i just lovedddddddddd it cause i m also using the same programe i-e dev-c++

  • Can someone tell me the meaning of what hes doing?

  • @leshkaka it appears he is simply showing the very basics of C programing. I'm sure if you watch all of the tutorials you will eventually see the bigger picture.

  • Hello Mark, your method of teaching and material presented is clear and understandable. Thank you

  • Hi I'm working on a program to convert input like 1280 to $12.80 but instead I get $12.8 which is the same result I get from 1208 Could you give me a hint please?

  • @dying2l Well to me, $12.8 is correct, because it is still the same as $12.80.

  • nice :)

  • nice :)

    

  • nice :)

  • your so good at your videos im 13 and doing this >.>

  • Hmm, I guess /n only works in C++.

  • @crazynoob11 Ohhhh it's \n not /n

  • can you make a tutorial how to program c in a gui?

  • what's the different between double and float??

    also i followed the instructions but slightly made them different i made a double for my amount of money and a double for my friends amount of money and then a float for total and made the coding total = myMoney + friendsMoney

    and it worked =D

  • Your voice is amazing! lolz

  • Hey! great video. I am learning C also. Anyways, I was just wanting to know the use of the int main(void); also, like we do integers with (int) how do we insert words instead?

  • @Anupamkr96 int main(void); means our function returns an integer, has no arguments, and main is the name, in C there has to be a main function. and you would use a char data type for letters and words, for example, char ch = yourName;

    (^_^)

  • I am using a Vista computer and am now realizing Vista doesnt have DOS -.- and im 15 years old and i understand this pretty well, only thing is its really hard to follow because ive never taken anything related to programming :(

  • @3121username you would put printf(*i am %d years old* , age) ;

  • These are the best videos if your love C Programming tutorials!

  • i have re-typed.. printf("I am %d years old", age);

    over and over for about 15 mins now and it's keeps saying there is an error - i can not find any syntax error in the print f command. however at the very bottom of the compiler it says.

    'prinf' undeclared (first use this function)

    (each undeclared identifier is reported only once for each funtion it appears in)

    why won't it work?

  • @3121username

    I had the same Problem, had to rewrite the Whole File to fix it...

  • @koolwalky You probably forgot to include stdio.h

  • Thanks for your videos. i am 13 and i want to learn all i can about technology, including how it is possible to type letters on a computer from a keyboard and how those letters were put INTO a computer. But for now i'll start with game programming.

  • Clearly Explained and great audi.

  • in summer after my examinations i will stay at home and learn from your tutorials thank you sir!!!!!

  • i'm only twelve but thanks you can even teach me

  • I Love your Tutorials Man. Thank you so much for this :) Luv ur clear voice lol :)

  • why didnt you do this with a little more us-american pride-accent?

  • and why float battingAverage and not int battingAverage . sry for my bad english

  • because you can't put floating points into int variables. floats represent a floating point value such as 1.23456 such and so forth.

  • why did you write int main (void)( and not just main() ???

  • @TuningFreak23 the only real use for the void keyword as a parameter is in function pointers but even then, its not needed explicitely.

  • it's basically the same thing it just is there to remind you so for small program it doesn't matter.

  • @TuningFreak23 main() = main(void)

  • @TuningFreak23 "int main(void)" just coding style really, could be seen as good practice too I guess

  • @TuningFreak23 probably to be explicit. sure its implied that there arn't any arguments to main but...its better to be explicit then let the compiler assume what you mean, XD

    least that is how it was explained to me.

  • @TuningFreak23 the void lets the program know that nothing is to be returned so you wont need to type return 0; at the end of main

  • @TuningFreak23 its standard ansi c - it is the correct way to do it

  • @TuningFreak23 void means that theres nothing in it, it's useless. It's just like saying 89 is +89 (positive) which is the obvious.

  • @TuningFreak23 Because the latest C standard requires that int be explicitly returned, I presume. The C standard does not require that a program "main() { }" be translated correctly, so you might get errors from that.

  • i get this wen i compile and run expected `;' before "printf"

  • @ooSVVAToo Check your code carefully. That simply means you mistyped something and there is a syntax error preventing compilation. Good luck

  • you are the great great man ,

    your vids help me alot , as i am learning c++ in college and i dont understand what my teacher say ,

    many thanks to you

  • @sheaky420 Keep at it! Learning c++ is not easy, but with effort and time you can do it!

  • @ooSVVAToo #include <stdio.h>

    int main(void)

    { printf("Hello world");

    getchar();

    return 0;

    }

  • hey dude when i run it the black window dosent pop up why?

  • @Z3ROProductionZ

    Try adding at the very end (before the last brace):

    getch();

    return 0;

  • getch() is not a standard function. use getchar() or fgetc(stdin) instead.

  • @Z3ROProductionZ .. Try This

    system("PAUSE");

    return EXIT_SUCCESS;

    }

  • Your videos are good, but you should make the next video in the series a response to the previous one. Saves people from having to search through your videos for the next one.

  • wtf saved it as a .cpp file when infact its c programming not c++ and it ran??

  • C++ is a superset of C. Almost all C code will compile in a C++ compiler. C++ adds features, commands and libraries to C-- It does not replace what exists.

  • @PerfectkillClan C++ is backwards compatible with C, and the file type doesnt really matter, the compiler doesnt care, as long as there is compilable code in the file. hell, the file can have no extension if you want

  • How come when I press compile and run it says "Source file not compiled" :(

  • Wow really nice video guys. Keep making more please.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more