Search:

Type: Posts; User: bithub

Page 1 of 20 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    6
    Views
    3,136

    You could execute "ps -p $pid" and check the...

    You could execute "ps -p $pid" and check the return code.
  2. Replies
    8
    Views
    3,137

    typedef struct { char *pointers[4]; }...

    typedef struct {
    char *pointers[4];
    } ARGUMENTS; This gives you an array of 4 pointers.
  3. Can you use the WM_MENUSELECT message instead of...

    Can you use the WM_MENUSELECT message instead of WM_SYSCOMMAND?
  4. Replies
    8
    Views
    1,773

    The best place to put forward declarations is...

    The best place to put forward declarations is outside of functions in the global scope. This way you don't need to do forward declarations in every function. In other words, put this:
    int...
  5. Replies
    5
    Views
    7,420

    This is not a trivial problem for a beginner. ...

    This is not a trivial problem for a beginner. You need to keep track of how many characters you are printing and only add spaces up to your tabstop column.

    Here is an example of what I'm...
  6. Replies
    5
    Views
    7,420

    You are not replacing tabs with spaces. You are...

    You are not replacing tabs with spaces. You are replacing "\\t" with "\t". In other words, you are replacing a backslash followed by the letter 't' with a tab. Also (if you're unaware), you are...
  7. You could try this: ShowWindow(...

    You could try this:

    ShowWindow( GetConsoleWindow(), SW_HIDE );

    With Visual Studio you can create a non console application which will not create a console window at all, but I'm not sure if...
  8. You can use fgets()...

    You can use fgets() to gather the user input strings. Then use strcpy() to copy the user's words into your buffers you created with malloc. You can break the text into words by parsing the data on...
  9. Replies
    28
    Views
    2,734

    DNSSec ensures that when you do a DNS query, the...

    DNSSec ensures that when you do a DNS query, the IP address that you receive is the actual IP address the domain operator placed into the DNS server. It basically performs the same function for DNS...
  10. Replies
    28
    Views
    2,734

    DNSSec does not (nor was it ever intended to)...

    DNSSec does not (nor was it ever intended to) prevent MITM attacks, it prevents DNS spoofing.
  11. Replies
    28
    Views
    2,734

    This is not true. The main purpose of using...

    This is not true. The main purpose of using HTTPS is to protect the user of your website.

    Without HTTPS, users are vulnerable to MITM attacks. What if a malicious entity intercepted the user's...
  12. Replies
    28
    Views
    2,734

    It is never a bad idea to use HTTPS for your...

    It is never a bad idea to use HTTPS for your website (with a properly signed certificate). Once we get to a point where getting signed certs is free, there will be no excuse to run a website over...
  13. Replies
    10
    Views
    962

    while (arr[j] > pivot) You are reading past the...

    while (arr[j] > pivot)
    You are reading past the end of your array. The array is of size N, but j is equal to N. Set j equal to (right - 1).
  14. Replies
    26
    Views
    8,196

    It's best to declare it as volatile since that is...

    It's best to declare it as volatile since that is the behavior you want. Just because today's compilers are not utilizing a register to store your flag doesn't mean that will be the case for future...
  15. Replies
    28
    Views
    2,734

    You can pay for a VPS and install whatever you...

    You can pay for a VPS and install whatever you want on it. The cost can be as low as about $3 per month, or much higher if you need a lot of processing power or RAM. Just do a search for "VPS" and...
  16. Replies
    2
    Views
    1,498

    Cur_Pkt_Time=tv3.tv_sec+tv3.tv_usec;This is...

    Cur_Pkt_Time=tv3.tv_sec+tv3.tv_usec;This is incorrect. Think about what you are doing here: you are treating a microsecond the same as a second. A common way to generate integer based timestamps is...
  17. Replies
    5
    Views
    1,068

    It is difficult to design an introductory...

    It is difficult to design an introductory assignment that produces a useful application. Could you do better?
  18. Replies
    38
    Views
    2,457

    No, it would not. Most TVs and monitors run a...

    No, it would not. Most TVs and monitors run a refresh rate of 30 or 60 Hz. This is already faster than your camera's capture rate. This effect is compounded by the fact that your box TV is almost...
  19. Replies
    5
    Views
    761

    Since Member has pure virtual functions, you must...

    Since Member has pure virtual functions, you must create instances of the derived classes.

    Member *Sop::findMember(string bi){
    Member *m = new Student(bi, NULL); // Note that we are now...
  20. Thread: What's next...

    by bithub
    Replies
    5
    Views
    799

    If all you have done is finish some C tutorials,...

    If all you have done is finish some C tutorials, then you have not yet learned C. I suggest that your next step be writing some software in C to expand on your knowledge. If you are set on learning...
  21. Replies
    6
    Views
    3,335

    There are only 2 functions defined in that code...

    There are only 2 functions defined in that code block: main, and mult.

    cin and cout are both objects of type ostream. The get() and ignore() calls are invocations of member functions. If you...
  22. Replies
    6
    Views
    3,335

    For the first question, the answer is B because...

    For the first question, the answer is B because it is missing the semicolon at the end, thus it is not a proper function prototype.

    For the second question, D is not a valid function call because...
  23. Replies
    3
    Views
    1,638

    if (ans >= int min && ans

    if (ans >= int min && ans <= int max)
    This is not the correct way to do an if statement. It should be:

    if (ans >= min && ans <= max)
    Just make sure min and max are declared somewhere (in your...
  24. You might be using a very strict C89 compiler. ...

    You might be using a very strict C89 compiler. What happens if you move the declaration of array above the call to fopen()?

    Also, you need to declare c as an int to properly compare it to EOF.
  25. You also need to make sure you don't overrun your...

    You also need to make sure you don't overrun your array. What happens when x reaches 600?
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4