11: Get User Input In C# | Preparing You For Project | C# Tutorial For Beginners | C Sharp Tutorial

  Рет қаралды 106,296

Dani Krossing

Dani Krossing

Күн бұрын

Пікірлер: 63
@Dani_Krossing
@Dani_Krossing 5 жыл бұрын
Hi everyone! Hope you enjoy this video :) Is it just me or does the facecam "skip/jump" from time to time in this video? The original video I uploaded looks normal but the KZbin version seem to act up.
@richarddoci
@richarddoci 5 жыл бұрын
Yeah, there was a little glitch there, but the content it's awesome as usual! \o
@howcanidoit
@howcanidoit 3 жыл бұрын
Switching from Java easily with your videos for new job assignment! Pure gold, don't know what else to say. :D
@iakovspirin2896
@iakovspirin2896 4 жыл бұрын
GREAT WORK, one of the best explanations i have seen so far...
@gladstonross12
@gladstonross12 5 жыл бұрын
even though i am not focusing on c# at the moment . i am still passing through to show some love. hope to see an advance js course from you soon
@chachu2955
@chachu2955 5 жыл бұрын
Please continue the tutorial of C#
@samdeur
@samdeur 2 жыл бұрын
Thanks nice vid was searching for a good Parse and reading user input. Very nice work sir.. Greetings from The Netherlands.
@CapDrew
@CapDrew 4 жыл бұрын
I’m working on homework with slightly different rules but this helped thanks!
@Tukik11
@Tukik11 2 жыл бұрын
This was helpful. Thank you :)
@creayus6773
@creayus6773 5 жыл бұрын
I hope that you also teach java. your vids were helpful. looking forward to your future tutorials :)
@lylewyant3356
@lylewyant3356 10 ай бұрын
I don't know if it was Pascal, but I remember being able to define my variables as a specific type and enter data with out converting.
@aliexxxxx-r9j
@aliexxxxx-r9j Жыл бұрын
Thank you so much!
@danielramos3586
@danielramos3586 2 жыл бұрын
Hey! Great vídeo! About reading the user input, if I have 2 types of data in the same line, how should I separate it? For example, I have a line like this "name age" being the name a string and the age an int, how can I separate them and store them both in different variables?
@NotTheHeroStudios
@NotTheHeroStudios 2 жыл бұрын
You use /n after the first part. So it's console.writeline.(name + age) It would be written name /n + age) Or consolelog.writeline("name /n") consolelog.writeline("age")
@NotTheHeroStudios
@NotTheHeroStudios 2 жыл бұрын
Hope that helps, I kinda short handed the code in general. But main thing is /n
@nuehanfdo8526
@nuehanfdo8526 4 жыл бұрын
watching all of em.. thanks dude
@code2990
@code2990 4 жыл бұрын
In case you did not know, the reason why it is int32 and int64 is because there are 32 and 64 bit systems, a 32 bit system can only hold so much data whist a 64 bit system can hold more, that is why, if you have a older phone (e.g iPhone 5) and you do 654765+8695665 you will get a answer with a E. E stands for exponent, AKA a extra data that the processes can not process.
@gleefulporcupine4420
@gleefulporcupine4420 3 жыл бұрын
Thanks for this, I was confused
@soumaiamamo3329
@soumaiamamo3329 9 ай бұрын
Thank you !
@jean-michel.houbre
@jean-michel.houbre 3 жыл бұрын
No need for Int32, int.Parse works fine (int is an alias for Int32)
@iRMistzYT
@iRMistzYT 5 жыл бұрын
Do you have any tutorials on how to make a website with PHP using the MVC format?
@tapiafrancois5866
@tapiafrancois5866 5 жыл бұрын
hey! You know, I commonly see your videos and I have a doubt if you are from Silicon Valley. I have always tended that doubt. greetings and you make excellent video tutorials
@waqasmazhar4682
@waqasmazhar4682 4 жыл бұрын
Nicely done great explanation keep it up
@gonzalocastilla4077
@gonzalocastilla4077 3 жыл бұрын
can we declare the "age" variable as Int in line 10 and use the number right away?
@seyaro2180
@seyaro2180 2 жыл бұрын
no you can't, cause the user has to write out a string and *then* the program turns it into an integer. hope that helped!
@gauravkharwal6174
@gauravkharwal6174 5 жыл бұрын
sir , you teach great i have no money to pay can i pay when i start earning
@xempes
@xempes 5 жыл бұрын
isn't it better to do the parse in a try catch statement so when a user does do a string as an input it won't crash.
@Dani_Krossing
@Dani_Krossing 5 жыл бұрын
Yes it is recommended you always use "try/catch" for parsing. However this was a side episode just to go over some quick "skills" needed to complete the next exercise. There will be a later episode where I go into parsing methods in more detail, since this video only covered the bare minimum of converting strings to ints.
@alexplaytop
@alexplaytop Жыл бұрын
Why my program after input asks me input again My Name? It's simple ReadLine program, but after I input, nothing happens, just another empty line for inputting text???
@ryuhayabusa2458
@ryuhayabusa2458 5 жыл бұрын
isnt it easier to use : lets say int num = int.parse(console.readline()); ?
@sanskartayal6018
@sanskartayal6018 4 жыл бұрын
if there is no user data and we've converted string into float, what will be the condition string.Empty is not working?
@rich143hkanda
@rich143hkanda 4 жыл бұрын
great explanation than @school
@tambovskya
@tambovskya 5 жыл бұрын
Yo you make some pretty cool videos brah , A++
@metox5812
@metox5812 2 жыл бұрын
What is the difference between int32.Parse() and TryParse?
@Dani_Krossing
@Dani_Krossing 2 жыл бұрын
The difference is in what is returned if the parsing fails. Parse will return an exception, and TryParse will return a boolean.
@CompaniesExperience
@CompaniesExperience Жыл бұрын
for example String x = "1234">>> here we use Parse , String y = "ha1234" >> here we use TryParse.
@Andrecopola
@Andrecopola 3 жыл бұрын
Very good! But why keep saing "going"?
@MichaelAlmarioAlmarioMichaelAl
@MichaelAlmarioAlmarioMichaelAl Жыл бұрын
how is that when you run the code, the output display shows in the cmd?
@Dani_Krossing
@Dani_Krossing Жыл бұрын
Because we are building a basic Console APP in this course, which is exactly what CMD is as well. That’s why they look so similar. 🙂
@MrBorgal
@MrBorgal 2 жыл бұрын
Guys how to do the same thing but conversion strin to double or float ????
@rulfos624
@rulfos624 4 жыл бұрын
string can be text right ?
@SuryaKarna1999
@SuryaKarna1999 2 жыл бұрын
how to get multiple input string from user sir
@anikhasan1874
@anikhasan1874 5 жыл бұрын
Please make a video about php blog + admin tutorial
@eyshawty6126
@eyshawty6126 5 жыл бұрын
Er du Dansker?
@AncalagonGames
@AncalagonGames 5 жыл бұрын
what is the difference between parse and convert?
@jdgoldvox
@jdgoldvox 4 жыл бұрын
did you ever find out?
@zacharyhouston2821
@zacharyhouston2821 3 жыл бұрын
Curious too. I typically use Convert
@BeanFeed
@BeanFeed 3 жыл бұрын
When I run it and type in the number it instantly closes the console
@hamzarashid7579
@hamzarashid7579 3 жыл бұрын
Type CW and press tab twice and it automatically creates "Console.WriteLine( );
@seanginzelltagnines4304
@seanginzelltagnines4304 3 жыл бұрын
Thanks!!!
@fogy5909
@fogy5909 2 жыл бұрын
int32 = num2 //is it possible
@nwabisaqutu8295
@nwabisaqutu8295 Жыл бұрын
Where is 32 coming from?
@dclconnect2377
@dclconnect2377 4 жыл бұрын
pls can you do form application ?
@cleancodez
@cleancodez 5 жыл бұрын
Am first like it . How are u Daniel.
@deleteduser7669
@deleteduser7669 3 жыл бұрын
Your the first comment
@appleoverdrive7612
@appleoverdrive7612 3 жыл бұрын
How do I run it?
@Dani_Krossing
@Dani_Krossing 3 жыл бұрын
I show it in one of the first lessons :)
@appleoverdrive7612
@appleoverdrive7612 3 жыл бұрын
@@Dani_Krossing Thank you
@Logangil515
@Logangil515 3 жыл бұрын
i ran that code at 4:49 and got "The answer was 2!" WTF how
@Logangil515
@Logangil515 3 жыл бұрын
nevermind im an idiot
@ilkinbeshirzade1693
@ilkinbeshirzade1693 3 жыл бұрын
8:56
@hindizz1994
@hindizz1994 3 жыл бұрын
am lost here
SISTER EXPOSED MY MAGIC @Whoispelagheya
00:45
MasomkaMagic
Рет қаралды 15 МЛН
Seja Gentil com os Pequenos Animais 😿
00:20
Los Wagners
Рет қаралды 51 МЛН
兔子姐姐最终逃走了吗?#小丑#兔子警官#家庭
00:58
小蚂蚁和小宇宙
Рет қаралды 10 МЛН
Kluster Duo #настольныеигры #boardgames #игры #games #настолки #настольные_игры
00:47
Learn Any Programming Language In 3 Hours!
22:37
Code With Huw
Рет қаралды 478 М.
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 409 М.
5 JavaScript Concepts You HAVE TO KNOW
9:38
James Q Quick
Рет қаралды 1,4 МЛН
What is Input/Output in C# - Programming tutorial for beginners
11:18
Learn C# BASICS in 10 MINUTES!
10:55
Code Monkey
Рет қаралды 797 М.
SISTER EXPOSED MY MAGIC @Whoispelagheya
00:45
MasomkaMagic
Рет қаралды 15 МЛН