473,387 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

What's wrong with my Map ???

hi guys,

so i tried to create a map of numbers and with the number of times
thata specific number appears as follows :
map<int,int> allNumbers;
const int MAX=10;

void storeNumbersToMap()
{
int j=0;

for(int i=0; i<allSetsOfNumbers.size();i++)
{
vector<int>numbers= allSetsOfNumbers[i].getNumbers();//returns
const vector
while ( j < MAX )
allNumbers[numbers[j]]++;
}
}

but i keep getting the following error message...........

C:\Lottery\lottery.cpp(206) : warning C4786:
'std::reverse_bidirectional_iterator<std::_Tree<in t,std::pair<int
const ,int>,std::map<int,int,std::less<int>,std::allocat or<int>
::_Kfn,std::less<int>,std::allocator<int> >::iterator,std::pair<int

const
,int>,std::pair<int const ,int> &,std::pair<int const ,int> *,int>' :
identifier was truncated to '255' characters in the debug information

can anyone tell me why.....what does this error mean? i thought that a
map can hold elements and values of any type?

thanks
Liza
Jul 19 '05 #1
1 2379
"Liza" <li*******@yahoo.co.uk> wrote...
so i tried to create a map of numbers and with the number of times
thata specific number appears as follows :
map<int,int> allNumbers;
const int MAX=10;

void storeNumbersToMap()
{
int j=0;

for(int i=0; i<allSetsOfNumbers.size();i++)
{
vector<int>numbers= allSetsOfNumbers[i].getNumbers();//returns
const vector
while ( j < MAX )
allNumbers[numbers[j]]++;
'j' is not being incremented here. Are you sure you need
this infinite loop?
}
}

but i keep getting the following error message...........
It's not an error message.

C:\Lottery\lottery.cpp(206) : warning C4786:
'std::reverse_bidirectional_iterator<std::_Tree<in t,std::pair<int
const ,int>,std::map<int,int,std::less<int>,std::allocat or<int>
::_Kfn,std::less<int>,std::allocator<int> >::iterator,std::pair<int

const
,int>,std::pair<int const ,int> &,std::pair<int const ,int> *,int>' :
identifier was truncated to '255' characters in the debug information

can anyone tell me why.....what does this error mean? i thought that a
map can hold elements and values of any type?


It's a warning. Put the cursor on the number (C4786) and press F1.

Victor
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
5
by: titan0111 | last post by:
#include<iostream> #include<iomanip> #include<cstring> #include<fstream> using namespace std; class snowfall { private: int ft;
72
by: E. Robert Tisdale | last post by:
What makes a good C/C++ programmer? Would you be surprised if I told you that it has almost nothing to do with your knowledge of C or C++? There isn't much difference in productivity, for...
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
28
by: Madhur | last post by:
Hello what about this nice way to open a file in single line rather than using if and else. #include<stdio.h> void main() { FILE *nd; clrscr();...
56
by: Cherrish Vaidiyan | last post by:
Frinds, Hope everyone is doing fine.i feel pointers to be the most toughest part in C. i have just completed learning pointers & arrays related portions. I need to attend technical interview on...
46
by: Keith K | last post by:
Having developed with VB since 1992, I am now VERY interested in C#. I've written several applications with C# and I do enjoy the language. What C# Needs: There are a few things that I do...
13
by: Jason Huang | last post by:
Hi, Would someone explain the following coding more detail for me? What's the ( ) for? CurrentText = (TextBox)e.Item.Cells.Controls; Thanks. Jason
9
by: Pyenos | last post by:
import cPickle, shelve could someone tell me what things are wrong with my code? class progress: PROGRESS_TABLE_ACTIONS= DEFAULT_PROGRESS_DATA_FILE="progress_data" PROGRESS_OUTCOMES=
3
by: Siong.Ong | last post by:
Dear all, my PHP aims to update a MySQL database by selecting record one by one and modify then save. Here are my PHP, but I found that it doesnt work as it supposed to be, for example, when...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.