This file contains hidden or 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 <iostream> | |
using namespace std; | |
template <class E> | |
class LinkedList | |
{ | |
struct Node; | |
Node* first; |
This file contains hidden or 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
#define _USE_MATH_DEFINES | |
#define L_TO_CU_FT 28.32 | |
#include <iostream> | |
#include <math.h> | |
#include <sstream> | |
using namespace std; | |
void getDimensions(double&, double&); |
This file contains hidden or 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 <iostream> | |
#include <string> | |
using namespace std; | |
class passed | |
{ | |
char *str; |
This file contains hidden or 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
int length = 100; //value of length can be determined at run-time | |
int *dyn = new int[length]; //new int[length] returns a pointer to | |
//first element of the array. | |
cout << "Using pointers:" << endl; | |
*dyn = 10; //dyn[0] and *dyn are equivalent! | |
*(dyn + 1) = 15; // *(dyn + 1) and dyn[1] are equivalent! |
NewerOlder