473,399 Members | 3,656 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,399 software developers and data experts.

std::map in VC 6.0

Can smb help me?:
here is the code

#include <map>

using namespace std;

std::map<int, std::stringsome_map;
....

this thing isn't working... Am i doing something wrong?? i need to
create map object with int key and string value... :S:S

Sep 4 '06 #1
5 1897

Dymus wrote:
Can smb help me?:
here is the code

#include <map>

using namespace std;

std::map<int, std::stringsome_map;
...

this thing isn't working... Am i doing something wrong?? i need to
create map object with int key and string value... :S:S
#include <map>
#include <string>

using namespace std;

std::map<int, std::stringsome_map;

even this wont help :S

Sep 4 '06 #2

Dymus wrote:
Can smb help me?:
here is the code

#include <map>

using namespace std;

std::map<int, std::stringsome_map;
...

this thing isn't working... Am i doing something wrong?? i need to
create map object with int key and string value... :S:S
#include <map>
#include <string>

using namespace std;

std::map<int, std::stringsome_map;

even this wont help :S

Sep 4 '06 #3
compiler starts to give errors already on
#include <map>

statement

Sep 4 '06 #4

Dymus wrote:
compiler starts to give errors already on
#include <map>

statement
Found solution:
trick is that you have to include stl libaries before anything else.

Sep 4 '06 #5
"Dymus" <di*************@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
>
Dymus wrote:
compiler starts to give errors already on
#include <map>

statement
Found solution:
trick is that you have to include stl libaries before anything else.
Congratulations!

Next time you ask for help, you might get a better response if you follow
this advice:

http://www.parashift.com/c++-faq-lit...t.html#faq-5.8

Help us to help you.

Philip

Sep 4 '06 #6

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

Similar topics

1
by: Saeed Amrollahi | last post by:
Dear All C++ Programmers Hello I am Saeed Amrollahi. I am a software engineer in Tehran Sewerage Company. I try to use std::map and map::find member function. I use Visual Studio .NET. my...
19
by: Erik Wikström | last post by:
First of all, forgive me if this is the wrong place to ask this question, if it's a stupid question (it's my second week with C++), or if this is answered some place else (I've searched but not...
3
by: Dan Trowbridge | last post by:
Hi everyone, In my attempt to port code from VS 6.0 to VS.NET I had some code break along the way, mostly due to not adhereing closely to the C++ standard. This may be another instance but I...
1
by: Avery Fong | last post by:
The following program will result in a compile error when building under Debug but will compile under Release. Why does is work under Release mode but not under Debug This program is developed...
13
by: kamaraj80 | last post by:
Hi I am using the std:: map as following. typedef struct _SeatRowCols { long nSeatRow; unsigned char ucSeatLetter; }SeatRowCols; typedef struct _NetData
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.