It's funny, because when I switch to a small sized file with less words, it works - the error message doesn't pop up. It happens when I use the bigger file with something on the order of 60000 words...
Type: Posts; User: Rizage
It's funny, because when I switch to a small sized file with less words, it works - the error message doesn't pop up. It happens when I use the bigger file with something on the order of 60000 words...
When I goto run the program, a windows error message pops up saying the following:
The instruction at "0x00404fc9" referenced memory at "0xcccccccccb." The memory could not be "read".
What...
As the subject states, I'm trying to read a string of text from file and store it into an array. The text file is structured as follows:
Albert
Bobby
Harry
Terl
...
I've tried much code,...
I don't follow... :(
I modified the code to look like this:
char buf[CAPACITY]; //global array
void Array :: put()
{
Array a;
I am trying to scan a list of words from a file. The list is as follows:
hello
this
is
a
list
Each subsequent word is on a new line. I'm trying to insert each word into an array, however,...
Thanks all, I got it working. :)
Perhaps I am missing something, but Sleep() doesn't work either. Here's what I got, but the compiler still complains.
bool Id::verify(int, int){
if(id % 2 == 0 && pin % 2...
Still no. I added #include<dos.h> to my program and the compiler still didn't like the sleep command.
Must be a different command in Microsoft Visual C++. I tried it and the compiler couldn't recognize the sleep command.
How can I best explain this... I'm am trying to code a prinout that will display periods "..." in succession in order to create a "information processing" type feel. I tried using the command:...
One more thing...
In the class declaration, I am having some trouble setting the information in the array. This works with the compiler, no complaint:
//Class Declaration
class TicTacToe { ...
Alright, still working on my program here. But I keep running into this error that says:
tictac.obj : error LNK2001: unresolved external symbol "public: __thiscall TicTacToe::TicTacToe(void)"...
Oh sorry, I didn't realize I left it out.
This is the function that has the problems:
TicTacToe::Status TicTacToe::gamestatus(void)
{
int a, c, r;
// check for a win on diagonals
if...
Ok, thanks for the confirmation on bool.
Another thing, I comliled some code that I wrote, and I get an error message saying: "subscript requires array or pointer type."
What does this mean?
I've just started my C++ class and I'm starting my first program: TicTacToe. My professor posted some hint code to help us out, and one thing he used was a function bool validmove(). I'm trying to...