I am new to class templates and am having trouble. I have a function that doesn't declare (ie. to be an int, double etc). But it doesn't make sense to declare in this function. Therefore I am getting errors. Thanks for the help.

I have the following function:

```
bool QueType<ItemType>::IsEmpty() const
// Returns true if there are no elements on the queue and false otherwise.
{
    return (front == NULL);
}

```

This returns the following errors:

Error 1 error C2065: 'ItemType' : undeclared identifier 
Error 2 error C2955: 'QueType' : use of class template requires template argument list  

Error 3 error C2509: 'IsEmpty' : member function not declared in 'QueType'
['https://Stackoverflow.com/questions/12714602', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1060794/']
You need to put your database name after the MySQL port (:3306/DB\_name). Here's one of my connections:

```
import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.SQLException;

public class MySQL{

    static Connection connect;
    public static void main(String[] args) throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException {
    Credentials();

    Class.forName ("com.mysql.jdbc.Driver").newInstance ();

    String url = "jdbc:mysql://" + host + ":3306/" + datab;

    Driver test = DriverManager.getDriver(url);
    // testing to make sure i'm using the correct
    //driver and further testing host
    System.out.println(test);
    connect = DriverManager.getConnection(url, userName, password);

    System.out.println ("Connected to " + host);
    }
}

```

You'll need to supply the "host" and "datab" string values
I hate to add a new post to something so old but I ran across the same issues with GoDaddy and their dbname.db.######.hostedresource.com implementation. Granted, I looked across a few Overflow posts and saw no mention of the direct IP method; hopefully I'm not breaking some GoDaddy code here.

Any who, the only way I was able to connect through my Workbench & through JDBC was by going to the PHP admin page and grabbing the direct IP to the database - in my case : 

```
private static final String URL = "jdbc:mysql://11.11.111.11:3306/dbname";

```