C Programming on the Mac L19 - Intro to Input

preview_player
Показать описание
This tutorial is an introduction to input in C. More tutorials for input on the way.
Рекомендации по теме
Комментарии
Автор

That's great! It's a great feeling to code something together and then have it work as you intended in the end. Congrats.

AppleProgramming
Автор

I've been watching these, waiting for how to input. Awesome, keep it up.

nintandrew
Автор

using the knowledge from these last 19 tutorials, I managed to create a rock, paper, scissors game! took me a good part of the day to play around with everything and the score tallying took me a while to get but now it works. Its pretty primitive and not really that fun but the fact that I coded it myself is awesome! Thanks a bunch for these tutorials :D (why did I not find these earlier! ;) )

etguitar
Автор

@mrbackhand1234 That is explained in a later tutorial but there is a maximum number that an int can hold.

AppleProgramming
Автор

Hi,

I ran the same program which you have shown the in the tutorial. I am running xcode version 4.6.3.
How can i give the input in the console? i tried typing value in the window but its not showing anything. do i need to enable anything?
but ther

pravesh
Автор

Seems to me the variable of the address does not need the pointer to function, assuming pointer is denoted "*".

scammersnightmare
Автор

@kimupolyglotte Get to the fgets tutorial and you will understand how to input C strings

AppleProgramming
Автор

Why do you have to use a pointer, is there somethings stopping scanf() from storing the value in the variable directly?

ericschatz
Автор

Xcode 9 does not allow input in the console. Is there something we need to do?

edit: I've figured it out. The best way to go on from here is to create a project for MacOS for Terminal. Then when running the project, click on the arrow on the bottom that shows the console. This console will allow input.

daniloobraga