Nichtaufgeloestes externes Symbol



  • habe folgendes problem:

    void foo();
    [...]
    
    case 2: foo();
    	break;
    
    [...]
    
    void foo()
    {
    	int HowMany;
    	cout << "Anzahl: ";cin >> HowMany;
    
    //klasse auf heap
    	CLASS *pClass = new CLASS[HowMany];
    	delete [] pClass;
    }
    

    danke für eure zeit



  • schonmal im vorraus an alle, die es noch nicht mitbekommen haben: don't feed the trolls...



  • da gibts auch nicht mehr o_O

    int main()
    {
    	while(menu()!=true)
    	{
    		menu();
    	}
    	cout << "Aufwiedersehen!"<<endl;
    	return 0;
    }
    
    bool menu()
    {
    	bool fQuit = false;
    	int cChoice;
    	cout << "1. anzeigen"<<endl;
    	cout << "2. erzeugen"<<endl;
    	cout << "0. Beenden"<<endl<<endl;
    	cout << "Auswahl: ";cin>>cChoice;
    
    	switch(cChoice)
    	{
    		default: fQuit = true;
    			break;
    		case 1: break;
    
    		case 2: foo();
    			break;
    
    		case 0: fQuit = true;
    			break;
    	}
    	return fQuit;
    }
    
    void foo()
    {
    }
    

    Nichtaufgeloestes externes Symbol "void __cdecl foo(void)" (?foo@@YAXXZ)


Anmelden zum Antworten