Here's a problem we were assigned for homework. It deals with functions, and I'm not entirely sure how they work. The problem is :

1. Write a program that calls the following function.

/////////////////////////////////////////////////////////////////////
// function: print_splash
//
// formal parameters: none
//
// preconditions: none
//
// return value: void
//
// postconditions: prints polygon program splash screen on user's // display.
/////////////////////////////////////////////////////////////////////
void print_splash();

Please help.

Recommended Answers

All 2 Replies

I'm not really sure what you are asking. Do you just want a program that calls that function?

#include <iostream>
using namespace std;

int main()
{
  print_splash();

  return 0;
}

Nevermind, I talked to my instructor and there is a function we are supposed to upload from his computer. Thanks anyway.

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.