Search:

Type: Posts; User: drharv

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Thread: Network problem

    by drharv
    Replies
    11
    Views
    1,644

    First, I'd double check the cable connecting the...

    First, I'd double check the cable connecting the computer w/internet to the hub. Then you probably want to double check it's netword card to make sure it didn't die. The fact that it can't see...
  2. Replies
    5
    Views
    4,844

    Here's how you'd use strtok(), with comments. ...

    Here's how you'd use strtok(), with comments.




    #include <stdio.h>
    #include <string.h>

    int main()
    {
  3. Replies
    21
    Views
    1,493

    Yes, print me now will loop until y=x, then it...

    Yes, print me now will loop until y=x, then it will start all over again with x=4. That probably answers your second question, the block of code is executed, then the increment/decrement takes place.
  4. Replies
    21
    Views
    1,493

    A nested for loop runs it's entire length then...

    A nested for loop runs it's entire length then goes back to the original. If the original condition is still met, it runs the entire nested loop again.

    for example


    int i,j;

    for( i=0; i<3;...
  5. Thread: fopen syntax

    by drharv
    Replies
    2
    Views
    5,473

    It's working, I guess it was the '&' . Thanks

    It's working, I guess it was the '&' . Thanks
  6. Thread: fopen syntax

    by drharv
    Replies
    2
    Views
    5,473

    fopen syntax

    I was wondering if anyone knows the correct way to use fopen to open a file in a location like "Documents & Settings".

    I tried this


    fptr = fopen("c:\Documents & Settings\filename.txt", "r"); ...
  7. I'm not sure what you mean by saving it. You are...

    I'm not sure what you mean by saving it. You are saving it in a buffer as it is, and you could do all thw work you need within the loop. But I do have a suggestion for you - drop the for loop and...
  8. Thread: Pointers :-)

    by drharv
    Replies
    14
    Views
    1,020

    and yes, i think it would. You said that address...

    and yes, i think it would. You said that address held the address you wanted.
  9. Thread: Pointers :-)

    by drharv
    Replies
    14
    Views
    1,020

    Re: Pointers :-)

    You said that the variable address contained the address that you wanted. If this is true, then just set pointer2address equal to it without the '&' operator. The '&' is used when you want the...
  10. Thread: Pointers :-)

    by drharv
    Replies
    14
    Views
    1,020

    If address holds a memory address already, then...

    If address holds a memory address already, then you don't need the '&' operator in front of it.

    int *pointer2address = address; //should work

    You need to be sure address points to the...
  11. Replies
    12
    Views
    1,265

    Am I the only one that finds it ironic that your...

    Am I the only one that finds it ironic that your compression program is downloaded as a zip? Not trying to make fun, I think it's awesome that you wrote this. Just thought it was a little humorous....
  12. Replies
    10
    Views
    9,804

    I am a computer engineering student now, and i...

    I am a computer engineering student now, and i can take all of the programming classes the comp sci take and use them to graduate. I just have more choice in my electives. At my university, the...
  13. Replies
    1
    Views
    1,366

    combine C with other languages?

    I am pretty familiar with C, and would like to be able to produce some nicer gui's for my programs. I have worked on a little C++ using the MFC, but would rather not use that to achieve a prettier...
  14. Replies
    3
    Views
    1,410

    still not sure why the first method didn't work,...

    still not sure why the first method didn't work, but using a second count worked. Thank you very much!!!!!
  15. Replies
    3
    Views
    1,410

    error reading input from file

    Ok, I have a text file that I am reading into buffers, and it breaks after around 107 lines of the file have been scanned. Any help would be greatly appreciated.




    void ReadFile(struct...
  16. Replies
    8
    Views
    843

    try defining fname without #define. maybe...

    try defining fname without #define. maybe something like this...

    >const char fname[5] = "a.f";

    You maybe getting the error because it doesn't realize that fname is the char[] type.
  17. Replies
    1
    Views
    862

    Help on opening files

    Ok, I am just starting to play with C++ and have written a class that opens files for practice. Does anyone know why this is not opening the files? (or if it is, why it is not exiting) I am sending...
  18. Thread: loop problem

    by drharv
    Replies
    9
    Views
    1,304

    I have been wrong many times before and maybe...

    I have been wrong many times before and maybe again here, but I think EOF in Windows is Ctrl-C.
  19. Replies
    3
    Views
    1,458

    Just check to see if they entered 'Y' and then...

    Just check to see if they entered 'Y' and then you have two options.

    1. Set the record values to a pre-set identifier like '-1' so that you know it has been deleted. Then just set your options...
  20. Replies
    2
    Views
    794

    If your compiler supports it, use getch(). It...

    If your compiler supports it, use getch(). It takes in a character then proceeds without the user having to press enter. Otherwise, make your menu say "press enter to continue" and use getc() or...
  21. Thread: gotoxy question

    by drharv
    Replies
    5
    Views
    1,562

    If you didn't have the gotoxy() there, it would...

    If you didn't have the gotoxy() there, it would print a space right after the original position. The gotoxy moves it back so that the space prints over the '*' and not after it.


    ::EDIT:: Sorry,...
  22. Thread: hanoi tower

    by drharv
    Replies
    2
    Views
    1,111

    First thing that I spot is the GetDisk()...

    First thing that I spot is the GetDisk() function.

    This function makes a copy of num_disk and changes it, not the original. Try this;



    int GetDisk(void)
    {
    int num_disk;
    ...
  23. Thread: Hanoi tower

    by drharv
    Replies
    3
    Views
    1,506

    Have you even tried to build the functions? If...

    Have you even tried to build the functions? If so, let us see.
  24. Replies
    11
    Views
    3,093

    Don't you have to use an escape sequence to...

    Don't you have to use an escape sequence to represent a '/'? I think '//' just represents a single backslash. Try '///' or '////' to represent two of them.

    Or, it could be the fact that you are...
  25. I don't know about VB, but I think your problem...

    I don't know about VB, but I think your problem is you are using a character when you need a string and vice-versa.

    arrayName[0] = a single character(the first letter)

    arrayName =...
Results 1 to 25 of 51
Page 1 of 3 1 2 3