Like Tree1Likes

C++ Video Game Player Program

This is a discussion on C++ Video Game Player Program within the C++ Programming forums, part of the General Programming Boards category; What is not working? Furthermore, what steps did you take to make it not working?...

  1. #31
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,420
    What is not working? Furthermore, what steps did you take to make it not working?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  2. #32
    Registered User
    Join Date
    Sep 2011
    Posts
    39
    Quote Originally Posted by Elysia View Post
    What is not working? Furthermore, what steps did you take to make it not working?
    what is not working for me is the BelowAverage function. All of the rest of my code is printing out correctly but below average is not identifying whose scores are less then the average score calculated in Calculateaverage function and then posting those names in below average.

  3. #33
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,866
    Go back to my post #24. When you were making your changes you dropped saving the return value of your calculate average function. So when you pass averageScore to your print below average function it is still 0.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  4. #34
    Registered User
    Join Date
    Sep 2011
    Posts
    39
    Quote Originally Posted by AndrewHunter View Post
    Go back to my post #24. When you were making your changes you dropped saving the return value of your calculate average function. So when you pass averageScore to your print below average function it is still 0.
    I got it now thank you so much for the tips. I just entered
    averageScore = CalculateAverageScore(scoreAr, numPlayers);

    into my belowAverageScore function so that it recognized that the value of average score was the return vale of my CalculateAverageScore function.

Page 3 of 3 FirstFirst 123
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Video player API etc.
    By g4j31a5 in forum C++ Programming
    Replies: 7
    Last Post: 09-19-2008, 11:53 AM
  2. Replies: 9
    Last Post: 11-11-2007, 01:31 PM
  3. Is it a watch? Is it an MP3 player? Is it a video player?
    By twomers in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 08-15-2006, 10:54 PM
  4. linux video player
    By colmd in forum Linux Programming
    Replies: 2
    Last Post: 06-28-2004, 04:27 PM
  5. Do most video game programmers program with C?
    By Tride in forum Game Programming
    Replies: 4
    Last Post: 05-12-2003, 05:59 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21