writing help: help me with functions in c++! - Help.com

america
offline Verified (2 years, 9 months) Visit america's shoutbox
Houston, TX, US

help me with functions in c++!

!

can anyone write the smalest function program here?

This open post was written 2 years, 2 months ago | V/U/S: 131, 1, 2 | Edit Post | Leave a reply | Report Post


Reciprocity (0) Reciprocation Failure -- The poster has NOT helped anyone else yet!

Since writing this post america may have helped people, but has not within the last 4 days. america is a verified member, has been around for 2 years, 9 months and has 26 posts and 20 replies to their name.

Post Tags (3)

Replies (1)

Where were you?

Click and drag to move the map around. FAQ: How we place people on this map »
You can also watch events on Help.com as they happen
Mouse over the map for 2 seconds to see an expanded, interactive view

Saggezza offline Verified User (2 years, 4 months) Long Term User Shouts: 4 #
Vancouver, BC, CA | 2 years, 2 months ago (57 minutes after post)

Not sure what you mean by “function program”. But, here is a simple C function that takes in an Integer argument, adds 1 to it, and returns the result…

int AddOne(int nValue)
{
int nResult;

nResult = nValue + 1;
return nResult;
}

Quote this reply Report this reply to moderators
Help me with: Is lying necessary?

Invite Others to Help

A logged in and verified Help.com member has the ability to setup a Friends List and invite others to help with posts.