Find all of the errors in the following code. There are at least 7.
double twice(double za);
{
return za * 2;
if (za == 0)| #include <vector> | |
| #include <iostream> | |
| struct ListNode { | |
| int data; | |
| ListNode * next; | |
| }; | |
| ListNode * construct_linked_list(std::vector<int> const & v) { | |
| ListNode * head = NULL; |
Write a program that walks the user through an old-style Choose Your Own Adventure (CYOA) story. An example run through of such a program is given below:
You wake up to find yourself in the entry hall of a mansion. There are two doors in the hall, one leading outside, another leads further into the mansion.
- Go outside
- Go further into the mansion
Select an option: 2
| # John Sullivan | |
| Portfolio at www.johnsullivan.name | |
| ## Technologies | |
| Here are some technologies that I have had a strong history with and | |
| wish to work with in the future. Listed in no particular order. | |
| * Languages: Python, C, C++, C#, JavaScript |