Showing results 1 to 31 of 31
Search took 0.01 seconds.
Posts Made By: Passmark
Forum: C++ Feb 11th, 2008
Replies: 5
Views: 603
Posted By Passmark
Re: Trying to create a 2D array

As it is only 3 lines of code do you need a function?

const int MAXROW = 4;
const int MAXCOL = 10;

int main()
{
int a [MAXROW][MAXCOL];
for (int row = 0; row < MAXROW; row++)
for (int col =...
Forum: C++ Feb 9th, 2008
Replies: 15
Views: 1,127
Posted By Passmark
Re: Please help. Give me a solution

I had to do organic and inorganic chemistry to get a degree in computer science (and maths, physics, astronomy and philosophy).

At the time I thought it was dumb, but 20 years on, I don't regret...
Forum: C++ Feb 9th, 2008
Replies: 15
Views: 1,127
Posted By Passmark
Re: Please help. Give me a solution

I am only new here, but is really surprising (and saddening) how many people just post up their assignments hoping someone else will do the ALL the work.

As an employer of IT graduates I get to read...
Forum: Motherboards, CPUs and RAM Feb 9th, 2008
Replies: 4
Views: 408
Posted By Passmark
Re: 2x dual channel or 1x and more total ram?

It depends on what software you are using, and what you do with your PC.

If you are using apps that use a lot of RAM (e.g. Photoshop with multiple large images) then you need as much RAM as you can...
Forum: Motherboards, CPUs and RAM Feb 8th, 2008
Replies: 4
Views: 408
Posted By Passmark
Re: 2x dual channel or 1x and more total ram?

I would sell 2 of the the 512MB sticks on Ebay and with the proceeds buy an additional 1GB stick to match your spare 1GB stick. The cost difference would be small (maybe $30?) and you get 3GB in dual...
Forum: Search Engine Optimization Feb 7th, 2008
Replies: 5
Views: 535
Posted By Passmark
Re: Secured Pages Site Search?

No point asking me, I am hopelessly bias. I wrote the initial code for the Zoom product (and own the company :-) ). Needless to say, I think it is pretty good. Not perfect yet, but pretty good.
Forum: C++ Feb 7th, 2008
Replies: 5
Views: 674
Posted By Passmark
Re: formated file reading problem

I don't think it is supported. A replacement might be fscanf() + some extra code, but it really depends on what you are doing with with vfscanf.
Forum: C Feb 7th, 2008
Replies: 5
Views: 477
Posted By Passmark
Solution Re: Urgent help needed for C program assignment before 9th feb

It seems this assignment (http://cs.senecac.on.ca/~btp100/pages/assignments/a1.html) was set by Professor Chris Szalwinski (http://cs.senecac.on.ca/~chris.szalwinski/archives/btp100.033/office.html)...
Forum: Growing an Online Community Feb 7th, 2008
Replies: 6
Views: 827
Posted By Passmark
Re: Forum indexing

Having lot of incoming links (i.e. a popular site) helps a lot to get your forum indexed. Using a forum package that is SEO friendly from the start also helps.

You can also create a Google Site Map...
Forum: Search Engine Optimization Feb 7th, 2008
Replies: 5
Views: 535
Posted By Passmark
Re: Secured Pages Site Search?

This should be easy to do. Take a look at the Zoom Search Engine (http://www.wrensoft.com/). You can add search to an intranet, web site or CD. The pages being searched don't need to be accessible to...
Forum: Python Feb 6th, 2008
Replies: 2
Views: 620
Posted By Passmark
Re: help regarding CGI programming

I have never written a line of Python code in my life. So I am superbly qualified to answer this post.

But I am guessing the os.system call just calls the operating system to execute the file...
Forum: Existing Scripts Feb 5th, 2008
Replies: 2
Views: 1,441
Posted By Passmark
Re: CMS vs. Bloggers: Trying to comprehend

Any tool that allow you to simply manage content on a web site, without needing to do the HTML coding, is really a CMS.

Blogs packages are really just a sub-set of CMS tools. They are generally less...
Forum: Motherboards, CPUs and RAM Feb 4th, 2008
Replies: 20
Views: 1,447
Posted By Passmark
Re: Quad core rant.

This is a generalization, that is only true in some circumstances. It really depends on what software you are running.
Forum: C Feb 4th, 2008
Replies: 2
Views: 306
Posted By Passmark
Re: having problems with %c and %s

It would take a post several pages long to detail all the problems and inefficiencies in this code. I don't know where to start. It is a mess. A real mess.

But the good news is that at least you...
Forum: Motherboards, CPUs and RAM Feb 4th, 2008
Replies: 20
Views: 1,447
Posted By Passmark
Re: Quad core rant.

Hyperthreading was a term Intel made up for a hardware feature they included on their P4CPUs which allowed multiple threads (and processes) to run partially in parallel on the CPU.

Hyperthreading...
Forum: IT Professionals' Lounge Jan 29th, 2008
Replies: 3
Views: 611
Posted By Passmark
Re: CompSci Major/Minor

I would echo soccerrm1 thoughts.

I was the same as you 20 years ago. At the time I was also worried about which Uni options will get the most money. But whatever you do the money will be OK, so the...
Forum: C++ Jan 25th, 2008
Replies: 4
Views: 675
Posted By Passmark
Re: unsigned int delay and unsinged long dealy

Actually this is not true (http://msdn2.microsoft.com/en-us/library/s3f49ktz(VS.80).aspx) on most systems.

unsigned long, 4 bytes
0 to 4,294,967,295

unsigned int, (also) 4 bytes
0 to...
Forum: C++ Jan 25th, 2008
Replies: 8
Views: 1,183
Posted By Passmark
Re: making counter for odd numbers

The definition of the problem is not clear (at least to me).

Given the decimal integer, 523456

Is the answer
1) 3
Becuase there are 3 odd digits (5,3, & 5)

2) 2
Becuase there are 2 unique odd...
Forum: C Jan 25th, 2008
Replies: 5
Views: 666
Posted By Passmark
Re: 32-bit Pointer in C

You need to supply more information. What O/S and what CPU?

If you are writing a DOS application (with an x86 CPU running in real mode (http://en.wikipedia.org/wiki/Real_mode)), then pointer values...
Forum: IT Professionals' Lounge Jan 24th, 2008
Replies: 4
Views: 427
Posted By Passmark
Re: Assistance for Programmer

Developing a good game requires a fairly large budget. For example Crysis cost about $20,000,000 to make, and involved about 300 people.

What is your budget?
Forum: ASP.NET Jan 24th, 2008
Replies: 1
Views: 407
Posted By Passmark
Re: chilisoft asp

My understanding is that Chilisoft ASP only supports classic ASP. And even then it only implements a subset of the ASP functions.

In short, it isn't very useful.

I also think it is now called, "Sun...
Forum: Motherboards, CPUs and RAM Jan 24th, 2008
Replies: 10
Views: 2,338
Posted By Passmark
Re: AMD vs. Intel

You can compare the Core 2 E4500 (http://www.cpubenchmark.net/cpu_lookup.php?cpu=Intel+Core2+Duo+E4500+%40+2.20GHz) and the Athlon X2 6000+ here...
Forum: Computer Science and Software Design Jan 24th, 2008
Replies: 3
Views: 615
Posted By Passmark
Re: USB Hub communications

You can find the USB specifications (http://www.usb.org/developers/docs/) here.

There is also this book. USB Complete...
Forum: C++ Jan 24th, 2008
Replies: 2
Views: 751
Posted By Passmark
Re: Fourtune Teller Project, switch statement confusion

Initialize uChoice
char uChoice = '\0';

Then add a loop. For example,

while (uChoice != 'Q') {
switch(uChoice)
...
...
}
Forum: C++ Jan 24th, 2008
Replies: 1
Views: 777
Posted By Passmark
Re: Deleting In Linked List..

I've got some bad news for you. Your existing code isn't using linked lists at all. It is using an array!

Before you can delete from a linked list you need to actually create a linked list.

Here is...
Forum: C++ Jan 24th, 2008
Replies: 8
Views: 1,727
Posted By Passmark
Re: How to measure performance for a piece of code?

If you have Visual Studio Team System (the expensive edition) then there is an excellent code profiler built into it.

The code profiler will tell you how long each and ever function in your...
Forum: C++ Jan 24th, 2008
Replies: 2
Views: 737
Posted By Passmark
Solution Re: Help with arrays and rand.

Try using a 'for' loop.
Also, as this *should* be a very small piece of code, there is no need to declare your own functions. It should look more like this,

#define ROLLS 4
#define DIESIDES 6
int...
Forum: Promotion and Marketing Plans Jan 23rd, 2008
Replies: 8
Views: 1,415
Posted By Passmark
Re: Two websites with same database

Spiders that index your site (like Googlebot) will not have any direct knowledge that the same database is in use. Databases like SQL generally allow remote access via TCP/IP, so it is technically...
Forum: C++ Jan 23rd, 2008
Replies: 1
Views: 985
Posted By Passmark
Re: how to read rts/cts status on serial port

You can use the Windows API function SetCommState to control the high level RTS/CTS control line behaviour in Windows.

Use EscapeCommFunction () to manually set RTS/CTS and GetCommModemStatus () to...
Forum: Website Reviews Jan 23rd, 2008
Replies: 4
Views: 470
Posted By Passmark
Re: Please review my website

You might want to initially run the site with as little advertising as possible until it becomes popular.

Also do a spelling check.
"CFO, Cheif of Financial Services
Bobby"
Forum: C++ Jan 23rd, 2008
Replies: 1
Views: 839
Posted By Passmark
Re: Creating a quicksort

Just use use the built in C library QuickSort function (http://msdn2.microsoft.com/en-us/library/zes7xw0h(VS.71).aspx).

qsort (myArray, 10, sizeof (int), compare)

int compare ( const void *arg1,...
Showing results 1 to 31 of 31

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 7:01 am.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC