Search:

Type: Posts; User: BakAttack

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    772

    My String Class

    Ok, ive been fooling around with making my own string class. Basically, overloading << for cout is pretty easy but trying to overload the istream >> has not been successful. Any help would be nice,...
  2. Replies
    6
    Views
    2,687

    Binary Tree Sort

    Ok basically i have this:




    struct Node
    {
    int value;
    Node *left;
    Node *right;
  3. Replies
    6
    Views
    1,523

    I had to do this once, and my solution probably...

    I had to do this once, and my solution probably isnt the best one but here:

    1. Change the variable to a string by itoa(int, char *string, base) where base 10 is what we use normally.


    2.change...
  4. Replies
    1
    Views
    1,964

    Chess CPU Algorithm

    I have just learn't recursive functions, and im very ambitious. Ive been making a Chess Computer Game and so far it works pretty good for 1 vs 1 (not done yet but there are no real obsticals). The...
  5. Thread: loop problem

    by BakAttack
    Replies
    18
    Views
    2,107

    I dont know but this sounds awfully similar to...

    I dont know but this sounds awfully similar to the problem with cin.ignore. Try putting a cin.ignore(257, '\n'); before you ask for a command. I was taught to use cin.get so i dunno but that was...
  6. Replies
    5
    Views
    936

    wow i didnt notice he already said that, my bad...

    wow i didnt notice he already said that, my bad Eibro
  7. Replies
    5
    Views
    936

    Ok im pretty sure that strcmp returns either...

    Ok im pretty sure that strcmp returns either 0(true) or 1(false) so try this instead




    if (strcmp(name, "Dean") == 0)
    ...
  8. Replies
    7
    Views
    2,217

    Really? Wow, thanks alot is it at borland.com or...

    Really? Wow, thanks alot is it at borland.com or something, ive used this old software because its what we use in class. I usually just play around because the class is WAY too easy so when it comes...
  9. Replies
    7
    Views
    2,217

    floats

    Ok I use an oldschool compiler (borland turbo c++ from 19-digity-2) but here is my solution. also i dont know what alpha used (in terms of std - could some1 explain what it is thx) so here:



    ...
  10. Replies
    19
    Views
    2,131

    Hello World

    #include <iostream.h> // for input-output

    int main()
    {
    cout << "\nHello World!" << endl;


    return 0;
    }
  11. Replies
    6
    Views
    919

    modulus % operator does not work with double,...

    modulus % operator does not work with double, unless im mistaken (could be).
  12. Replies
    6
    Views
    919

    Wow, Ok thanks. I'm going to go try to implement...

    Wow, Ok thanks. I'm going to go try to implement some of that stuff. BTW for the Const int MAX = 20; i know how to do that but i think a counter would be better. Also I'm having a problem with big...
  13. Music in Interactive programs and delay();

    I have been thinking about making an interactive program(game most likely) that has some composed music in the background. I don't know how i could do this without creating my own kind of time...
  14. Replies
    6
    Views
    919

    New-Coder needing suggestions

    Ok, Im not going to pretend to know I know that much C++ compared to most things I have read on this site. I am taking a highschool class in c++ and basically I thought it was way too simple and I...
Results 1 to 14 of 14