Thread: Prototypes

  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    4

    Prototypes

    Salutations everyone,

    I am having trouble with one of my problems for my computer science class, the teacher is giving me hints but alas I just cant get this problem.

    Here is what I am given:

    char three ( int, int, char , double);


    The problem is:

    Write a C++ statement that prints the next chacter returned by funtion three. (Use your own actual parameters.)


    I don't know why this problem is getting me, I have been stuck on it for two days. I have searched and searched, I think maybe it might have to do with getchar but I have not learned getchar without using cin with it. I just dont know

    Thankyou

  2. #2
    VA National Guard The Brain's Avatar
    Join Date
    May 2004
    Location
    Manassas, VA USA
    Posts
    903
    Write a C++ statement that prints the next chacter returned by funtion three. (Use your own actual parameters.)

    small possible example:

    cout << three(1,2,'A', 1.5);
    Last edited by The Brain; 03-18-2005 at 11:34 AM.
    • "Problem Solving C++, The Object of Programming" -Walter Savitch
    • "Data Structures and Other Objects using C++" -Walter Savitch
    • "Assembly Language for Intel-Based Computers" -Kip Irvine
    • "Programming Windows, 5th edition" -Charles Petzold
    • "Visual C++ MFC Programming by Example" -John E. Swanke
    • "Network Programming Windows" -Jones/Ohlund
    • "Sams Teach Yourself Game Programming in 24 Hours" -Michael Morrison
    • "Mathmatics for 3D Game Programming & Computer Graphics" -Eric Lengyel

  3. #3
    Registered User
    Join Date
    Feb 2005
    Posts
    4
    Thankyou so much, I didnt realize how simple it was :^)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Function prototypes - needed yes or no?
    By steve1_rm in forum C Programming
    Replies: 4
    Last Post: 02-20-2009, 08:39 AM
  2. Class prototypes
    By m00se123 in forum C++ Programming
    Replies: 4
    Last Post: 11-08-2002, 03:06 AM
  3. Is there a difference between these prototypes?
    By Captain Penguin in forum C++ Programming
    Replies: 5
    Last Post: 06-11-2002, 10:28 AM
  4. function prototypes and call statements.
    By mutu in forum C Programming
    Replies: 0
    Last Post: 04-05-2002, 12:39 AM
  5. Default values in function prototypes
    By wdicks in forum C Programming
    Replies: 13
    Last Post: 10-10-2001, 01:06 AM