From 16513a85b09b1240c8facc5d2a81b8e6c3f8fc9d Mon Sep 17 00:00:00 2001 From: Ric Rodriguez Date: Thu, 27 Jul 2017 14:48:37 -0700 Subject: [PATCH 1/3] Fixed compiler complaints --- sampledata.csv | 50 +++++++++++++++++++++++++++++++++++++++++++++++ src/ChartParser.h | 2 +- 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 sampledata.csv diff --git a/sampledata.csv b/sampledata.csv new file mode 100644 index 0000000..c6905ce --- /dev/null +++ b/sampledata.csv @@ -0,0 +1,50 @@ +0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 +0 2 2 2 2 0 0 0 0 0 +2 2 2 2 2 2 2 2 0 0 +2 2 2 2 2 2 2 2 2 0 +0 0 1 1 1 0 0 0 0 0 +1 1 1 1 1 0 0 0 0 0 +1 1 1 1 1 0 0 0 0 0 +1 1 1 1 1 0 0 4 4 4 +1 1 1 1 1 0 0 4 4 4 +1 1 1 1 1 1 1 1 1 1 +1 1 1 1 1 1 1 1 1 1 +1 1 1 1 1 1 1 1 1 1 +0 0 0 2 2 0 0 0 0 0 +0 0 0 2 2 0 0 0 0 0 +0 0 2 2 2 0 0 0 0 0 +0 0 2 2 2 0 0 0 0 0 +0 2 2 2 2 0 0 0 0 0 +1 2 2 2 2 1 1 0 0 0 +1 1 1 1 1 1 1 1 1 1 +1 1 1 1 1 1 1 1 1 1 +1 1 1 1 1 1 1 1 1 1 +3 3 3 3 3 3 0 0 0 0 +3 3 3 3 3 3 0 0 0 0 +0 0 0 3 3 0 0 0 0 0 +2 2 2 2 2 2 2 2 0 0 +3 3 3 3 3 0 0 0 0 0 +3 3 3 3 3 3 0 0 0 0 +3 3 3 3 3 3 3 3 3 3 +3 3 3 3 3 1 3 3 1 1 +1 1 1 1 1 1 1 1 1 1 +3 3 3 3 3 3 3 3 3 3 +0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 +0 0 1 1 1 0 0 0 0 0 +1 1 1 1 1 0 0 0 0 0 +1 1 1 1 1 0 0 0 0 0 +1 1 1 1 1 0 0 0 0 0 +1 1 1 1 1 0 0 0 0 0 +1 1 1 1 1 1 1 1 1 1 +1 1 1 1 1 1 1 1 1 1 +1 1 1 1 1 1 1 1 1 1 +1 1 1 1 1 1 1 1 1 1 +1 1 1 1 1 1 1 1 1 1 \ No newline at end of file diff --git a/src/ChartParser.h b/src/ChartParser.h index d188d90..9dd81e8 100644 --- a/src/ChartParser.h +++ b/src/ChartParser.h @@ -27,7 +27,7 @@ class ChartParser { virtual ~ChartParser(); private: vector> table; - sumOfVector(vector & cards); + int sumOfVector(vector & cards); }; From b5e08dd6188247b44c8ba29a703850382fc0caa8 Mon Sep 17 00:00:00 2001 From: Ric Rodriguez Date: Tue, 10 Oct 2017 23:24:55 -0700 Subject: [PATCH 2/3] Add files via upload --- pa2.java | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pa2.java diff --git a/pa2.java b/pa2.java new file mode 100644 index 0000000..5e91ca9 --- /dev/null +++ b/pa2.java @@ -0,0 +1,25 @@ +package pa1; + +import java.util.Scanner; + +public class pa2 { + public static void main(String[] args) { + Scanner scanner = new Scanner(System.in); + while(true) { + int N = Integer.parseInt(scanner.nextLine()); + + String students[] = new String[N]; + + for(int i = 0; i < N; i++) { + students[i] = scanner.nextLine(); + } + + for(int i = 0; i < N; i++) { + String name = students[i].split(" ")[0]; + int grade = Integer.parseInt(students[i].split(" ")[1]); + System.out.println(String.format("%-10s %03d", name, grade)); + } + } + } + +} From 105f0f7139f4ccbf858be9c402394163096cccf9 Mon Sep 17 00:00:00 2001 From: Ric Rodriguez Date: Wed, 11 Oct 2017 01:06:50 -0700 Subject: [PATCH 3/3] Delete pa2.java --- pa2.java | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 pa2.java diff --git a/pa2.java b/pa2.java deleted file mode 100644 index 5e91ca9..0000000 --- a/pa2.java +++ /dev/null @@ -1,25 +0,0 @@ -package pa1; - -import java.util.Scanner; - -public class pa2 { - public static void main(String[] args) { - Scanner scanner = new Scanner(System.in); - while(true) { - int N = Integer.parseInt(scanner.nextLine()); - - String students[] = new String[N]; - - for(int i = 0; i < N; i++) { - students[i] = scanner.nextLine(); - } - - for(int i = 0; i < N; i++) { - String name = students[i].split(" ")[0]; - int grade = Integer.parseInt(students[i].split(" ")[1]); - System.out.println(String.format("%-10s %03d", name, grade)); - } - } - } - -}