Tuesday, July 14, 2009

How can somebody with minimal visual c++ programming knowledge create a web interface for a database?

I have a database on a local server and I want to export it's fields on a web page so anybody be able to edit and delete data from that database.are there any templates on the internet?where?

How can somebody with minimal visual c++ programming knowledge create a web interface for a database?
You only need a little bit of Visual studio and ASP.NET experience if you already have the database. But it's a good idea to use templates, save lots of time. I'm looking for one right now for my LAMP project, even my tutor prefers templates and doesn't require programming knowledge. There are thousands of templates and designs on the web and many are free. Here is a website for free templates you might like :


http://www.flashtemplatestore.com/free-t...


How much do M.A.C eyeliner cost?

http://www.maccosmetics.com/templates/pr...





I wanted to get that one, it says that it's $16.50 US. But i live in Canada and i'm wondering if the prices are exactly the same?

How much do M.A.C eyeliner cost?
no its about 16.75 but who cares its M.A.C. makeup!
Reply:canadian dollars - $20
Reply:$15.00 U.S.D.


I need help in C++ data structure ?

who can give me the code for this program or can give me some hints and help me with the idea to write it ?





Write a driver to test your class templates and algorithms. If the infix arithmetic expression





(66 + 38 - 93) * 5 / 6 - 88 % 6





is given, the postfix version of the preceding infix expression





66 38 + 93 - 5 6 */ 88 6 % -





will be created and then evaluated. Thus the result is = 5

I need help in C++ data structure ?
What exactly do you need ?





1) Program that converts infix expressions to prefix expressions ?





2) A Driver program that tests an infix prefix converter ?
Reply:Oh that programs in so nice.





If you want to Shoot the star you must be specific on these





Be sure that your input will get you the thing you want I mean you must filter your sentences you must use a stack for implementing this program , you must check your sentence character by charachter and put it in the right stack with focusing to the mathematic order of each character (we have table for it).


when you put it right in the stack everything is fine and you can easily change it to prefix or post fix form
Reply:try this:





#include %26lt;stdio.h%26gt;


#include %26lt;conio.h%26gt;


#include %26lt;string.h%26gt;


#define MAX 99


void infixtoprefix(char* st,char* out);


char stack[MAX],str[MAX],out[MAX];


int sp;





void main() {


int i,l;


sp=0;


clrscr();





do {


printf("\n\nEnter a Experssion(enter to exit): ");


gets(out);





l=strlen(out);


for(i=1;i%26lt;=l;i++)


str[i-1]=out[l-i];


str[i-1]='\0';





infixtoprefix(str,out);





l=strlen(out);


for(i=1;i%26lt;=l;i++)


str[i-1]=out[l-i];


str[i-1]='\0';





printf("\n%s",str);


} while(strlen(str)!=0);


}





int Operator(char ch)


{


if (ch=='+' || ch=='-' || ch=='*' || ch=='/')


return 1;


return 0;


}





int Operand(char ch)


{


if ((ch%26gt;47) %26amp;%26amp; (ch%26lt;58))


return 1;


return 0;


}





char pop()


{


char ch;


sp--;


ch=stack[sp];


stack[sp]='\0';


return ch;


}





void push(char ch)


{


stack[sp]=ch;


sp++;


}





int Most(char a, char b)


{


if ( a=='(' || a==')' ) return 1;


if ( a=='*' || a=='/')


if (b=='*' || b=='/' || b=='+' || b=='-') return 1;


if (a=='+' || a=='-')


if (b=='+' || b=='-') return 1;


return 0;


}








void infixtoprefix(char* st,char* out)


{


char ch,temp;


int i,l,pos,op;


l=strlen(st);


pos=0;


op=0;


while (pos%26lt;l) {


ch=st[pos];


if (Operand(ch)) { out[op]=ch; op++; }


if (ch==')') push(ch);


if (Operator(ch))


{


if (sp==0 || stack[0]==')' || Most(ch,stack[0])) push(ch);


else


{


out[op]=pop();


if (out[op]!=')') op++;


push(ch);


}


}


if (ch=='(') do


{


ch=pop();


if (ch==')') break;


out[op]=ch;


op++;


}while(sp%26gt;0);


pos++;


}


while(sp!=0)


{


out[op]=pop();


op++;


}


out[op]='\0';


}

wisteria

M.A.C studio finish spf concealer...?

what is the difference between the nc15 and nw15 colors?


http://www.maccosmetics.com/templates/pr...

M.A.C studio finish spf concealer...?
The NW's have more pink to them while the NC's are more yellow based.


