OK, finally, that seems to be working. Now, do you think you could help me figure out why my work function if statement is not working correctly? Here is the code:
void CRobot::work()
{
if...
Type: Posts; User: golsoje
OK, finally, that seems to be working. Now, do you think you could help me figure out why my work function if statement is not working correctly? Here is the code:
void CRobot::work()
{
if...
Here is my exact code for this test file:
# include <dos.h>
# include <iostream>
using namespace std;
int main()
{
cout << "test";
sleep(10);
I created a new file to test that function, I still get the error that sleep is an undeclared identifier. I can't include the dos header file just as <dos> it has to be <dos.h> or it won't find it,...
I made sure that all instances of the function sleep now say "sleeping" just to make it different. I still am getting the error. Does it make any difference that the sleeping function is a private...
When I changed the name of the member function it now says "error C2065: 'sleep' : undeclared identifier" I am using Microsoft Visual C++ 6.0 and running WinXP Home
I can't seem to get that function to work correctly. My files will compile but when I run the program it just says "press any key to continue" instead of showing me any of my outputs from any of my...
Will that sleep(n) line cause any problems or is it included in one of the standard library header files?
I am working on a program that creates a Robot using a class. I am trying to create a function that will allow the robot to simulate sleeping for n seconds. I am unsure how to create this function...
Thanks for all the help, I only have a couple of questions now. First of all, I can't figure out how to count letters regardless of whether they are upper or lower case. Secondly, I can't figure...
Thanks for your help so far, however, when trying to use what you have supplied, I am a little bit confused. First of all, I am getting an error when I try to compile that states:
C:\Documents...
I need to write a program that reads a string from the keyboard and then outputs the number of occurrences of each letter in the alphabet as it pertains to the string. I also need to be able to...