Search:

Type: Posts; User: lilbo4231

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. I was trying to do all that stuff, and i did not...

    I was trying to do all that stuff, and i did not find append integer......
  2. How do i change this code to take elements from file and save in an integer vector?

    How can i write code to take integers from a text file and place them into a vector that holds integers?


    std::vector<std::string> elementVector;
    std::ifstream in("filename.dat");
    ...
  3. what does the a do?

    what does the a do?
  4. damn well now i am all confused.

    damn well now i am all confused.
  5. int main(void) { pokerMachine poker_machine;...

    int main(void)
    {
    pokerMachine poker_machine;
    poker_machine.run_machine(Hand &hand, Deck &deck , Card &card, bet());

    return 0;
    }


    Error 23 error C2065: 'card' : undeclared...
  6. Elysia: That sound very familiar! but when i try...

    Elysia: That sound very familiar! but when i try it i still get the same errors :/ is there anyway you could show me?

    Tabstop: Ya i meant call it not declare it, do u have any advice?
  7. How do i put functions within a class to a main?

    This is the function i want to call in my main.



    void run_machine(Hand &hand, Deck &deck , Card &card, int bet(void))
    {
    Deck *test = new Deck();
    Hand *testH = new Hand();
    cout<<"HELLO...
  8. Replies
    1
    Views
    1,471

    How do i make a class to deal a hand????

    These are my other classes:



    class Deck
    {

    public:

    // CONSTRUCTION
  9. I am stuck with 2 errors.....i have been trying for really long time to fix them

    #ifndef __DECK_H__
    #define __DECK_H__


    //=============================================================================
    //
    // File : Deck.h...
  10. Replies
    1
    Views
    888

    class Card help

    I am trying to make a class called Card with contains the face and suit and can read each card. This is what i have so far but i am terrible with classes and am not sure
    exactly what to do.

    ...
  11. can you give me an example?

    can you give me an example?
  12. Well i know to write the test...

    Well i know to write the test functions........but i don't know to to declare Rcb *B and ELEMENT_TYPE x so that they will work in the test functions. if i know how to do that then i will be golden.
  13. Ok so i have two different projects in my...

    Ok so i have two different projects in my solution. The first project contains the actual functions to make a circular buffer and in the second project i need to have test functions that make sure...
  14. How do i declare my struct for test functions?

    This is just a header file with my typedefs declared. I need to make test functions for every one of these functions below. How would i declare the parameters in the functions so that they can be...
  15. Replies
    21
    Views
    4,547

    thanks guys so much for the help, why is it != 0...

    thanks guys so much for the help, why is it != 0 commontater?
  16. Replies
    21
    Views
    4,547

    thats what its supposed to be i believe

    thats what its supposed to be i believe
  17. Replies
    21
    Views
    4,547

    and ya its because of the ASCII value

    and ya its because of the ASCII value
  18. Replies
    21
    Views
    4,547

    char* morse_to_letter(char *morseTester2, char...

    char* morse_to_letter(char *morseTester2, char morse_strings[91][6])
    {
    int i = 0, count = 0;
    char morse[500 + 1];

    while (strcmp(morse, morse_strings[i]) == 0)
    {
    return i;
    count++;
    }
  19. Replies
    21
    Views
    4,547

    Thanks, So would i use a while loop to do that....

    Thanks, So would i use a while loop to do that. And i am confused on like where to start and what variables to compare?
  20. Replies
    21
    Views
    4,547

    Morse Code(Going the other way)

    I have wrote the programming code that converts english to morse, but how do i go back the other way. This function does not read or write to files.


    void morse_code_letters(char...
  21. Replies
    25
    Views
    3,582

    I dont understand a piece of this code

    void morse_code_letters(char morse_strings[91][6])
    {
    //morse code letters using string copy
    strcpy (morse_strings['A'], ".-");
    strcpy (morse_strings['B'], "-...");
    strcpy...
  22. nope your advice isnt correct?

    nope your advice isnt correct?
  23. ya ha do you know whats wrong? lol

    ya ha do you know whats wrong? lol
  24. so i can make the function check if the player...

    so i can make the function check if the player has 4 in a row or the computer has 4 in a row. I put a 0 in for player it will mean that i am checking if the user has 4 in a row and is to check for...
  25. sorry i dont understand what you mean. can u...

    sorry i dont understand what you mean. can u explain it a little more?
Results 1 to 25 of 33
Page 1 of 2 1 2