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

Link to this comment:

Share to:

All Comments (123)

Sign In or Sign Up now to post a comment!
  • All languages use "i" in their for-loops, why are you using "x" q.q

  • @ArtaexPrivate, look at his code again, do the thought "good coding style" ever cross your mind? Even the programming professor at the college I go to writes better looking code, and that says something -- really, it does.

  • can u pls make a code for this program.pls i ned it ASAP..i want it tomorrow pls..help me

    write a program that will add up all integers from 1 to the integers that was scanned into the variable j. Store the sum in the variable called sum and use i to increment the integers from 1 to j. Print only sum. For example, if 5 were read into j, then sum would be 1+2+3+4+5 or 15. A sample output is given below.

    Give an integer: 100

    Sum of integers from 1 to 100 is 5050

  • You do have a bad LOOPing cough!

  • hey ther bessie !!!

  • Make it take world domination!

  • change***** up

  • I'm not going to lie to you, thenewboston((((sorry I don't know your name)))), I thought this series of C++ tutorials were alot clearer!!!! Can you explain to me why you did that changed up????

    And is there any way you can put your old series in a separate playlist on your youtube page???? PLEASE

  • Thanks for the video. I understand for loops.

    While loops seem a little more confusing, but thanks brah.

  • "Enough talk. Let's see this baby in action."

    We're nerds, aren't we?

  • yee new microfon?? cool

  • thx for this

  • what if you have 3 variables? and you only have to use 1 header file which is the iostream ???

  • What a while loop does... COUGH COUGH!

  • I LOVE LOOPS !

  • *turns sound down*

  • thanks

  • i love your tutorials, :) used this to create a script that displays the multiples of any number to any range :D

  • finally better audio

    love the tutorials btw

  • 3 years passed and this tutorial is still the best :)

  • hereis a fun one while(true); that will slow your pc

  • eval('lol')

  • aves the project and the hotkey is F9.

    mihai4music 1 month ago 2

  • its sooo small. a little use of zooooom nxt time please. Im your fan btw! :)

  • thumbs up for 'looping cough' :)

  • if u press copile and run it automaticaly saves the project and the hotkey is F9.

  • x += 1; also works.

  • @GisleAune x++; works aswell.

  • Comment removed

  • @GisleAune x++; is better.

  • @ArtaexPrivate and "++x;" is even better in his situation, though the difference is negligable for basic types.

    Also, don't reply to 10 month old comments, assume that I know that 10 months after posting instead, which I do.

  • just do x++; its easier

  • why I cant compile?

  • @crackprog Make sure you obtain the set up "with MingW and libraries"

    that is the version that comes with the compiler. otherwise all you have is the editor and cannot compile.

    Make sure you download the newest one, but uninstall your current one before you do so.

  • @Aleksandrme

    ur late reply but thanks^^

    I fix my own.

    thats why error cuz i skip something.

  • @crackprog because you arent a computer

  • are you using DEV C++ ?

  • @bologney89 Yes it is DEV C++. He said that in his first C++ tutorial.

  • HOW THE HELL COULD YOU DISLIKE THIS GUY??? HE'S AWESOME!!!!!!

  • bool cakeisalie = true;

    while(cakeisalie==true){

    cout << "THE CAKE IS A LIE!" << endl;

    }

  • 5 people couldn't use a while loop after this tutorial. And also don't have to mental capacity to see how AWESOME C++ is. POWER!!!

  • @egodamonra WOO GO C++ :D

  • I wonder why some people dislike his vids...

  • isn't x++ easyer ?

  • @TutNuke C++ is industry standard and faaaar more powerful.

  • @UnitedGB

    I wasn't talking about the language

    He did X = X+1 wich is X++

  • @TutNuke Lmfao ohh!! :P Yeah in that case it would be easier, I dont know why he didn't do it. Although his tutorials are great, there's some bad programming practices in his code, like why he doesn't make using namespace std; global, by just moving it one line up, or by writing functions right under that, so he doesn't have to make a prototype.

  • @UnitedGB

    Lol :P

    Yea I love these tutorials he explains better then the paid 3dbuzz tutorials wich suck btw

  • bro, all i can say is keep it up, your doing a great job, much respect to you. peace the nomad.

  • thank you sooooooooo much for all of these!! your such a sick teacher! you make it so easy to learn! thanks mannn

  • I have to write a program using visual logic. I havn't found anything helpful on youtube or google that's helpful to my problem. Is anyone familiar with how to use this program?

  • Comment removed

  • YOUR CHEATING ON ME WITH BESSIE?!

  • WOOPEN COUGH!!!!! woooooooo lol.

  • is it possible to loop int main so after the program has run through the code it restarts from the top?

  • @Argon014 taht would cause it to keep running forever?

  • @Argon014 just add if whatever value your while loop was going to reach and set the value back to 0 for example

    if x=10

    x = 0 ... just add the syntax and the right variable/number

  • @Argon014 You can put a loop whereever you want, although, the main must NEVER be called recursevely (main calling itself)

  • thenewboston please answer this some1 told me to learn c++ to make nite pr codes but how can i turn this 1 as a code? cause the codes in nite pr looks like this

    #Inf Ammo

    ;SonniE [PSPHS]

    0x00271f14 0x24450000

    btw nite pr is for psp please answer how do i make a code like that?

  • @ thenewboston Hey, I like your vids but I would like to say at 0:35 you said "lets make x Equal 1" well I want to let people know that the '=' sign doesnt mean equal. It means "Assigns the value of the right value into the left variable" It sounds like its not worth mentioning but lets say you had two variables and wanted "pencils" to equal "pens", but you wrote it like pens = pencils. You would get incorrect values(provided the person entered two different values for both variables). -Kud

  • awesome shit man, you explain stuff way better than any other tuts on youtube

  • I just want to say thank you for these tutorials, they are literally a lifesaver. I'm a 50-year-old mom of an 8 & 5-year olds, and my husband left us last year. I had to go back to school to make a better life for me and my kids. I'm interested in computers, so I chose CIS. I have never done any programming before and by wk5, was totally confused. Then I found your videos, and regained the confidence that I can do this. Blessings to you, because these videos have blessed me and my boys.

  • Can you please do a program that accepts characters from the keyboard. An array of characters/structures ASAP, please! Thanks for you vids, they are great and very helpful!

  • thanks for posting this i can understand it more clearly...compared to my teacher:))

  • Know how you feel. I had the Pertussis bacterium before too.

  • In the body.. can we write only "x++" instead of " x=x+1"???

  • @trinidad143 Yes or you could do X+=1 for X+= you can have that add ANYTHING so that has more uses.

  • I wanna know how to make hacks for a game D:

  • @LootTheToot hacks for games? learn about readprocessmemory and writeprocessmemory

  • LOOP, HAHAHAHAHA SOUNDS LIKE FRUIT LOOPS.

  • so can you use a while loop for anything you can use a for loop for?

    im guessing yes, but theres probably setbacks to using specific ones...

    but i know little so if im rong tell me :P

  • wtf

  • why does "hey there bessie" execute 10 times? I don't get it. I understand that - whilst it's less than the value of 10 it will cout the "hey there bessie" but why does it use the 10 as an amount of times it is output?

  • @paulliptrott

    because basically while x is less than 10 it will run the bit of code and when it gets to 10 stop and skip the piece of code =] 

  • Hey thank you!! You make me like programming!!

    but do you think you can zoom in like in previous C++ vids??

  • @light0913 all these videos were made years ago..... dummy

  • 2:56 That's what she said?

    Love the vids! :)

  • hard to see

  • Cool tutorial. Very easy to understand.

    Hope you get better....whooping cough LOL!

  • bucky i need a magnifying glass man =)

    thanks for the videos

  • what's with you and cows?

  • yea go back to zoom its kind of hard to see

  • I prefer the old way of recording

  • nice

  • Hmm weird, seems like it only wants to count 299 numbers.

    If you choose above 299 it will count the number you set it to and subract 299 and start from there.

    Anyone know what thats about?

  • Every type such as int have a certain range of values of which they cannot go beyond without changing the type to one that can hold more bytes.

  • instead of:

    x = x+1;

    you can do:

    x++;

    saves you for some space, but the problem is that you can´t change that it will add 2 or something more (x = x+2;)

  • Or even

    x += 1;

  • int x = 1;

    while (x <= 80000000000000000)

    {

    cout << x << endl;

    x = x+1

    }

    LOL Let's see what happens

  • That's endless, ∞!

  • x++;

    shorter than

    x=x+1;

  • or ++x; or x += 1;

  • Looping cough or whooping cough?

    ... not funny eh? sorry

  • @jakubnage whooping cough is just a contraction of the variable "wh(ile l)ooping", and as we can see in the parentheses, there's almost an anagram of "ill" - indicating that repetitive use of C++ can sometimes be bad for you.

  • @Silhouette1984 *facepalm* xD

  • i love ur tutorials

  • lol ur using some other sort of way to screnen record now making it very very hard to see

  • nah, the overview's better now!

  • Why didn't the Loop start at 0 like it has before? Please reply.

  • because origionaly it was 1.. not randome

    ur welcome..

  • Because nothing + 1 is one, not 0...

  • Because last time x was initially equal to 0.

    Now x = 1.

  • You can use "x++" or "x+=1" in place of "x = x+1" as shown in the for loop tutorial

  • lol no u can't i tried it and it doesn't stop lmfao

  • lol no it isn't meant to stop the loop, it's just meant to reduce the amount of typing to get the same result

  • Hurr Durr, Wrestling?

  • we arn't her for wrestling u really need to check everything up lol i actually don't care what u thing so please don't answer and waiste my precious time

  • I like the new cam instead of close up

  • lol hah you forgot to say *irony*

  • let's see this baby in action, lol.

    excellent videos

  • great job inspite of illness, you rock man!

  • hey Thenewboston can you tell me how to open a standard headerfile like cmath or iostream?

    can i somehow open them and look what is inside a headerfile?

    pleaaaseee answer ...

  • find it in your compilers "include" folder

  • thank you for not stopping doing this!

  • go fuck yourself this guy is awesome

  • @p0w3r0r1 why u guys swearing everywhere and any time ? it is disgusting 

  • You are quite stupid for saying this when this guy is trying to help a lot of people

  • That's not nice to say! Unlike the other popular fags out there on the internet, this guy is actually working his best to help us learn. I mean, he doesn't have to and he could have simply left us helpless, but he didn't.

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