Search:

Type: Posts; User: Bradley Buck

Search: Search took 0.01 seconds.

  1. Replies
    24
    Views
    7,879

    #include #include ...

    #include <stdio.h>
    #include <stdlib.h>
    #include <conio.h>
    #include <string.h>
    #include <ctype.h>
    #include <time.h>
    #include <math.h>

    #define MAX 5
    #define MAX2 10
  2. Replies
    24
    Views
    7,879

    This is what I have now: for(incr=MAX2...

    This is what I have now:



    for(incr=MAX2 -1;incr >set_pt;incr--) //this for loop will make room in the array for the new data insertion
    {
    player[incr] = player[incr-1];
    ...
  3. Replies
    24
    Views
    7,879

    If someone knows a good tutorial on copying into...

    If someone knows a good tutorial on copying into arrays that might help.
  4. Replies
    24
    Views
    7,879

    Well, I generally try to read his code first and...

    Well, I generally try to read his code first and then write my own based on it, but I was in a hurry this time so I though I could just copy it in and figure it out as I went along, but I don't think...
  5. Replies
    24
    Views
    7,879

    The professor provides us with examples which we...

    The professor provides us with examples which we can incorporate into our projects. We're supposed to incorporate the code and then figure out how it works.
  6. Replies
    24
    Views
    7,879

    I can get the score into the array, but my...

    I can get the score into the array, but my problem is that I can't get a player name associated with the score.
  7. Replies
    24
    Views
    7,879

    I need to write the new high scores to the array...

    I need to write the new high scores to the array after it is incremented and I'm not sure how to do it. I'm pretty new to this stuff.
  8. Replies
    24
    Views
    7,879

    when I put for(;set_pt < MAX2;Gnd_it =...

    when I put for(;set_pt < MAX2;Gnd_it = player[set_pt].score); it compiles, but only saves one high score. If I put for(set_pt=0;set_pt < MAX2;Gnd_it = player[set_pt].score); it refuses to go back...
  9. Replies
    24
    Views
    7,879

    Oh right. Sorry. So if I want to write an...

    Oh right. Sorry. So if I want to write an integer into an array, what would I use?
  10. Replies
    24
    Views
    7,879

    Here's what I added to setpt: for(set_pt=0;set_pt...

    Here's what I added to setpt: for(set_pt=0;set_pt < MAX2;strcpy(Hld_it, top_scores);
    it gave me this error: Error 2 error C2664: 'strcpy' : cannot convert parameter 1 from 'int' to 'char *'
  11. Replies
    24
    Views
    7,879

    How do I write the new data to the array? I...

    How do I write the new data to the array? I tried using strcpy but it didn't work.
  12. Replies
    24
    Views
    7,879

    High Low Game with High Scores

    Hi. I'm hoping someone can help me with a project I've been working on. I need to create a game a user enters a name though a menu option and then guesses a number, then the lowest number of tries...
Results 1 to 12 of 12