Search:

Type: Posts; User: golsoje

Search: Search took 0.01 seconds.

  1. Replies
    19
    Views
    5,168

    OK, finally, that seems to be working. Now, do...

    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...
  2. Replies
    19
    Views
    5,168

    Here is my exact code for this test file: #...

    Here is my exact code for this test file:

    # include <dos.h>
    # include <iostream>
    using namespace std;

    int main()
    {
    cout << "test";
    sleep(10);
  3. Replies
    19
    Views
    5,168

    I created a new file to test that function, I...

    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,...
  4. Replies
    19
    Views
    5,168

    I made sure that all instances of the function...

    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...
  5. Replies
    19
    Views
    5,168

    When I changed the name of the member function it...

    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
  6. Replies
    19
    Views
    5,168

    I can't seem to get that function to work...

    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...
  7. Replies
    19
    Views
    5,168

    Will that sleep(n) line cause any problems or is...

    Will that sleep(n) line cause any problems or is it included in one of the standard library header files?
  8. Replies
    19
    Views
    5,168

    function to simulate sleep

    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...
  9. Thanks for all the help, I only have a couple of...

    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...
  10. Thanks for your help so far, however, when trying...

    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...
  11. Taking a string and counting number of occurrences of each letter in the string

    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...
Results 1 to 11 of 11