devxlogo

Tip Bank

Using Lockf with Seed Files

Question: It’s been years since my paws had to pound out a solution in C, so I’m a bit rusty and would like a second opinion.. or third… or fourth.

Problems with Getc and Scanf

Question: I want to make a menu, where you can select from 1-4. By pressing one of these keys you should get into a subprogram. Now I have to press

Static Char THIS_FILE[]=__FILE__

Question: When I learned VC++, I found a bizarre statement inevery .cpp produced by AppWizard: “static char THIS_FILE[]=__FILE__;” Why does AppWizard redefine THIS_FILE?I find that THIS_FILE is just defined as__FILE__

Pointers to Vectors

Question: How do you create an array of pointers to vectors?The different vectors will, eventually, have different lengths. Answer: You declare an array of pointers to vector like this: std::vector

Changing E-mail Addresses in Bulk

Question: How can I define a second SMTP e-mail address, specify that the new e-mail address be the reply address, and retain the old address easily for many (>1000) users?

ASCII Values

Question: How do I change an ASCII value to a letter in C++? Answer: You can directly assign the ASCII vlaues to a variables of type char.The decimal value is

Selling the Decision Makers on XML

Question: I am starting to see the benefits of using XML and XSL in Web site development, but my challenge is convincing the decision makers. Their usual responses are: “Show