C Programming on the Mac L20 - Text Input

preview_player
Показать описание
In this tutorial I introduce taking in text from the console and storing it in the program.
Рекомендации по теме
Комментарии
Автор

@TheBogangle Cocoa is more for Objective-C tutorials (and Mac OS tutorials that will happen later). It's basically what you use when you program mac apps.

AppleProgramming
Автор

so what if i want to have a printf statement but between the statement i have an array like
printf("hello" USERNAME "how are you?");
and the out put looks like ("hello jake how are you?")

rkak
Автор

So how could I use this to create a text based adventure game like zork.

RedofYellow
Автор

good work, but when you type your name, and print one letter "c" you said second element many times, really is third element in the array not second, i hope you correct it

Kosarp
Автор

you are a long way from that my friend

b
Автор

You should just be able to do printf("Hello %s how are you?", username);

AppleProgramming
welcome to shbcf.ru