Search:

Type: Posts; User: bithub

Page 1 of 20 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    8
    Views
    746

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

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

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

    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...
  4. Replies
    5
    Views
    2,860

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

    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...
  6. 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...
  7. 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...
  8. Replies
    28
    Views
    1,772

    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...
  9. Replies
    28
    Views
    1,772

    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.
  10. Replies
    28
    Views
    1,772

    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...
  11. Replies
    28
    Views
    1,772

    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...
  12. Replies
    10
    Views
    697

    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).
  13. Replies
    26
    Views
    1,611

    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...
  14. Replies
    28
    Views
    1,772

    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...
  15. Replies
    2
    Views
    1,004

    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...
  16. Replies
    5
    Views
    756

    It is difficult to design an introductory...

    It is difficult to design an introductory assignment that produces a useful application. Could you do better?
  17. Replies
    38
    Views
    1,803

    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...
  18. Replies
    5
    Views
    552

    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...
  19. Thread: What's next...

    by bithub
    Replies
    5
    Views
    547

    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...
  20. Replies
    6
    Views
    1,290

    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...
  21. Replies
    6
    Views
    1,290

    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...
  22. Replies
    3
    Views
    1,350

    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...
  23. 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.
  24. 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?
  25. Replies
    8
    Views
    899

    If you know the format of the file is consistent...

    If you know the format of the file is consistent with text values, then you could use fscanf. If not, then you could use fgets.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4