Search:

Type: Posts; User: SlayerBlade

Search: Search took 0.01 seconds.

  1. Replies
    14
    Views
    6,212

    Thanks for the help guys! I now have a working...

    Thanks for the help guys! I now have a working iteration of the checkwin code, however I was just wondering if there was any way to make my comp smarter. Check the original post. I attempted using a...
  2. Replies
    14
    Views
    6,212

    Tic Tac Toe... so close...

    Hey guys, me again. Sorry to pester you so much, but once again I am stuck on an assignment. I'm supposed to create a game of tic tac toe that engages the user with a simple AI from the computer....
  3. Replies
    5
    Views
    5,607

    Ok, well I got the entire program working except...

    Ok, well I got the entire program working except for the heart of it, the recurtsion. Unfortunately, I'm not looking for a floodfill, but rather, the function should fill outwards from a given point....
  4. Replies
    8
    Views
    1,229

    charge=2+(0.5*(houre-3)) return charge That...

    charge=2+(0.5*(houre-3))
    return charge


    That code would return the fee for anything more than 24 hours. You'll probably want to include some sort of error message if hours is more than 24.
  5. Replies
    8
    Views
    1,229

    Please be more specific. What do you want this...

    Please be more specific. What do you want this code to do? What exactly is your problem?
  6. Replies
    3
    Views
    975

    Perhaps you could initialize the entire array...

    Perhaps you could initialize the entire array with a junk character such as *, and once a * is hit while printing a string, you could tell it to break. For example:


    for(i = 0; i < 500; i++)
    {...
  7. Replies
    5
    Views
    5,607

    Well, I took a full fledged try at it and this is...

    Well, I took a full fledged try at it and this is what I managed to come up with



    /*
    *File:fill.c
    *The program gets the perimeter of a shape from the user, and then fills in that shape
    */
    ...
  8. Replies
    5
    Views
    5,607

    Filling a shape

    Hi guys, once more I am completely stumped on a C problem. The goal is to read in the perimeter of a shape that will be marked off by the user, then read in a point inside the shape that is given by...
  9. Replies
    4
    Views
    5,572

    Thanks for the help, but there seems to be...

    Thanks for the help, but there seems to be something wrong with my actual function to check for duplicates. Here's what I'm using, please tell me if you see the flaw, and thanks again.



    int...
  10. Replies
    4
    Views
    5,572

    Removing Duplicates from an Array

    Hi, I have a homework assignment for my programming course that I'm having a lot of trouble with. The object is to take an array, and remove all of the duplicate numbers, and create another array...
  11. Replies
    1
    Views
    2,630

    Finding a 'Proper Subset'

    Hi, I've been having trouble getting a piece of code I've made to find whether a set is a proper subset of another. The code I'm using is the following:


    bool contain(bool arrayA[letter],bool...
  12. Replies
    4
    Views
    1,978

    Yeah, I understand that the array starts at one,...

    Yeah, I understand that the array starts at one, but I only want to display the 3x3 set of values that is in the center of the array. The other two rows are only present to make it easier for me to...
  13. Replies
    4
    Views
    1,978

    Displaying A Multidimensional Array

    Hi guys, I just had a simple question, one of my homework assignments was to write a multidimensional array that displays the elements of that array that are larger than all their neighbors.
    The...
  14. Replies
    2
    Views
    7,793

    Perfect Numbers C Program

    Hi, I was having a bit of trouble with a program that I was supposed to write for a homework assignment. The program's purpose is to find all of the perfect numbers between 1 and 100 (For those who...
Results 1 to 14 of 14