1
Fork 0

Fixed namespace problems!

This commit is contained in:
Jake Howard 2015-10-12 12:55:12 +01:00
parent 903656f674
commit 3ab7321c85
2 changed files with 3 additions and 4 deletions

View file

@ -1,10 +1,9 @@
#include <string>
#include <iostream>
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;
}
}

View file

@ -1,4 +1,4 @@
#include "ui/ui.cpp"
#include "UI/ui.cpp"
int main() {
UI::displayMainMenu();