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.
Type: Posts; User: quagsire
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.
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...
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...
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...
Thanks for the help. I will download it again.
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...
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
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...
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...
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
Try www.tldp.org. They have man pages and some other linux related docs for download.
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);...
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...
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().
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;
}
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)
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.
If I use mutex blocking like this
pthread_mutex_lock (&send_mutex);
try
{
Send( pBuffer, ulMsgSize );
}
catch(...)
{
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.
Try "The Linux Programmer’s Guide" available for download at http://www.tldp.org/guides.html
double test(void *p)
{
double d = *(double*)p;
return d;
}
int main()
{
double x = 1234;
cout << test(&x);
Try the attached file.
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...
int num = random(good+bad) + 1;
if num > good
dobad();
else
dogood();
Using sprintf makes formatting of the filename a lot easier :
int year = 2002;
char filename[256];
sprintf(filename, "%4d.txt", year);