how to make something like this work?
if (KeysPressed="K");
Miganders
-15
Newbie Poster
Recommended Answers
Jump to Posthow to make something like this work?
if (KeysPressed="K");The part on how to fix it:
I see you want to compare a string-variable with a string literal, but you're doing something wrong: you're using the=
-operator, this operator is also called the assignment operator, and is used if …
Jump to Postbtw, if you are thinking of comparing a char type only and not a char string,
ie: if keypressed is of type char. You should use ' instead of " as quotes
All 7 Replies
mvmalderen
2,072
Postaholic
ddanbe
commented:
marvelous explanation!
+12
Sky Diploma
571
Practically a Posting Shark
Miganders
-15
Newbie Poster
mvmalderen
2,072
Postaholic
Miganders
-15
Newbie Poster
mvmalderen
2,072
Postaholic
Miganders
-15
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.