I was trying to do all that stuff, and i did not find append integer......
Type: Posts; User: lilbo4231
I was trying to do all that stuff, and i did not find append integer......
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");
...
what does the a do?
damn well now i am all confused.
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...
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?
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...
These are my other classes:
class Deck
{
public:
// CONSTRUCTION
#ifndef __DECK_H__
#define __DECK_H__
//=============================================================================
//
// File : Deck.h...
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.
...
can you give me an example?
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.
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...
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...
thanks guys so much for the help, why is it != 0 commontater?
thats what its supposed to be i believe
and ya its because of the ASCII value
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++;
}
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?
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...
void morse_code_letters(char morse_strings[91][6])
{
//morse code letters using string copy
strcpy (morse_strings['A'], ".-");
strcpy (morse_strings['B'], "-...");
strcpy...
nope your advice isnt correct?
ya ha do you know whats wrong? lol
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...
sorry i dont understand what you mean. can u explain it a little more?