Added: 2 years ago
From: LearnToProgramDotTV
Views: 252,965
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (522)

Sign In or Sign Up now to post a comment!
  • never mind guys

  • IT DOESNT WORK PRINTF(:HELLO WORLD"); COMES UP RED

  • i have a question, what is the difference between C++ and DevC++?

  • @AngelElham C++ is the language itself. DevC++ is a piece of software used-- specifically a text editor-- used to construct C++ software.

  • Yes my name is mark.

  • Does the software work for windows 7

  • I want this video on my GB220 unit.

  • MY NAME IS MARK!! YEAHHHHHHHHH

  • I like your style, you give all the specifics and their reasonings and it leaves the viewer with an understanding of what's going on. Great vids!

  • Getting it to run from a usb pendrive:

    all_comments?v=KAPYgQiWaeE

  • CHANGING SYSTEM PATH

    Click Start and choose Control Panel

    In the Search box on the top right of the window type “system path” (no quotes)

    Click “Edit the system environment variables”

    The Advanced tab of the System Properties dialog box is shown. Click the Environment Variables button on the bottom right.

    In the lower box titled “System Variables” scroll down to Path and click the Edit button.

    Change your path as need be.

    Restart your system.

    [Not complete...op, please advise]

  • Maybe mentioned here previoulsy, but it's now bloodshed(dot)net

  • Realy good totorial shame you havnt zoomed in so i have to keep going back to do one line though

  • @cowmilkify Yes

  • yay, i did it'

    fuck java,

  • when you didnt put that closing bracket

    it realy bothered me XD

    

  • you dont need to add .c because you are already saving it as .c

    .c would only be used in something like notepad.

  • Do you have to put that much space between each line?

  • C and C++ aren't the same correct? I'm looking to get started with C and move on to Object-C and than Cocoa. If I start reading up on C++, will I still be able to relate to Object-C and Cocoa?

  • @gbeehler I would go the C route.  C++ provides unnecessary and overcomplex features that are not needed to simply move to Objective C in my opinion.

  • @cowmilkify Turns out Microsoft's Windows is actually written in C and C++ also using Assembly of course, this is the main reason I went here. xD

  • "Hello, What ever your name is"

  • is everything the same from c to c++

  • @8787cole No.

  • Ive folowd all your instructions and it dosent work. why?

  • @assafcohen4 just close and reopen it

    and put it back in

    try to make it so it has a little star buy the source file name

    but it wasnt working for me either

  • Can you give the download link. Cuz I cant seem to download anything

  • This video went viral on Roseau

  • Comment removed

  • You're amazing!, I really hope to learn more with these material.

    Thanks a lot and greetings from Chile.

  • Wow this makes me realize that I really can program on my own! This is fantastic!

  • Is this for Game Programming?

  • @TheChrismw2killer It's not specific to game programming, but is designed to get you started in a language that is used for games. Our gaming course is coming out soon.

  • @TheChrismw2killer this is the second closest you get to binary comands

    windows and os where made using it

    its pretty important

  • @TheChrismw2killer this is an old game called "Hello World!" xDDDD

  • @TheChrismw2killer C programming is excellent for many programs, like games. But do not start your programming life by programming games. Start by learning all the basics and mix it up to a game.

  • Can someone help i get this when i click compile [Linker error] undefined reference to `prinf' and also ld returned 1 exit status

  • learned more in the first 5 minutes of this vid than the first chapter of my book which college students apparently use...great vid

  • @lolJonezy Thanks!

  • in my book it says to type "int main(0)" rather than just "main(0). still works fine. but what are the differences between the two.

    also it says "return(0)" rather than "getchar()" ?

  • @techfighterminal int main(0) is used if the main function returns an integer-- Which many argue the main function always should. Either will work, however. That's why you see the return(0) at the end of some methods. The gethchar() is used to hold the command line window open until the user strikes a key.

  • Buy*

  • Errrr o_o

    I'm just gona but a book or 2, or 4 :D

  • yay! now I can launch "Hello World" in HTML PHP CMD and C!

    too bad thats all i know. :(

  • @etnies40210 lol i just said screw it im sticking to c and c++

    and maby some java

  • C language is the same C# language?

  • @Seyhk While C# is loosely based on C they are not the same language at all. C# is a modern .net language used for Windows applications and is produced by Microsoft.

  • @LearnToProgramDotTV Thank you for the info.

  • 0:14 "BLOODSHIT SOFTWARE I LOLD SO HARD XD

  • which language should i use to program an open world game in 3d

  • @AFClan1 I assume you're joking right? You don't just go up and make an entire game world by learning C. You also need an SDK, Graphic Deign, a good knowledge of Open GL, and if you want it online, Server setup.

    The best things come to those who try hardest.

    My suggestion is to learn Blender 3d. It's possible to make a game world and interact with it all without scripting, though knowing Python can expand the possibilities.

  • i love how a lot of programming languages are the same just have to learn the syntax of that language right now i'm learning JavaScript soon to be learning PHP :)

  • You A Mark!!!

  • it just says invalid preprocessing directive #include

    what I am doing wrong?

    help please!!!

  • @TheLexusAlexey i made it ohohoh

  • @JackoLlamaGaming the video on my channel uses Microsoft Anna, a voice engine included with Microsoft Narrator

  • i was just sitting here watching it...and all of a sudden ur voice started annoying me like hell (no offense) so i just quit watching it lol

  • *If your name isnt mark, you should change it to what the hell your name is*

    printf("Hello, what the hell Markus.");

  • Ok, in such case you have to tell you C Programming trainer to teach you control structures directly. And I can challenge you will love C after that.

  • OK, it didn't work because of stupid defaults in the installer. If nothing happens when compiling, go to Settings - Compiler and Debugger and click on Toolchain Executables.

  • OMG it worked!! I had a few blips at the beginning. I couldn't see the screen clearly and missed a couple of characters plus I couldn't find the curly brackets on my keyboard so had to copy and paste them as symbol from Word. Got there in the end!

  • you should write better structures. Like use void or int for main() like that. Dont make it like the VB users practices.

  • instead of having main() {

    i use int main(void){

    and at the end put

    system("pause");

    return 0;

    whats the difference between these two??

  • Great Tutorial. Thanx. Im using the Beta and when i try to compile and run it says the Source file not compiled?? any more help.?

  • I'm 13 and I've been looking for a video like this for a long time. Thanks so much. I want to be a game programmer when I grow up :D

  • I`m going to become a game designer when I grow up.

    This is the best tutorial I`ve seen so far.

  • very well explained, better then my college professor

  • Thank you

  • Sorry for all the post, but can u tell me if i need to redownload or something?

  • ok this is what i get when i try and compile "Compiler:Default compiler Executing gcc.exe... then gcc.exe (filename) and after that it says Execution terminated"

  • i think my files said something about haveing a GMU file on path or something like that how does that set up?

  • It is only compatible with older windows versions? not windows 7 because im having some trouble downloading devcpp

  • oh i downloaded it o0

  • You, sir, are my hero. Subscribed :3

  • i cant even find the shortcut to the bloody thing. this is already annoying...

  • @LearnToProgramDotTV

    Would you REccommended the DevC++ or the more universal Code::Blocks? I'm trying to start out, but it's dizzying haha, I did a little basic VB6 and Miniscule ammount of Java, so C is a new curve ball to me.

  • thank you...

  • I'm coming from learning in AS3, so I'm used to object oriented; is it better to just learn C or try and learn java?

  • good to see oldschool C in action. People nowadays tend to forget C and everyone is always talking about C++. C is obligatory imo, people should know how the programming was before OOP.

  • Can anyone tell me easy way to learn game programming and creating websites just using the internet. thanks in advance.

  • I Give up! I've "Googled it" and all they teach is "Hello World", "Hello World", "Hello Fucking World"!

    and I'm tired of it!

    I know what a function and a header file is, and I've known that 2 years ago when I started and haven't learned anything else since then.

    If you look at GTK, Cocoa, GDI, Direct3D, OpenGL or SDL source code with videos like this, you'll be lost.

    Videos like this don't teach you what you can do with most of the functions in stdio or how to memorize functions.

  • @commodore256 go to school den!

  • @DJCrazytrak You got money? Well, I don't. I can barely afford to save $40 a month.

  • @commodore256 advice to you my friend is to search google and learn c-c++ thur reading you will understand it better just think of it as a typing game to give your computer a command like playing gta u put in code to tell the game to fix your car or sum its all coding once you learn how to right it you can do a whole lot

    GOOD LUCK THO

  • @DJCrazytrak I'm the kind of person that requires realtime feedback and functions are impossible to memorize.

    I need someone to teach me one-on-one and I can't afford it and rare skills are rare for a reason, I can't just say "Mom, can you help me with my C# or Japanese homework?" I might as well ask for help with Alchemy or 6502 ASM.

    I can't understand it and I tried for years on my own and failed and I'm very easily discouraged/distracted/frustra­ted.

  • @commodore256 it not to late to go to the airforce go for tech n u can get the military to pay for college that what many people do

  • @DJCrazytrak I'm sure I'm the kind of person that would come home in a bag and if I was drafted, I would break my leg.

  • @commodore256 I basically "know" every aspect of the C syntax, written some not too simple apps in it, and then I look at some apparently "simple" open source programs and I'm like "wtf I don't get a word of this..."

  • @commodore256 Don't run before you can walk... That's the concept. Well, you gotta try things out yourself. Expand them, and try using them your own way. To bend the ways they already have shown you. So you can learn even more yourself. And remember it too. Only watching tuts won't help you that much, but simply trying things out yourself. Will help you alot more. I know this is 2 months ago since you posted it. But, think about it :) Will ya?

  • @BeejayPr0duction It feels like it's impossible to find a solution, the best thing I've ever done with C is write a text file and I forgot how to do that.

    I just need real-time feedback like I did in school. I never learned a skill without school and the UNIX Command line doesn't count, It's just (relatively) simple commands and knowledge than difficult logic.

    it's like comparing history to math, history is facts, math is a skill

  • @commodore256 Then get some real-time feedback. There should be tons of different programming classes ;) It's not that hard to find

  • @BeejayPr0duction I don't have the money to go to any.

    I can't even afford a clown college.

    Also, I would need one-on-one lessons because I would always need help and the teacher would always be busy or I would slow down the class because I know the class would progress faster than I and there's no way in hell that I can afford a private tutor.

  • @commodore256 Well, at least it's a start, right? better than no help at all.

  • @commodore256 I'm in exactly the same situation. I know exactly how to write a for loop and a while loop and an if statement and blah blah blah but I have no idea where these crazy function calls like system.io.asdsdfjei.openScanPa­geHandler come from and where I'm supposed to learn how to use them. It seems like 10% of programming is knowing the language and 90% is memorizing shit like that and knowing what it's for.

    I'm at a loss for how to begin writing useful and functional code.

  • @ross817 You're a little further than me.

    I just learned how to use "if" and "else".

    But I'm having issues with "for" and "while", but yeah memorizing shit with boring case sensitive names Isn't easy to do.

  • @ross817 you can watch video tutorials on my channel regarding c

  • @commodore256 agree. the only place to learn this shit is in college.

  • @commodore256 still im not losing hope

  • could you use notepad C++?

  • If I'm starting from zero (never learning a programming language at all) would i be able to learn C? Or should I learn something else before getting into it?

  • @Jinxxed0 I think C is a great place to start. It will allow you to learn basic programming concepts without getting bogged down in object oriented theory.

  • Is it true that it's better to be bogged down in undefined behaviour than it is to be bogged down in object oriented theory?

  • @LearnToProgramDotTV I would actually reccommend a very basic web language such as HTML. Then move up from there like CSS, PHP, JS, XML/RSS/XHTML, Java, then maybe C, Objective C, C#, and C++.

  • @Jinxxed0 I learned Java and took two VB courses - Then somehow C seemed easy...

  • @Jinxxed0 start with python

  • @Jinxxed0 If you start from absolute zero you may want to start with BASIC first to get an idea about the basics of programming. Microsoft has 'small basic' for free. It just installs&runs without nagging and is easy to use. Next it may be a good idea to have a look at assembler, the machine code that runs in the cores of CPU's. Low level languages like C/C++ are basically direct translations of MC. Higher languages are always built on lower ones.

  • its incompatible with ANSI C and without return function.

  • Hi again after I have done this when I click save as what file type should it be please ?

  • @bkgamesinc .cpp

  • Hi Im runnning on windows 7 and when I went to download dev c++ I noticed it was not for windows 7 whhat should i do please Thanks.

  • @bkgamesinc Although, Dev C++ will run on Windows 7 (just download the XP version), I'd recommend you use Code Blocks instead. Check it out...

  • im reading a book right now called beginning C++ through game programning second edition and it was showing me alot but i still had lots of questions but your video cleared it up for me

  • how to send command to minimized window?

  • @n00peh

    you are correct

  • the latest version of dev-c++ is 6 years old, it's no longer supported, and the prepackaged version is using mingw version 3.4.2, the current version is 4.5.2. you should all go download the newest version of mingw by itself and bind it to the latest build of codeblocks, which is an actively developed ide superior to dev-c++, or at least get the version of dev without mingw and bind it to the newest version of mingw downloaded separately.

  • @apolymath0 You are correct and I agree! I actually have moved to Komodo Edit for my text editor-- Komodo works on PC, Mac and, Linux. I use that with the mingw compiler.

  • @LearnToProgramDotTV is notepad++ ok?

  • @TehFlyingGerman Yes, its fine But you'll have to set up and use the compiler from the command line.

  • @LearnToProgramDotTV alright but im new to programming so idk how to do that xD

  • Email me or contact me on Google+ (My name dor com) and I'll give you a link with instructions.

  • @TehFlyingGerman Email me or contact me on Google+ (My name dor com) and I'll give you a link with instructions.

  • Thanks for the help. going to be watching all the vids so i can learn more.

  • Correct me if I'm wrong, but isn't the main function required to return int in the latest C standard? eg. int main() { ... }

    I believe some compilers may reject code that doesn't have an explicit return type for main.

  • Very professional tutorial. I like how you made the watcher make changes to the code. I'm learning C++ so this is not usefull for me, but for others it looks really good.

  • is this CC386???? just asking..........

  • why is it a console application? cant it be a windows application?

  • @rotsebanotman It runs in the command line console. That's why it's called a console application.

  • @LearnToProgramDotTV

    how do i make something with buttons textboxes and stuff like that?

  • @rotsebanotman C is not the best language for doing that type of stuff. If you are going to do a web based application, I'd do Flash or Flex. If you're going to create an application that runs in Windows I'd use a Visual Basic. All are based on the C syntax but will take some time to learn. Good luck!

  • @LearnToProgramDotTV

    what if i want to make a game in c?

    what engine do i use? would it be a game engine that supports c language? like unity or something?

  • @LearnToProgramDotTV Rubbish. C is great for GUI programs. Visual basic is terrible and Flash is possibly the worst option for web development. HTML5 and Javascript provide pretty much everything you need these days.

  • @rotsebanotman

    Also, checkout visual studio express. This is an integrated development environment (IDE) that will help you with building applications that implement GUI objects such as buttons. However, the catch is that you will have to pick up some object oriented skills if you go this route. You'll have variants of c, C++ and C#, and visual basic at your disposal -- all of which are fun! If microsoft isn't your thing, check out OS X's Xcode.

  • @rotsebanotman You need to use a Widget toolkit. GTK+ is good for cross platform development. Look up others like FLTK and Qt too.

  • @TDogg186

    thanks a lot

  • @TDogg186

    thanks, is it possible for you to give me others?

    thanks

  • @rotsebanotman

    There's a few others like XForms for Linux and WinAPI for Windows. But the main ones are GTK+, Qt and FLTK as far as cross platform projects are concerned.

    I usually use GTK+ because I'm a Gnome and XFCE user.

    There's a wikipedia entry on this and most other topics related to it.

  • @TDogg186

    i tried to download gtk+ but there were just a bunch of file, no set-up?

  • @rotsebanotman Are you on Windows? If so there should be an installer. If you're on Linux chances are that it's already installed.

    GTK+ is simply the framework remember, it's not an IDE.

  • @TDogg186

    Im on windows, and i cant find the installer

  • i have a question, is the same programing on c?

  • I have a question, is almost the same program on c???

  • there seems to be a problem with the getchar(); command, when i compile and run, the console window doesnt show up at all.

  • Hi!!I have aproblem!

    When i wright the getchar() command it still doesn't open any other window...what do i do wrong ...everything seems right ..

  • why oes it keep saying link error and ld returned 1 exit status when i try to compile and run

  • why does it keep saying link error whenever i try to compile plz help

    

  • @recces1234 I know what I did wrong. You shouldn't use the ( ) chars, you must use the { } chars.

  • "Hello, whatever your name is."

  • @Stoofpeertje84 its because he is really teaching c++ to us so save it as .cpp not .c okay?

  • great tutorial

    i was just wondering if you guys could possibly do a tutorial on python

    please and thank you :)

  • is there a way to compile with linux,

  • @vanquish349 gcc comes on most distros.

    Just run

    ~$ gcc --help

    and/or

    ~$ man gcc

    to get the documentation

  • @TDogg186 thanks but that was 3 months ago, i found out later that day

  • My program does not exit upon the pressing of any key but enter.

  • Does this software work with windows 7?

  • frech brackits are () that right

    

  • @jctrader232 Most people call French brackets "curly brackets." They are {}

    Good luck!

    -Mark

  • @LearnToProgramDotTV yes beacuse of thet a lot people here have problems i think like anothers that at end is ) but it is } and then it works

  • @LearnToProgramDotTV So, I am brand new to coding. I have 2 messages at the bottom. One of them says [Linker error] undefined reference to 'WinMain@16' and the other is id returned 1 exit status. What do these mean?

  • Hi I have a problem. When I press the Compile & Run button, I keep getting the next errors:

    Line: 5, Message: syntax error before '(' token

    Line: 5, Message: 'main' declared as funtion returning a function

    Line: 5, Message: [Warning] data defenition has no type or storage class

    Line: 6, Message: [Warning] data defenition has not type or storage class

    Line: 7, Message: syntax error before ')' token

    What should I do?

  • @Stoofpeertje84

    Same here what should i do

  • thank you

  • I typed up exactly what you wrote but when i hit compile and run the program compiled but didn't run and no window flashed up on the screen at all. Help?

  • So, it's sort of like HTML and CSS?

  • Do you have to download the Beta version only?

  • im getting this error:

    ld returned 1 exit status

  • HELLO! world .C!

  • "Hello" i have a problen well first of all i use code blocks. My problem is tha twhen i type printf it dosent change color ok it black. but when i try to build it the error come out it said

    undefined reference to printf

    ====build finish: 1 errors, 0 warnings====

    im new to this so plz help

    Thank you and thx for teaching us

  • @Limonsnl show me your code ill help you, your probably missing a semicolon