#include #include // problem #1 // precondition: a = 0; int sumfunction(apvector &vector, int a) { if (a == vector.length()) return 0; else return vector[a] + sumfunction(vector, a+1); } // problem #2 // precondition: row and column are both > 0, and column <= row int pascaltriangle(int row, int col) { if (col == 1 || (row == col)) return 1; else return pascaltriangle(row-1, col-1)+pascaltriangle(row, col-1); } // problem #3 // precondition currentpost starts at 0 void makeupper(apstring &a, int currentpos) { if (currentpos == a.length()) return; else if (a[currentpos] >= 'a' && a[currentpos] <= 'z') a[currentpos] += 'A'-'a'; } int main() { return 0; }