Im gonna add about 1000 items to a combo box. And then when someone clicks a button, i need to get the corresponding number to each string. My quesiton is do i have to compare whatever string they pick to 1000 others using case statements, or can i give data to each string that i give the combo...
why ,when i declare a combo box,a variable (m_mycombo) attached to it...andwhen i simply dom_mycombo.AddString("khkh");m_mycombo.AddString("sughsjhkhkh");....i have nothing that drops down?thanks....
How would I do something like this: int score; char bufferScore[4]; itoa(score, bufferScore, 10); MessageBox...I want it to say "Your score is (whatever it is), good job!" or something like that...in vb its the &, what is it in C++ :confused:...
I am working on a project (C++) that is being ported to WIN32 from Linux and I need to combine ~20 libraries into a single lib so that the app programmers only have one library to link into their code.The question is: how does one do this in Windows?We are using VisualC++ 2005 Express; and have figu...
Write a program in C program to find the sum of the following:
The input contain a sequence of two or more positive integers terminated by -1. For example, the following sequence contains 4 incidences:
4 2 9 9 3 7 7 7 3 3 -1
what does this mean?? can anyone give me a clue??
...
You posted a question last April on how to get the IE's vertical scrollbar position. Did you ever find out how to do it? I have the same problem using get_scrollTop in my MFC C++ program....
>sin 1) if statements shouldn't act on the return value of the function if the function has side effects.>sin 2) putting a constnat on the left side of a conditional.>sin 3) assignment in a conditional expression. All three of these are perfectly acceptable. Indeed (2) is in many people's views a...
mambuhl wrote:> }> printf("The GCD is %d\n", gcd(first, second));here exit(0);>}>C:>heThis program will figure out the greatest commondivisor in two numbers you give.Please enter the numbers.0OK, that's one. Give me another one.9[crash]_____C:>heThis program will figure out the greatest commondivis...
[BTW, whose newsreader incorrectly translated the subject line from RFC 2047 encoding to whatever the above garbage is? Someone needs to get a better reader. (In the order that messages appeared at my server, it appears to be Malcolm's reader, but that may be an artifact of transmission.) If you...
shut up. I am, however, amuzed that my line might be considered OK,sin 2) putting a constnat on the left side of a conditional. In English we say "if the number read equals 2", and C is primarily designed to communicate information to a human programmer. I disagree with argumentthat it prevents an...
#include #define d b%a#define e a%bvoid main(){int a,b,c,y,z,m,n;printf("This program will figure out the greatest common divisor in two numbers you give.\n");printf("Please enter the first number.\n");scanf("%d",&a);printf("Please enter the second number.\n");scanf("%d",&b);if(b>a){if(d==0)c=a;if(d...