0

Hey im just trying to get back into c++ and i cant seem to solve why this is happning?

I know theres too many header files also, i just normally leave them there in practise things when im messing with colours etc.

Could you also please explain why it is not working so I can understand and not make the
same mistake in future? Thanks!

//Header files
#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
#include<iomanip>
#include<string>
using namespace std;


int level = 1;

 void cork()
 {
 
 //cork: start village
 cout<<"\n\nYou enter the village";
 cout<<"\n1. Tavern\n2. Blacksmith\n3. Mage's Guild\n4. Training Area\n\n"; 
getch();  

}   




int main()
{
 string name;
 
 
    
 cout<<"Enter your name noble warrior\n";
 cin>>name;   
 cout<<"\nYou are currently Level: " << level << "!";
 
        
 getch();
 void cork();
 }
3
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by frogboy77
0

When I run the program it will not call the function cork, it stops at the end of the main function

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.