Added: 2 years ago
From: hdvidsonly
Views: 47,599
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (148)

Sign In or Sign Up now to post a comment!
  • err this vid isn't in hd

  • which compiler are u using?

    

  • wt the hell is this

  • mate i just satrted out and i do better, no offence but mate use ur voice, make sure syntax errors become the past and have fun :D

  • worst video ever!!! need to speak words mate

  • i have a code but i need to know how to save and run it

  • Bad code.

    1. Variables should be declared whenever they are needed

    2. Using namespace std in file scope is not good, should have used this line in main()

    3. A for loop could have been used instead of a while loop

    4. The loop could have been terminated with break; instead of system("pause"), using this during a loop is very very very bad code IMO.

    5. System("pause") should not have been used,

    the following would achieve the same effect but better

    cin.clear():

    cin.ignore(255,'\n');

    cin.get();

  • Thumbs up if you muted this video.

  • danm i add not choice but to click on the add lol

  • _getch() is the same as system("pause")

  • @juplm4000

    Though you should use getchar() instead of getch(), because the latter isn't always fully supported in all compilers/OSs.

  • so this is in java?

  • @term884 Read the title, idiot. XD It clearly says C++ tutorial.

  • @term884 No. C++. they are different

  • @term884 C++

  • how do i turn c++ on lol were is it on comp im super noob pls help

  • @smokawho download a compiler like DEV C++

  • while (change <= 3) is wrong .... -.-

  • did you go to college to learn all of these things im considering taking a class at EMU for C++

  • when i run it, it doesnt let me type a number in, help?

  • Each time you writing "double" instead of "float" user forced to buy another one memory stick.

  • @coglanHD it's Dev-C++

  • Dont use system("pause"); use cin.get

  • How is this a tut?

    to me this is just a music video.

  • Please do not add annoying music to videos that are supposed to be a tutorial.

  • @HaloCPPGuy not true, just becaouse is says make a game, it dosnt specify what kind of game it is, it could be anywhere from a counting game, or a highly coded game like portal and anywhere in between.

  • Does it matter if I delete

    srand((unsigned)time(0)); I did and nothing went wrong...

  • @hdvidsonly send me the code please

  • There's an error at my code. Can it be the srand? Cause that's not an internally command?!

  • Thats top 1 simplest game ever.. xD

  • Whats the name of the c++ sowftware you use?

  • You don't know anything about Computer languages.

  • Please do not add annoying music to videos that are supposed to be tutorials.

  • what symbol is it that you use at1:56 random = rand () ? 10

    plaese relpy asap

  • Bad code.

  • there is 6 errors in the code for me

  • There is 5 errors on your codes for me.

  • So how do you create objects and characters and stuff?

  • For Some Reason When I Try To Run The Game It Says It Has Encountered An illegal instruction. Why?

  • chance as double?

  • Hi im new to C++ im wondering i made a file then i have the code but i don't know how to save it as .exe

  • GO WATCH THENEWBOSTON(Bucky)!

  • it says that time is undefined

  • @whymeproducz cout stands for code out.

  • thats a game? o.o check out my utub page for real games made with game maker ;)

  • thats a game? o.o

  • 0:59 how inappropriate, a dick

  • nice

  • Thanks so much man. Me and my buddys own this (not licensed) game making company (hence the name) , and our first games were in notepad, then unity, then shockwave, and with those i think we had some experience with c++. I'll let you know of our future games. Thanks so much! (subscribed)

  • wat kind of a shotty game is this ??

  • There are a few bugs in your code, even after the guess are over it says "try again." you have 2 "end << end; after it says "you're right" it's more efficient to do "0 < 2" compared to "0 <= 3" the second uses 2 machine instructions compared to 1. you have multiple uses of "system("PAUSE"): and "return;" no reason to use "double" use int instead.(uses less memory). cstdlib is unnecessary. not trying to be an ass, just trying to help make you better, here's my code.

    pastebin[dot]com/espUj3cS

  • I just followed along the video and wrote down the code when he did. It helps with learning what stuff does too.

  • LOL SRANDOM

  • song is annoying, I want narration!

  • Does this work with notepad?

  • Thank you

  • send me the actual code of this game

  • hi. your music sounds like the sims

  • what is main 

  • sorry im an amatuer in C/C++ , what does cout mean? didnt come by pass it yet @hdvidsonly

  • @whymeproducz cout is used to display the output.

  • @hdvidsonly Why don't youse use printf(""); ?

  • @hdvidsonly no c-out get the term cout

  • @whymeproducz I may understand you are an amateur but you should try learning these things first before making games...I am an amateur also but I've got little knowledge about arrays,cout,cin,structures etc...go watch thenewboston(BUCKY!)

  • @idvhfd oh god thenewboston is great

  • @soulrisk1010 Told ya :D

  • @idvhfd yea i already knew about him lol I was just supporting your comment =P

  • @soulrisk1010 Ya...sorry for that.I thought you were the guy that I told about bucky.

    XD

  • @idvhfd hell yes bucky is the fuckin man! thats how i learned to use c++

  • @bdbbdb2727 Hell yeah!

    Btw, sorry for my typo.

    It was a year ago, I can't make that kind of mistakes now.

    Lol.

  • @whymeproducz you aren't an amatuer if you don't know what cout means. You're a complete noob. Please look up TheNewBoston's c++ guide before attempting a game.

  • Comment removed

  • @whymeproducz  *facedesk*

  • @whymeproducz Wow that's strange considering you use it to make a simple Hello World program

  • @psntanner11man lol sorry that was long ago i know what it does now i take C++ classes :P

  • @whymeproducz ok cause im like wait wtf

  • @psntanner11man yea haha i know man i kind of wrote this comment carelessly but i know it now :P thx though

  • @whymeproducz wtf? if you every did anything with c++ you did cout

    this is the first thing you learn

    without cout a program doesn´t display anything so it´s senseless

  • @whymeproducz Go to TheNewBoston's channel.

  • @whymeproducz cout means compile out. Its your compiler taking what you have just written and turning it into binary code so that your computer can read it and open all of the files that you commanded it to.

  • @HulkStatuss people people stop replying to this comment please . i asked this before knowing anything about C++ i know what it means so please stop replying lol ..

  • @whymeproducz sorry man =( just trying to help

  • @HulkStatuss no prob :D thx nywayz

  • are you created this song with Iphone/iPod Touch?

  • @pufixas "Are you creaded" pssssssssshahahahahaha

  • system("PAUSE") --> EPIC FAIL

  • @Kozeris

    Why is it an EPIC FAIL

  • @Kozeris

    yeah why?

    char A;

    cin << A;

    ??? that better?

  • Comment removed

  • @pufixas

    Use console to avoid those pausings. But system PAUSE is pure epic fail. You can google, and find millions of articles about this thing. It's stoping your program, callin' system processes and libraries, alot of system calls, and then returns u back, this sucks.

    Char A; Cin << A;

    is so stupid also.

    Just use Cin.Get(); Cin.Get();

    simple as never. Just wait for a key press, and then just ignore it.

  • @Kozeris

    nu ir kas is to cin.get()?

    jeigu noresi prideti kanors kitka su tuo cin, tada cin.get() neveiks, tai geriau jau system("PAUSE") arba char a; cin << a;

    ka tau sunku prirasyti tas kelias raideles daugiau?

  • @pufixas tai moliams kaip tik system call'ai. Parodytum interm'ui tokius dalykus, tai pareigingas žmogus atspardys dar ir šikną. Kažkokius kintamuosius kurt, system callus kviest.

    Ką kitką su cin? Apskritai jokios pauzės neturi būti šiaip sau kuriamo gale, o jei jau reikia get member-function'as tam puikiai tinka, nukritus flagui nelama pakels jį ir išvalys bufferį. Tavasis cin užgliučins visai jei aš šausiu stringą, ir bufferis bus perpildytas, ir teks valyti vėl bufferį, I/O nebereaguos visai

  • @Kozeris

    ka tu cia spangsti?

  • @pufixas

    Tai šnekėk, lameri, o ne pats spanguliuok čia. Kotletas net nesupranta, kad get'as ima visus ASCII. LOHAS

  • @Kozeris

    tu no-liferis esi, todel viska supranti, eik susirask boba papisk pro shikna, o ne sedek namuose prie pc nuo ryto iki vakaro.

  • @pufixas Asile, pasižiūrėk į savo profailą, avinas PC HACKERIS TIPO :DDDDDDDD.

    Dar mane vadina nolifer'iu :D:D:D:D. Čiuju dročini tu į schemas ir į code'ą žiūrėdamas :D:D:D:D. O pas mane viskas puiku, nesijaudink :) Su panelėm viskas ore, studijoms mokslas skiriamas taip pat. O tu galiu garantuot, profkinis, nors ir iki tokio lygio netempi, juokas ima iš tavęs :D. Tipo mandras, bet per šikną padarytas likai kaip gandras. Pro šikną papisk :DD Eik tu savo motiną pro šikną papisk ir už papo paimk.

  • @Kozeris

    nebijok, nei profkinis as nei studijinis, nei hackeris, nei mandras, nei mamu pisejas (priesingai nei tu), bobas pist man dar per anksti.

    o tu tik vaikus ir te duxini gyvenime...

    gaila man taves...

  • @Kozeris

    tu lietuviskai kalbeti moki?

  • Comment removed

  • what program did you use to make this?

  • @3DCubez Its c++

  • @coletrainisback yea..... is that the program name? what do i use? notepad!?!

  • @TppcGamer There are many different versions of c++ i believe that is visual c++ 6.0 that hes using but thats not free the free one is bloodshed dev c++ these are the program names c++ by itself just means the type of code

  • @3DCubez go to cprogramming . com and you'll find it. It's free!!!!!

  • @3DCubez Lol... C++?

  • To make the game better you should make it say : " The no. is higher/lower than your guess!" :P That's what i did.

  • HOW DO I GET THE CODE IT PROMISED AFTER SUBSCRIBING

  • @deathnotegupta my hdd crashed and now i don't have the code so i have make one.

  • @hdvidsonly yeah i have one error its says:

    "time": identifier not found

    WTF???

  • @zokih20 i Have it too

  • @nivram147 well i dont anymore i fixed it!!

  • lol most people who look up on youtube, how to make a game, they are usually expecting WIN32API looking interfaces, not console, but if the api is what they would o ffound, they would of found videos that would of lasted 30 minutes to an hour or so, but this was my first, now im in open gl C++ and plan on learning ageia physx

  • subbed now code plz

  • Comment removed

  • can you use notepad for c++?

  • @rpg877

    yes but u must click save as, then save it as whateveryouwant.cpp

  • @lolwutkitteh cool thx

  • lol he is named ''HD''vidsonly and this vid isnt HD

  • @Hvid1221 because i tried to foucs on the code..

  • @Hvid1221 Yes maybe this video dosen`t have the oppurtunity to make the video HD but look how good the video quality is when it is at 360p!

  • want to learn this or just interested join darkgdk(.)forumotion(.)com

  • Namespace std? STD?? Haha

  • game code PIZ

  • actually i lost the code so i have to make up one.

  • what compiler do you use.

  • dev C++

  • I can't seem to get the code right, could you send it to me or something? Ty

  • give me ur mail id...i am gonna send u the file

  • so much easier to make the same thing in java.

  • but this ain't java tutorial.

  • did i say it was?

  • hi Im Almost Professional Programmer And I Want Ask Is That Visual C++???

    And Numb3r1punjabl94 Java Sucks

    Just Be Better If You Make Like Platform Or 3D Game

  • ya this is visual c++ express edition.

  • Most games aren't created in Java, c++ is superior.

  • i know that... but that guessing game is easier to create in java is all i said...

  • i beg to differ have you even tried learning java syntax. c++ is not superior for making games it just more widely recognised

  • Most engines are written in C++ and not Java. Since this is the case it makes C++ superior to java due to the fact that if you were to want to make a game you would most likely have to use C++. Computer games are different, so you wouldn't have to worry about that unless you would want to make your game a certain way.

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