Tree 0 Posted June 28, 2004 I would have done it tomorrow, but the forums were just so slow so I decided to do it today. remember, no useing the internet to find the answers, most would call that cheating Todays question is in the subject of C Programming! the question... What would the output be of #include<stdio.h> main() { char name[81]; puts("My name is tree, what is yours: "); gets(name); puts("Greetings, "); puts(name); } There is the question. I actually have the program executable if you want it. The prizes: write a program for you. Put you on my web site Make a RA2 or YR map eat banana pudding make you a a banner EDIT: wow, I must have stumped you people. Share this post Link to post
Saracen 16 Posted June 28, 2004 My god this is basic programming and now i wished i payed attention at school. If I remember somewhat and I'm probably wrong here is the output as follows? gets(preprogrammed name); puts("My name is , "); puts(preprogrammed name); There are more advanced executables where you can have full if ifragmented conversations with the program executable. Share this post Link to post
Tree 0 Posted June 28, 2004 no. If you saved this as getsname.exe, what would it look like if you ran: C:Documents and Settingsmeprograms>getsname.exe. Hint: #include<stdio.h> <--is not relevent to the output main() { char name[81]; puts("My name is tree, what is yours: "); puts is like printf gets(name); gets is like scanf puts("Greetings, "); puts(name); } example program: main() { printf("I change thee, speak!") } Please use this format output I charge thee, speak! Share this post Link to post
Saracen 16 Posted June 28, 2004 Well that's me out of the running, I know that's one course of action following on from what you wrote, but it's beyond me... I should have listened more in my programming classes :cry: Share this post Link to post
Phreakly 0 Posted June 28, 2004 Output: My name is tree, what is yours: (you input name) Greetings, (whatever you input) Share this post Link to post
Tree 0 Posted June 28, 2004 yes! Correct! That's basic programming. What do you want Phreakly? Share this post Link to post
Phreakly 0 Posted June 28, 2004 A YR map, something fun(big, with about 6 start points) but not too extravagant, and it should have lots of tech buildings(at least one of each repair and science). Share this post Link to post
Tree 0 Posted June 29, 2004 in the map, do you want your name as Phreakly, or something else. If you downloaded Het Midden v 1.6, is there anything you want to change, ad-wise? Share this post Link to post
Tree 0 Posted June 29, 2004 Ok, I should have it done sometime tomorrow. look for it. I'm doing a lot more with this one than Het Midden Share this post Link to post
Tree 0 Posted July 1, 2004 Technological Boom is uploaded to CNCNZ.com. Congrats Phreakly. The map will be available whenever someone on the CNCNZ staff puts it up. Share this post Link to post
J-Fire_Man 0 Posted July 2, 2004 Is there will be the third weekly contest? I will win that. Share this post Link to post
J-Fire_Man 0 Posted July 4, 2004 Why are you doing this? I'm confused, there is no benefit for you. Share this post Link to post
Tree 0 Posted July 4, 2004 so... it great fun, and it gives me a chance to do things I have never done successfully before. Like in Phreakly's map. Tons of stuff I have not ever done in a map before I did in there. its great. Share this post Link to post
Saracen 16 Posted July 6, 2004 Is there will be the third weekly contest? I will win that. You were saying lol :lol: :wink: Share this post Link to post