From 3dbbabdb1d5d990ac2c5bd03a0437d8395b31a4a Mon Sep 17 00:00:00 2001 From: Connor McDowell Date: Sat, 10 Feb 2024 12:37:31 -0800 Subject: i dunno whats wrong its saying there should be a ; where there shouldnt and erroring --- Project1/program.cpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'Project1/program.cpp') diff --git a/Project1/program.cpp b/Project1/program.cpp index c21c58a..ddd5d58 100644 --- a/Project1/program.cpp +++ b/Project1/program.cpp @@ -5,26 +5,23 @@ #include #include +#include #include "helper.h" -using std::cout; -using std::cin; -using std::endl; - int main() { - /*int cArray[SIZE]; + int cArray[SIZE]; for(int i = 0; i < SIZE; i++) { cArray[i] = i; } - int t;*/ + int t; - //std::array a = { t }; + std::array stdArray = { }; for(int t = 0; t < SIZE; t++) @@ -32,9 +29,7 @@ int main() stdArray[t] = t; } - //Print(&stdArray); - - void Print_std(std::array stdArray[]); + Print_std(&stdArray); /*Print(cArray);*/ -- cgit v1.2.3