Added: 4 years ago
From: reconnetworks
Views: 230,745
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (383)

Sign In or Sign Up now to post a comment!
  • none of your tutorials work. Sorry but bad work.

  • @girlmastergeneral Look up what hes made and what you have made. Maybe (That means you did) you didn't do what he did.

  • what software are you using in this video to do your programming

  • Thnx..That was simple to understand..

  • Characters are in single quotes: For example, char blah = 'c';

    So he put the + is single (') because that's a character the user would enter.

  • what program are you using ?

  • Don't like this dude...it's OS specific. The system calls and whatnot are different for linux and stuff

  • Comment removed

  • Is memory usage covered? as it looks pretty data intensive on the from the datatypes chosen surely a float would be better rather than double it still goes to like 20dp but use less memory

  • ooooooooops 5:40

  • Could u use "if" instead of "switch"?

    Like if (cChar = '+')

    cout << "answer is: " <<dnumber1 + dnumber2;

    else if (cChar = '-')

    cout <<blablabla?

  • @11MyName111 Yes you could, but switch is a faster and efficient method.

  • Are you Canadian?

  • hey it wont give me an option to pick my second number can u help me

  • What type is this file? a console app, windows app, empty project???? Because i typed what u did exactly and got errors on about every other line... wouldn't compile...

  • is turbo C the same?

    

  • Thanx for the good tutorial. Very useful!

  • At 5:09 you use some sort of "quote" sign, you say that you talked about it earlier, but I can't find it. Help please :P

  • @TheInfezted what kind of keyboard do you have?

  • @TheInfezted Don't hold shift when doing quotes, this is holding shift and pressing the quote " like" that then just pressing the quote key 'Like' that

  • @TheInfezted I believe the "quote" symbol you are looking for is the same button you use to make a quote symbol, just without pressing shift. That is if you're talking about when he's typing out "case '+':" If you haven't found the "quote" sign you're looking for already, I hope this helps.

  • why the double dsecondnumber not desecondnumber

  • system("TITLE name") or any of those types of things dont work for me. I use Code::blocks

  • 2:50 5:19 Ha I love the way Canadians pronounce cout.... "see-oat". Very down-to-earth. :)

  • Comment removed

  • after the statement to enter the second number you should have put

    cin >> dsecondnumber ;

  • pls help me about C++ i need a personal tutor im a pure blood filipino.. text me 09309425669 please ..please

  • @ihateyoueternity I can help you if you PM me.

  • pls help me about C++ i need a personal tutor im a pure blood filipino.. text me 09309425669

  • you wrote desecondnumber instead of dsecondnumber :DD

  • Thanks man for tutorial :)

  • Does anybody else see him make a small mistake, and just wish with all your might that you could tell him?

  • @Jessebear998 All the time.

  • /watch?v=ps0QOaqcrII

  • the TITLE and COLOR things do not work on the Mac, nor probably on Linux.

  • @eallik solution fuck mac and linux buy a windows cause mac is in general shit linux is a virus heaven and a piece of shit and windows has same problems but rules

  • @diapysik It's near impossible to get a virus on Linux, idiot.

  • @bbqsauceonmycock unless the person who made the virus is not a tard i have a linux in my botnet the rat wasnt even crypted yet and got spread out and guess what 2 linuxes 3 macs and 1 windows computer eat my cauk

  • Thanks man! very helpfull

  • u wrote desecondnumber at 5:40 werent u spose to write dsecondnumber ?

  • hey everybody gay-mac here lol

  • Why do your words get changed to blue in Dev-C++? eg double and char, mine just go slightly bold.

  • @alza6991 Hes not using Dev-C++, hes using Visual Studio.

  • im getting a weird error at cin >> cChar; can anyone help me fix this

  • Did you know instead of declaring to double variables on 2 lines you can do this?

    double num1, num2, num3;

    Thumbs up to see this.

  • @TheSoulAssassin20 It is not as readable though, and makes version diffs less clear.

  • @TheSoulAssassin20

    but when program compiled there is no difference, did you know that?

  • @TheSoulAssassin20 This is a much more complicated way to do things. Don't. Makes things more complicated.

  • learn c++ coding from this site pcfunia.com

  • hey could you teach me how to add hardware id check on my app? i don't want everyone to run my app only on certain machine will have permission to run my app by using HWID check.

  • this doesnt work with dev c++

  • I searched for c++ tutorial linux...

  • you could also do this with nested if's right? I feel more comfortable doing it that way. For example if else, if else, if else right? Not sure off the top of my head exact code would like though.

  • shouldnt there be cin >> dsecondnumber; before switch?

  • will you just run the damn program already!

  • what dose case mean?

  • @GamingWaveGames It gives a variety of options for the differnet scenarios. Like if there's more than one answer, you have the ability to cover them all, if that makes sense. Visit ANTIRTFM's channel, he's the best teacher for C++.

  • @cssadiction ok thanks

  • @GamingWaveGames OK I see what he did. Um basically there are 3 general types of structures in programing. looping, sequential, and selection structures. The case structure is alot like the sequential structure. Ex. do this, do this, do this, get what I mean? As opposed to do either this or that. Or do this until otherwise. Understand? Basically the case structure says do one of the following in a list of actions, But only one! Then compute the next statement in the program.

  • fast talking nerd. Blah blah just type this blah blah and run it. You do not explain where you are getting your codes and the functions each has. Where can I find a list of the codes and functions. PS I have a caculator. Coes anyone even use C? and if so why? This is just like DOS commands. No money in this. I can't even add a shopping cart. Please someone..expalin the point of this all.

  • @silverpizza100 ANSI C is used in all major operating system and in embedded systems. C++ is used in most operating systems as well as video game consoles and major games. It's for high quality, fast programs and embedded software. ANSI C is easier to learn than C++, so I suggest starting there. A good book is called "The C Programming Language," Google it and type K&R with it, those are the authors.

  • @silverpizza100

    what would you say is the best free programing language my friend?:D

  • @IamLiambee1 programming languages don't cost money. it's normally the tools that cost money. but for most ( probably all ) languages there are also free tools available. the best language depends on what you want to do, how much control you want.

  • @xybersurfer actually normally it's not the tools that cost money but the Libraries, the IDE's, the compilers(but why wouldn't you just use GCC/mingw?)

  • @Cds56 good point. the libraries probably cost more money. i've been using visual studio mostly out of familiarity. sometimes i use codeblocks with mingw.

  • @xybersurfer to be completely honest, I used the visual studio 2010 beta, which I thought was beautiful and would actually love to buy but since I'm cheap I use code::blocks and Vc++2003

  • I'm using CodeBlocks and to fix some errors I had to remove the } after do so the first and last connected. The problem now is with this line:

    cout << "Please enter the first number that you would like to use" << endl;

    I'm getting 3 errors; expected 'while' OR ' ( ' before cout. Expected ' ) ' before ; token.

    Please help?

  • @runemaster96 Post or send your whole source code to me and I will tell you what you are doing wrong.

  • aboot! You must be canadia....also ummm....MOOSE!

  • love your tutorials.

  • i get to this line

    << " (+,-,* or /) " << endl;

    and it keeps telling me that somethings wrong with it, i have the exact same line as him and idk how to fix it... i got dev-C++ newest one someone help please D=

  • @MrKrummyjoe it has to be all on one line

  • What compiler are u using?

  • It keeps saying "system was not declared in this scope"

  • @ThePeaceTaco I cant directly show you how to fix this because of youtube's lame word filter but try adding '#include cstdlib' to your code. Obviously put in the pointy brackets either side of 'cstdlib'

  • @TruthWithReason I fixed it, my compiler stinks and it didn't support that function. I just got a different compiler

  • So if you were to make a program with visual studio how would you open it up with this in it??? Please reply??

  • i really like this video

  • there's letters for the colour too.............

  • string is better than char, just saying :P

  • thanks 

  • COLOR A is better!!

  • system "ANYTHING" = noob

  • wow nice

  • awsome for me as i m a biginner !!!!! thanks dude...had mad error at first but i fix them........

  • When I went to make the case statements, like, I put the + and - and all that in the " ' " single quotations, not the doubles like you said, but I got an error(and yes this is in fact C++). It read the following...

    case label `'+" not within a switch statement

    My coding list looks EXACTLY like yours too. This error shows up for ALL of the case labels. What should I do?

  • I honestly don't like this convention at all. You are using built-in DOS commands for the "C++" program.

  • can u post the final code in the description p;s i typed but can't find my four errors thx

    --skarr

  • do u use this "{" or this "("

  • This is making me want to write my own set of tutorials for C++...

  • if you write

    system("COLOR 100")

    then it will show what the numbers mean

    like 70 would be white text (7) and black background (0)

  • @coolguyflex

    whenever you do any kind of system(""); codes, open up command prompt and type the name then /?. llike so: "color /?" this will give you a full list of what the code does.

    You DID realize anything in "system()" is a batch code right?

  • You people really need to get a life

  • @Sykesylufc Yeah, nobody should learn code, it sucks. you'd be much better off without all of your digital appliances. Have a nice day.

  • @MrODOJ The funny thing is about all this, is people can make tens of thousands of dollars just doing this stuff right at home, like for instand, making games. So people with no life made the TV, computer, and all of our current technology. How do you think the telephones got here? XD

  • will this compile and run in dev C++ bloodshed??

  • wow...im only 13, and i've already mastered this sh**....thnx 4 inspiring me 2 learn mor =]=]=]=]

  • awesome. Bill Gates mastered it too when he was 13 :) hope you be successful like him :D

  • no one gives a shit

  • Comment removed

  • @cookiepiedie Well if thats true id like to see you explain Linked lists to me then I doubt the youngest coder i know of is a russian Nikolai

  • If at all possible, avoid the system() command. It is only used in Windows, and requres more computing power. For title, you can use SetConsoleTitle("title here")

  • @RanDoMkId73 and no that is 100% False ive used the system FUNCTION under Ubuntu 9.10 ,Ubuntu 9.04 and Linux Mint 9

  • @KakashiMunyz nop they dont! system FUNCTION dont work under Ubuntu 10.04 at least I cant make it work. can you tell me how you make it work

  • How can design gui in c++??

  • @m4unot Windows API... learn the syntax of C++ first though, or you will just get confused and frustrated.

  • @m4unot EmuAddict says that designing a gui in C++ is done with the Windows API. But this is the dirty way of doing it. if you are using C++ Builder then it's simply dragging and dropping controls on a form and writing code of how each control should respond through events. Visual Studio also has such editor C# maybe also for C++. you could also use a library like wxWidgets with and edit the GUI with wxFormBuilder. But the best that is out there is probably QT Creator which is a complete IDE.

  • system("TITLE whatever") doesn't work in linux.

  • Are you playing tupacs's "toss it up" song in the background and drinking a pepsi?

  • I am drinking a pepsi, lol, but besides the point, i second your comment.

  • LOL

  • oh okay... (xD)

  • lol. got to love the wannabees.

  • What do you mean..... the dude making the tutorial, or the folks leaving comments???

  • read dapro's comment

  • ahaaa...... xD lol....

  • Fail

  • @dapro696 Learn yourself.

  • This looks like 2005.

  • Comment removed

  • yeah but whitch edition? 02/05/08 ??

  • I don't think. Because the upload date is June 01, 2007. But you can do it with 2008.

  • man what is the program your using?

  • c++ Express Edition :)

  • u sound so canadian !!

  • No, you have it wrong. The term that people use to represent two bytes is "word". it goes on, like dword (double word), qword etc...

    1 char really does equal Byte and a short is 1 word. They must do as I use them in unions to represent that amount of data.

  • char = 1 Byte

    short = 1 word (2 Bytes)

  • um just wondering where does this code go.....? like in the header? .cpp file? cus it wont let me debug it or anything keeps saying something is wrong

  • This code goes in a cpp source file. The source file is then compiled and linked to create an executable file.

  • Awesome video my friend! I'm not a C++ expert but you have inspired me to try doing a similar tutorial for the Linux environment. Keep up the good work!

  • Hey I need a compiler... Where can I get a decent one?

  • if you use mac. install Xcode. it comes with a complier (g++) and an editor. works great. the only thing is that you would have to upgrade to snow leopard in order to install xcode now.

  • Thanks for the help man... but I'm running Windows 7 and I found a compiler.

  • dev c++

  • not to be an dick but you never wrote, which you need other you'll get an error:

    cin<<dsecondnumber;

  • no probs, can see that it is a ; now

  • I cant male out the character after case '+' it doesnt look like a semi colon ; and i cant see why it would be a 1. What is it please ?

  • I'm sorry to say but what your teaching isn't proper for C++. This could only be ran in windows, not linux, or mac. I would put a notice.

  • what changes do you have to make to have it work on all operating systems?

  • Well, he mainly uses Windows command prompt commands by using system("<INSERT COMMAND") Replace what he uses with a evaluate of that with something that would work on all.

  • does it say apostrophe + apostrophe or "+"

  • why is it that at about 5:50 he puts desecondnumber? isn't that a mistake cos about 20 seconds later he write desecondnumber again, but says oops and changes it to dsecondnumber, i don't understand, did he make a mistake and forget to change it or is that supposed to happen

  • no dont use vc++ its bad, gives you bad habits and you dont learn to code properly.

  • you have kick ass videos!!! Thank you so much!!!

  • can you change the background?

  • i dont get this lol

  • for some reason the line that says case + is wrong

  • help every 1 of my system functions has an error plz help

  • You are a damn liar!!! you only added 2 videos in three weeks!!! and your videos aren't interesting!!! Stop lying!!!

  • what does the int main() have difference with int main(void) ?

  • Nothing really, int main(void) is basicly a reminder that this is your main and there are no main functions...int main() means the same thing just no void, saves time to not having to write the word lol.

  • oh ok, thanks

  • No difference but avoid using main(void)

  • It says that i have system7 C:\Dev-Cpp\mainhaha.cpp `sytem' undeclared (first use this function) undeclaried..

  • why are ya guys using windows LINUX is the shit

  • i got a big problem with this and part 2..

    if anybody thinks they can help and are willing to tell me what i have done wrong then please message me back!

  • got it fixed dont worry.. was just me being an idiot XD

  • hehe, missed a semicolon or something, which would be the most common c++ mistake

  • Whaaat!! This got too hard too fast. The first tutorial was a peace of cake, but this is already too hard

  • Ho ho ho welcome to the programming world where soon if your doing the expert part you will be jumping off your window if you do not have the patience.

  • 1:45 You can hear the jackass sound :D

  • c programming is a pain in the ass.. i dun know y i need to learn this for mechanical engineering!!

  • because everything must be programmed、 Even your car-builder robots。

  • Thank you for thwarting Microsoft's attempt to ruin your video at 0:11 .

    LOL and to think we almost all missed some learning there :D

  • is it fine if i put case1 rather than case "+"?

  • can anybody please send me a link for free downloading a C++ compiler , Windows Vista compatable.Thank you in advance.

  • Google Dev

    Or google Bloodshed Dev

    Should be the first website.

  • Use Dev C++ a grate IDE (for programming) and a complier (for the exe files).

  • thanks, but is Dev C++ OS Vista compatible ? Many IDEs I install don't work with Vista yet.

  • Try visual c++ express it can program normal c++ apps as well and is free, registering is free

  • @Willox303 you cant compile with express versions

  • Is there a way to change the background colour of the console window, and not just the text?

  • yes try around with things like "color AB" "COLOR F0"

    and things like that

  • Open cmd and type COLOR HELP to see a chart of all of the colors

  • why do you do int main(void) instead of int main()?

  • Im semi-preficient (I guess is the word) in C++ and i believe (void) and () is the same code declarer. either way works.

  • thx u helped me alot~