Fixed namespace problems!
This commit is contained in:
parent
903656f674
commit
3ab7321c85
2 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "ui/ui.cpp"
|
||||
#include "UI/ui.cpp"
|
||||
|
||||
int main() {
|
||||
UI::displayMainMenu();
|
||||
|
|
Reference in a new issue