Posts Tagged ‘C++’
Declare a string variable named mailingAddress.
LANGUAGE: C++ CHALLENGE: Declare a string variable named mailingAddress.
Read MoreDeclare a variable hasPassedTest, and initialize it to true.
LANGUAGE: C++ CHALLENGE: Declare a variable hasPassedTest, and initialize it to true.
Read MoreDeclare a variable isACustomer, suitable for representing a true or false value.
LANGUAGE: C++ CHALLENGE: Declare a variable isACustomer, suitable for representing a true or false value.
Read MoreWrite a literal representing the true value.
LANGUAGE: C++ CHALLENGE: Write a literal representing the true value.
Read MoreWrite a literal representing the false value in C++.
LANGUAGE: C++ CHALLENGE: Write a literal representing the false value in C++.
Read MoreWrite a literal representing the largest character value. Suppose we are using unsigned one-byte characters.
LANGUAGE: C++ CHALLENGE: Write a literal representing the largest character value. Suppose we are using unsigned one-byte characters.
Read MoreWrite a literal representing the character whose ASCII value is 65.
LANGUAGE: C++ CHALLENGE: Write a literal representing the character whose ASCII value is 65.
Read MoreWrite a character literal representing a comma.
LANGUAGE: C++ CHALLENGE: Write a character literal representing a comma.
Read MoreWrite a character literal representing the (upper case) letter A.
LANGUAGE: C++ CHALLENGE: Write a character literal representing the (upper case) letter A.
Read MoreWrite a character literal representing the digit 1.
LANGUAGE: C++ CHALLENGE: Write a character literal representing the digit 1.
Read MoreDeclare a character variable named c.
LANGUAGE: C++ CHALLENGE: Declare a character variable named c.
Read MoreGiven two double variables, bestValue and secondBestValue, write some code that swaps their values.
LANGUAGE: C++ CHALLENGE: Given two double variables, bestValue and secondBestValue, write some code that swaps their values. Declare any additional variables as necessary.
Read More