From 3ab7321c85aa199c47ee0e6fb8b43bd44802fd2a Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 12 Oct 2015 12:55:12 +0100 Subject: [PATCH] Fixed namespace problems! --- src/UI/ui.cpp | 5 ++--- src/main.cpp | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/UI/ui.cpp b/src/UI/ui.cpp index c435a34..0088275 100644 --- a/src/UI/ui.cpp +++ b/src/UI/ui.cpp @@ -1,10 +1,9 @@ -#include #include namespace UI { - char[] ::mainMenu = "Hey look, it's the main menu!"; + static std::string mainMenu = "Hey look, it's the main menu!"; void displayMainMenu() { - std::cout << UI::mainMenu << std::endl; + std::cout << mainMenu << std::endl; } } diff --git a/src/main.cpp b/src/main.cpp index 2ff105b..0c7166c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,4 +1,4 @@ -#include "ui/ui.cpp" +#include "UI/ui.cpp" int main() { UI::displayMainMenu();