Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: CodeEditor, Assist++, Topic++ » Help VectorMap !!!
Help VectorMap !!! [message #12827] Mon, 19 November 2007 19:38 Go to previous message
digodigo is currently offline  digodigo
Messages: 4
Registered: November 2007
Junior Member

I have a problem when I try to use 3 arguments Confused

see my source:

private:
VectorMap<String, String> mHostList;



Hosts::Hosts()
{
	mHostList.Clear();
	
	FileIn fs;
	if (fs.Open(".\\whls.cfg")) {
		while (!fs.IsEof()) {
			String line = fs.GetLine();
			
			int pos = line.Find(';');             
			int pos1 = line.Find(';', pos + 1);
			int pos2 = line.Find(';', pos1 - 1);
			
			if (pos > 0 && pos1 > 0 && pos2 > 0) {
				String id = line.Left(pos);
				
				String ipAddr = line.Mid(pos + 1, pos1 - pos - 1);
				
				
				String port = line.Right(line.GetLength() - pos2 - 1);
				
				
				[B]mHostList.Add(id, ipAddr, port);[/B] // error here !!!
				
			}
		}
		fs.Close();
	}
}




That appears error:

C:\MyApps\MyAplication\hosts.cpp(27) : error C2661: 'AMap<K,T,V,HashFn>::Add' : no overloaded functi
on takes 3 arguments
with
[
K=String,
T=String,
V=Vector<String>,
HashFn=StdHash<String>
]
MyAplication: 1 file(s) built in (0:03.31), 3313 msecs / file, duration = 3438 msecs


help me plz Crying or Very Sad

ps: Sorry for my English... Embarassed

[Updated on: Mon, 19 November 2007 19:40]

Report message to a moderator

 
Read Message
Read Message
Previous Topic: Topic++ : how to add pictures to text
Next Topic: make CodeEditor go to first line with an error automatically [FEATURE REQUEST]
Goto Forum:
  


Current Time: Thu Apr 25 01:07:56 CEST 2024

Total time taken to generate the page: 1.96213 seconds