#Homework help - C programming - Control flow - Functions

39 messages ยท Page 1 of 1 (latest)

regal violetBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

tropic drift
#

for context here's the question

#

and here is the code i attempted

#

i don't think that's correct in the slightest or even if it makes any sense but thats why i'm here

#

while i'm at it i don't understand the other two either i am lostttt pleasee if anyone can help me i would so appreciate it

tropic drift
#

it doesn't work sadly

vestal pike
#

what doesn't work about it

tropic drift
#

this is what i'm getting

#

it's called labsixone.c

vestal pike
#

alright

#

you have provided a prototype declaration for addition(int, int), and you call the function, but you never actually provided a definition for what the function does

tropic drift
#

where did i call the function? and how do you do that?

vestal pike
tropic drift
#

i'm a huge beginner so when i write code i often don't even know what the pieces of the code are called i just kind of copy from my notes and hope for the best

vestal pike
#

it's very important to not guess at C++ syntax ๐Ÿ˜„

tropic drift
#

i know ๐Ÿ˜ž but it's so tough to spend hours and hours trying to understand with 4 other college classes to worry about u feel. but thanks i'll read that article

regal violetBOT
#

@tropic drift Has your question been resolved? If so, run !solved :)

tropic drift
#

oh i'm replying to a bot

#

brotherr i'm dumb

vestal pike
#

what can I help with

tropic drift
vestal pike
#

I think #3 probably wants you to take user input

tropic drift
#

like prinf and scanf? but still i really don't understand how to apply them

vestal pike
#

cin and cout probably

tropic drift
#

i used cout there

vestal pike
#

I have no idea what #3 wants you to do because the screenshot you sent doesn't really say. But I'm 99% sure they want you to not just hard code the converstaion

#

For example, let the user input their name

tropic drift
#

huh. wild. i don't blame you for not understanding the directions either bc my professor can be very vague

regal violetBOT
#

This question is being automatically marked as stale.
If your question has been answered, run !solved.
If your question is not answered feel free to bump the post or re-ask.
Take a look at !howto ask for tips on improving your question.

tropic drift
#

!solved

regal violetBOT
#

Thank you and let us know if you have any more questions!

This thread is now set to auto-hide after an hour of inactivity

#

@tropic drift

Please Do Not Delete Posts!

Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.

tropic drift
#

!solved