Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
4003CEM-pointers/lab_pointer.cpp
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
27 lines (23 sloc)
678 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "lab_pointer.h" | |
#include <array> | |
#include <string> | |
int main() | |
{ | |
int myInt = 1; | |
unsigned int myUInt = 2; | |
short myShort = 3; | |
char myChar = 'A'; | |
float myFloat = 1.23; | |
double myDouble = 2.31; | |
std::string myString = "hello"; | |
std::array<int,10> myArray {1,2,3,4,5,6,7,8,9,10}; | |
test_int( /*COMPLETE ME, I NEED A POINTER TO AN INT*/ ); | |
test_uint( /*COMPLETE ME, I NEED A POINTER TO AN UNSIGNED INT*/ ); | |
test_short( /*COMPLETE ME, I NEED A POINTER TO A SHORT*/ ); | |
test_char( /*COMPLETE ME, I NEED A POINTER TO ETC*/ ); | |
test_float( /*COMPLETE ME*/ ); | |
test_double( /*COMPLETE ME*/ ); | |
test_string( /*COMPLETE ME*/ ); | |
test_array( /*COMPLETE ME*/ ); | |
return 0; | |
} |