CFanatic

Go Back   CFanatic > Advance Programming > OpenGL Programming

Join CFanatic Forum Now

passing arguments to functions using pointers topic posted under OpenGL Programming which is a part of Advance Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 04-01-2011, 05:17 AM
Junior Member
 
Join Date: Mar 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Dixiie is on a distinguished road
| More
passing arguments to functions using pointers

This is an assignment that was given to me as follows;

Develop a program that inputs a set of test scores and displays the following:
• the set of scores
• average score
The function ‘calculate_total’ calculates the total score (so far) by using the score entered. Hint: The
function ‘calculate_total’ calculates the total using a pointer. In other words, a pointer argument (which is
a pointer to score) is passed to this function in order for the function to perform its task.

I need help on how to use functions and pointers in this problem....
Your assistance would be greatly appreciated...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
help with simple functions buzz271 C Programming 0 09-05-2010 09:47 PM
Functions passing to functions hausburn C++ Programming 0 09-05-2010 05:03 PM
how do you put struct pointers into functions? SORAKH2756 C Programming 0 09-03-2010 07:52 PM
Variable arguments to lookup table function pointers ftl25 C++ Programming 0 08-28-2010 03:11 AM
Virtual Functions and pointers Spogliani C++ Programming 1 07-15-2008 01:58 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 03:19 PM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board