Jump to content
Sign in to follow this  
Tree

2nd Weekly Contest

Recommended Posts

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

My god this is basic programming and now i wished i payed attention at school. :D

 

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

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

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

Output:

My name is tree, what is yours:

(you input name)

Greetings,

(whatever you input)

Share this post


Link to post

yes! Correct! That's basic programming. What do you want Phreakly?

Share this post


Link to post

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

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

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

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

Is there will be the third weekly contest? I will win that.

Share this post


Link to post

yes, every week.

Share this post


Link to post

Why are you doing this? I'm confused, there is no benefit for you.

Share this post


Link to post

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
Is there will be the third weekly contest? I will win that.

 

You were saying lol :lol: :wink:

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×