To Anyone That Has Used M.A.C Paint !?

Is the paint pot or the paint tube better ,


wich would u recommend ?








Pot


http://www.maccosmetics.com/templates/pr...





Tubey Thing


http://www.maccosmetics.com/templates/pr...





please n thank u

To Anyone That Has Used M.A.C Paint !?
I like the tube better - easier to spread, I don't usually use it with a brush, so a pot is difficult, have to scoop it out and then put it on my finger. the tube just gives me more control.
Reply:I like the pot way better. Creamier, easier, better color payoff.
Reply:I like the Paint Pot better then the Paint Tube only because the tube can get soo messy. When you first open the tube up, so much of the paint is waisted; it just squirts out on it's own. Despite the fact that the tube is more hygenic and the pot has a better chance of trapping bacteria, I'd still choose the pot because it doesnt get wasted as much as the tube. Hope that helps.
Reply:The pot is easier.
Reply:the paint pots are quite thick, and give more of a matte colour, where are the paint pots have shimmer and shine, so it is all about your preferance.
Reply:Well, I have personally bought both.





Paint Tube


Pros: Stays on all day, nice color payoff, dries to a semi matte finish, good base for shadows and loose powders


Cons: May "leak" through your eyeshadows, very thick, dries up quickly





Paint Pot


Pros: Stays on all day, great color payoff, dries to a shimmery or matte finish, good base for everything, can be used as a shadow, does not dry out quickly, I went in the pool and it came out perfectly


Cons: May get contaminated if once you use dirty fingers,





So, I prefer the Paint Pot, because of the color selection and it does not dry out as fast or is as thick as paints!
Reply:Im using M.A.C Pot. It looks awsome and waterproof. Must have from M.A.C.


M.A.C 'S blue lipstick?

Why do U think they made it and would U wear it .


http://www.maccosmetics.com/templates/pr...

M.A.C 'S blue lipstick?
Although MAC is high end, it is not top of the line, but they do like to play with funky colors. I actually bought a bunch of MAC the other day and the woman was telling me about the blue lipstick. They sent each store 10-15 tubes of it thinking that it would not sell, but in reality now there is a waiting list for people to buy it. I tried it on, and althoug it is not for me, it is a pretty color. It isnt electric blue or anything like that. It is a suble blue, almos silverish shimmer. It is very pretty for a night out on the town I just dont think it is a good shade to be wearing everyday of the week.
Reply:usually models wear that kind of stuff=] exotic things
Reply:I'm guessing they made it for the unique people/ fashion shows/ photo shoots. I would never ever wear it.
Reply:MAC is some high end stuff so they cover all ends of the rainbow. im pretty sure people who model/fashionistas buy it for the look.





i would wear it if i have an outfit matching it/going to a nice club (obviuosly for really crazy stuff) or modeling
Reply:I think they made it because everyone has different tastes. Some people would and some people wouldn't. But i personally wouldn't lol
Reply:I am Guessing they were high LOL or... REALLY wasted XD
Reply:because they knew that there are actually people out there who would wear it. and some ppl love mac so much that they think whatever they come up with is so in style..but eww i would never wear tht
Reply:thats hot


i would totally wear that!
Reply:actually M.A.C. actually started as photo shoot makeup, so a lot of the colors are not practical for every day use. But they eventually caught on that women like the heavy coverage of their makeup, so they began to market to the public. A lot of makeup artists still use M.A.C. on photo shoots and on the run way, so M.A.C. likes to keep all the options open so they can attract more buyers for their product. And I know a few people who wear crazy colors like blues and greens and yellows and hot pinks when they go out. I live in Los Angeles, so seeing someone with these colors is really not that strange to me. Give it a try, I bet you would actually enjoy playing around with such vivid color!
Reply:I wore blue lipstick occasionally in college. It's something you can get away with at the right time in your life, in the right environment, just for fun.





A lot of people hated it, but it was a blast wearing it.


Sunday, July 12, 2009

C++ inline class member functions?

When using the "inline" qualifier for class member functions, should the inline be specified in front of the function declaration, or the function definition, or both?


Also, can the definition of the function be in a separate .cpp or is it required to be in the .h file as is the case when defining templates?


Thank you for your assistance,

C++ inline class member functions?
Both. It all has to be in the header file. Because other code that will use it needs to know it's definition in order to actually put it inline (and other code will include your header, not your source file).





Here are two examples:





class A


{


inline void a();


}


inline void A::a()


{


// code for a


}





--or--





class A


{


inline void a()


{


// code for a


}


}

anemone