Search:

Type: Posts; User: quagsire

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    868

    right click on the line on the chart and select...

    right click on the line on the chart and select "add trendline". Under the options there is a checkbox "display equation on chart" that should be checked.
  2. Replies
    19
    Views
    5,040

    smallest program at work was probably about...

    smallest program at work was probably about 3-4000 lines. The biggest was between 16 and 17 million lines of code (luckily I did not need to write it all by myself :)). Took about 30 minutes to...
  3. Replies
    17
    Views
    58,581

    float occupies 4 bytes in memory and has a...

    float occupies 4 bytes in memory and has a precision of 7 digits. double occupies 8 bytes in memory and has a precision of 15 digits. It is impossible to create more precision than what you already...
  4. Thread: gotoxy

    by quagsire
    Replies
    10
    Views
    1,789

    The screen is usually only 80x25 characters in...

    The screen is usually only 80x25 characters in size. When you call it with 100 as x parameter it will ignore the call as this is bigger than 80. Try using values that fall within the screen size...
  5. Thanks for the help. I will download it again.

    Thanks for the help. I will download it again.
  6. The download was just one executable...

    The download was just one executable (freecommandlinetools.exe) and did not have a readme file. It just extracted files into the c:\borland\bcc55\bin directory.

    When I downloaded it it said it was...
  7. On the borland website under downloads, c++...

    On the borland website under downloads, c++ builder there is an option to download the compiler http://www.borland.com/products/downloads/download_cbuilder.html
    It is the bcc5.5 compiler
  8. Missing header files and libraries with Borland

    I just downloaded and installed the free compiler from Borland. When I try to compile any program, I get errors including any standard header file (for example iostream>. I searched and found no .h...
  9. Replies
    1
    Views
    1,202

    When using MAX= sizeof(array) /...

    When using
    MAX= sizeof(array) / sizeof(array[0]); MAX is assigned a value of 1. This is because sizeof(array) returns the size of the pointer to the array (4 bytes) and sizeof(array[0]) returns the...
  10. Replies
    32
    Views
    7,273

    Poll: When you have char* a,b;it looks as if both a...

    When you have

    char* a,b;it looks as if both a and b is of type char*, but actually b is only of type char. To avoid confusion, rather use

    char *a, b;to more clearly show what you mean
  11. Try www.tldp.org. They have man pages and some...

    Try www.tldp.org. They have man pages and some other linux related docs for download.
  12. Thread: Program help

    by quagsire
    Replies
    4
    Views
    932

    Hi, You were using the same editbox for all the...

    Hi,
    You were using the same editbox for all the days.

    I also prefer using sprintf above _gcvt as it is ANSI and _gcvt not



    GetDlgItemText(hDlg, IDC_MON, monstr, 10);...
  13. Replies
    3
    Views
    9,032

    Yes, you can use ifstream in linux. At work I had...

    Yes, you can use ifstream in linux. At work I had a problem using ios::binary on Unix, since all files are treated as binary. I assume you may find the same problem. Use a conditional define to test...
  14. Replies
    8
    Views
    8,347

    Both cin and scanf use a space as a terminator,...

    Both cin and scanf use a space as a terminator, so it will only read up to the space. To get past this use cin.getline().
  15. Replies
    4
    Views
    1,749

    You can use return to exit a void function, it...

    You can use return to exit a void function, it will just not return a value to the calling function :


    void testFunc()
    {
    // do stuff
    if ( ????? )
    {
    return;
    }
  16. Thread: Thread sleep

    by quagsire
    Replies
    2
    Views
    5,112

    I used the following : struct timespec...

    I used the following :


    struct timespec timeout = {10, 0 };
    pthread_delay_np( &timeout );

    Unfortunately it is not portable, but I will always use it on the same platform (IBM AIX)
  17. Thread: Thread sleep

    by quagsire
    Replies
    2
    Views
    5,112

    Thread sleep

    How do you make a specific thread sleep without sleeping the process.

    If I use sleep, it sleeps the whole process, not just the specific thread I want.
  18. Thread: mutex locking

    by quagsire
    Replies
    3
    Views
    1,608

    mutex locking

    If I use mutex blocking like this


    pthread_mutex_lock (&send_mutex);
    try
    {
    Send( pBuffer, ulMsgSize );
    }
    catch(...)
    {
  19. Replies
    11
    Views
    2,749

    We had a problem at work where MSN downloaded...

    We had a problem at work where MSN downloaded about 150MB per day on all the people's PCs that use MSN. Just downloaded a patch and the problem went away.
  20. Thread: semctl union

    by quagsire
    Replies
    1
    Views
    1,238

    Try "The Linux Programmer’s Guide" available for...

    Try "The Linux Programmer’s Guide" available for download at http://www.tldp.org/guides.html
  21. Replies
    3
    Views
    1,138

    double test(void *p) { double d = *(double*)p;...

    double test(void *p)
    {
    double d = *(double*)p;
    return d;
    }

    int main()
    {
    double x = 1234;
    cout << test(&x);
  22. Replies
    11
    Views
    3,300

    Try the attached file.

    Try the attached file.
  23. Replies
    22
    Views
    5,034

    Poll: tomshardware.com provides very good benchmarks of...

    tomshardware.com provides very good benchmarks of different video cards. They use the same system with just the video card differing, so that the benchmarks are not biased in anybody's favour.

    The...
  24. Replies
    5
    Views
    1,340

    int num = random(good+bad) + 1; if num > good ...

    int num = random(good+bad) + 1;
    if num > good
    dobad();
    else
    dogood();
  25. Replies
    6
    Views
    1,011

    Using sprintf makes formatting of the filename a...

    Using sprintf makes formatting of the filename a lot easier :


    int year = 2002;
    char filename[256];
    sprintf(filename, "%4d.txt", year);
Results 1 to 25 of 59
Page 1 of 3 1 2 3