write the header for a function named school which is public member of the class course, returns a string data type and includes 2 integer papameters named mark and grade..

i really don't know how to do that . any 1 please help .. thank you !!

Go back to your chapter on functions, then answer these questions:

How do you write the definition of a function? The header is the first line of the definition.

int myFunc(type myParam) {  //function header

  /* ... function body ... */

  return someReturn         //return statement
}                           //end of function

How do you create a public member of a class?

class demoClass {
 private:
   //private members here
 protected:
   //protected members here
 public:
   //public members here
];

Now, combine the 2.

try to write down some code then ask for help

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.