Added: 2 years ago
From: xoaxdotnet
Views: 25,354
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (25)

Sign In or Sign Up now to post a comment!
  • u teach very well

    

  • Just a question, What is the meaning of the ten in the brackets next to your char variable name. PLZ SOME ONE HELP ME!!!! PLZ REPLY!

  • @Decepticons211 Just like any other array, it means that the value you enter for the char array can only be 10 characters long. This includes the terminating null character /0 so in reality the string you want in your char array can only be n-1 characters long, where n is the array size.

  • @Decepticons211 is the number of characters u will be able to put in the array

  • Why??? For what reason you use char instead std::string???

  • seriously I love you

  • tnx for the tut. again

  • just a questinon, what happen if the name i enter is greater then 10? ummmm :-|

  • @matrixITALIA error

  • @matrixITALIA Seriously? Did you not learn?

    int stringLength = strlen(myString);

    // Add one for null-terminator.

    char* fullString = new char [stringLength + 1];

    That should give the result you're looking for.

  • Is there a way to make a game that's not in the cmd window?

  • Mine doesn't give me an error...what gives? If I put word[3] and put in 'hello' it still outputs the entire 'hello'. No error...why?

  • Did he really say. "CHAR" and not car? as in character?

  • @TheRaelykSky char

  • @1rescen1 What is the point in saying CHar. All of my instructors and professors have always said char, 'Car'. Because that is how it is pronounced in the word Character.

  • more please

  • more unmodern...

  • I wonder if you do more than this tutorial, like a school or book, because u are good, good

  • Great tutorial set, 5/5!

  • please, make an tutorials about basic socket programming for windows!

    your tutorials are great!!!

  • but not winsock please :P

  • ahhhhhhmazing! make more!

    Wow nvm, you already made ALOT! lol

    ok still make more

    5/5

  • Thank you, thank you, thank you.

    +5

  • Good job! 5/5!

  • 5 stars.

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