473,385 Members | 1,712 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,385 software developers and data experts.

Does Vector is not supported by VC++ 6.0??

I have used vector in the VC++ compiler. I have included

#include <string>
#include <algorithm>
#include <vector>

std::vector<int> field;
std::vector <int>::size_type i;
test.cpp(135) : error C2653: 'std' : is not a class or namespace name
error C2143: syntax error : missing ';' before '<'
error C2501: 'vector' : missing storage-class or type specifiers
error C2143: syntax error : missing ';' before '<'
error C2653: 'std' : is not a class or namespace name
Does anybody know what is the problem??

Regards
Bubunia
Jul 22 '05 #1
35 3300

"Ram Laxman" <ra********@india.com> wrote in message
news:24**************************@posting.google.c om...
I have used vector in the VC++ compiler. I have included

#include <string>
#include <algorithm>
#include <vector>

std::vector<int> field;
std::vector <int>::size_type i;
test.cpp(135) : error C2653: 'std' : is not a class or namespace name
error C2143: syntax error : missing ';' before '<'
error C2501: 'vector' : missing storage-class or type specifiers
error C2143: syntax error : missing ';' before '<'
error C2653: 'std' : is not a class or namespace name
Does anybody know what is the problem??

Regards
Bubunia


vector is supported by VC++6 and your code looks correct. So either the code
you've posted isn't the code you've compiled, or your compiler is installed
incorrectly (perhaps its looking in the wrong places for header files).

john
Jul 22 '05 #2
Ram Laxman wrote:
I have used vector in the VC++ compiler. I have included

#include <string>
#include <algorithm>
#include <vector>

std::vector<int> field;
std::vector <int>::size_type i;
test.cpp(135) : error C2653: 'std' : is not a class or namespace name
error C2143: syntax error : missing ';' before '<'
error C2501: 'vector' : missing storage-class or type specifiers
error C2143: syntax error : missing ';' before '<'
error C2653: 'std' : is not a class or namespace name
Does anybody know what is the problem??


Try it without "std::".

Jul 22 '05 #3
Ram Laxman wrote:
I have used vector in the VC++ compiler. I have included

#include <string>
#include <algorithm>
#include <vector>

std::vector<int> field;
std::vector <int>::size_type i;
test.cpp(135) : error C2653: 'std' : is not a class or namespace name
error C2143: syntax error : missing ';' before '<'
error C2501: 'vector' : missing storage-class or type specifiers
error C2143: syntax error : missing ';' before '<'
error C2653: 'std' : is not a class or namespace name
Does anybody know what is the problem??


You obviously haven't posted the code that produced the above error so
it will be hard to help you. Have you tried compiling the 6 lines you
have posted by themselves?

Mike
Jul 22 '05 #4


Michael Mellor wrote:
Ram Laxman wrote:
I have used vector in the VC++ compiler. I have included

#include <string>
#include <algorithm>
#include <vector>

std::vector<int> field; std::vector <int>::size_type i; Remove this ^ space

test.cpp(135) : error C2653: 'std' : is not a class or namespace name
error C2143: syntax error : missing ';' before '<'
error C2501: 'vector' : missing storage-class or type specifiers
error C2143: syntax error : missing ';' before '<'
error C2653: 'std' : is not a class or namespace name
Does anybody know what is the problem??


You obviously haven't posted the code that produced the above error so
it will be hard to help you. Have you tried compiling the 6 lines you
have posted by themselves?

Mike


Jul 22 '05 #5
Użytkownik Ram Laxman napisał:
I have used vector in the VC++ compiler. I have included

#include <string>
#include <algorithm>
#include <vector>

std::vector<int> field;
std::vector <int>::size_type i;


test.cpp(135) : error C2653: 'std' : is not a class or namespace name
error C2143: syntax error : missing ';' before '<'
error C2501: 'vector' : missing storage-class or type specifiers
error C2143: syntax error : missing ';' before '<'
error C2653: 'std' : is not a class or namespace name


Does anybody know what is the problem??


That silly "std is not a class or namespace name" error message
reminds me of a situation I had once. I had a missing closing brace
in a header file. Perhaps you're including something that you didn't
show here and this causes the problem? Just an idea.

HTH,
- J.
Jul 22 '05 #6
Michael Groys wrote:
Michael Mellor wrote:
Ram Laxman wrote:
I have used vector in the VC++ compiler. I have included

#include <string>
#include <algorithm>
#include <vector>

std::vector<int> field;
std::vector <int>::size_type i;


Remove this ^ space

Are you imposing your coding style on the OP? :). The space is perfectly
legal.

Mike
Jul 22 '05 #7


Michael Mellor wrote:
Michael Groys wrote:
Michael Mellor wrote:
Ram Laxman wrote:

I have used vector in the VC++ compiler. I have included

#include <string>
#include <algorithm>
#include <vector>

std::vector<int> field;

std::vector <int>::size_type i;

Remove this ^ space

Are you imposing your coding style on the OP? :). The space is perfectly
legal.

Mike

The question is whether it is legal with VC or not.
for example this one:
vector<vector<int>> will not work for sure because of
^^
and the only solution is to write
vector<vector<int>/**/>

Best regards, Michael

Jul 22 '05 #8
Michael Groys wrote:
Michael Mellor wrote:
Michael Groys wrote:
Michael Mellor wrote:
Ram Laxman wrote:
> I have used vector in the VC++ compiler. I have included
>
> #include <string>
> #include <algorithm>
> #include <vector>
>
> std::vector<int> field;
> std::vector <int>::size_type i;
Remove this ^ space
Are you imposing your coding style on the OP? :). The space is
perfectly legal.


The question is whether it is legal with VC or not.

If VC++ 6 does not support the space being there it is well broken but
then again it is at least a 6 year old compiler, I wouldn't dream of
using gcc 2.8 which was released about the same time.
for example this one:
vector<vector<int>> will not work for sure because of
^^
and the only solution is to write
vector<vector<int>/**/>


or if vector< vector<int> > doesn't work:

typedef vector<int> int_vector;
vector<int_vector> obj;

Mike
Jul 22 '05 #9
On 8 Feb 2004 03:08:11 -0800 in comp.lang.c++, ra********@india.com (Ram
Laxman) was alleged to have written:
I have used vector in the VC++ compiler. I have included

#include <string>
#include <algorithm>
#include <vector>

std::vector<int> field;
std::vector <int>::size_type i;


Those lines compile with no error using MSVC6 here.

For trouble with your compiler, as opposed to the C++ language issues,
see a newsgroup dedicated to your compiler or platform.
This issue is covered in Marshall Cline's C++ FAQ. It is always good to
check the FAQ before posting. You can get the FAQ at:
http://www.parashift.com/c++-faq-lite/

See the welcome message posted twice per week in comp.lang.c++ or
available at http://www.slack.net/~shiva/welcome.txt

Jul 22 '05 #10
Michael Groys wrote:


Michael Mellor wrote:
Michael Groys wrote:
Michael Mellor wrote:

Ram Laxman wrote:

> I have used vector in the VC++ compiler. I have included
>
> #include <string>
> #include <algorithm>
> #include <vector>
>
> std::vector<int> field;


> std::vector <int>::size_type i;

Remove this ^ space

Are you imposing your coding style on the OP? :). The space is
perfectly legal.

Mike


The question is whether it is legal with VC or not.
for example this one:
vector<vector<int>> will not work for sure because of
^^
and the only solution is to write
vector<vector<int>/**/>


Doesn't "vector<vector<int> >" work?

Jul 22 '05 #11
On Sun, 08 Feb 2004 15:56:38 +0200 in comp.lang.c++, Michael Groys
<mi******@alzt.tau.ac.il> was alleged to have written:
std::vector <int>::size_type i;

Remove this ^ space


Bogus. An extra space there is of no significance.

Jul 22 '05 #12
On Sun, 08 Feb 2004 16:43:06 +0200 in comp.lang.c++, Michael Groys
<mi******@alzt.tau.ac.il> was alleged to have written:
vector<vector<int>> will not work for sure because of
^^
and the only solution is to write
vector<vector<int>/**/>


Wrong, no space-filling comment required. Standard solution is
vector<vector<int> >

Naturally, operator>> will not work there.
Jul 22 '05 #13


David Harmon wrote:
On Sun, 08 Feb 2004 16:43:06 +0200 in comp.lang.c++, Michael Groys
<mi******@alzt.tau.ac.il> was alleged to have written:
vector<vector<int>> will not work for sure because of
^^
and the only solution is to write
vector<vector<int>/**/>

Wrong, no space-filling comment required. Standard solution is
vector<vector<int> >

Naturally, operator>> will not work there.


Just inserting one space doesn't help.
Try it if you don't believe.

Jul 22 '05 #14
Michael Groys wrote:
David Harmon wrote:
On Sun, 08 Feb 2004 16:43:06 +0200 in comp.lang.c++, Michael Groys
<mi******@alzt.tau.ac.il> was alleged to have written:
vector<vector<int>> will not work for sure because of
^^
and the only solution is to write
vector<vector<int>/**/>


Wrong, no space-filling comment required. Standard solution is
vector<vector<int> >

Naturally, operator>> will not work there.


Just inserting one space doesn't help.
Try it if you don't believe.


Firstly, I assume your entire discussion is about VC++ 6.

vector<vector<int> > obj;

is the normal way to solve the problem. I couldn't imagine anyone would
write a compiler in which this does not work. Anyhow, you claim that
VC++ 6 does not support the insertion of a space but a quick google
search suggests it does.

Mike
Jul 22 '05 #15
In article <c0**********@news.iucc.ac.il>,
Michael Groys <mi******@alzt.tau.ac.il> wrote:
David Harmon wrote:
Wrong, no space-filling comment required. Standard solution is
vector<vector<int> >

Naturally, operator>> will not work there.


Just inserting one space doesn't help.
Try it if you don't believe.


You don't know what you're talking about. And you apparently are too
stubborn or arrogant to realize that you might be wrong (and in this
case you *are* wrong).

This is a known ambiguity of the standard, where any
A<B<type> > construct will only compile with the two '>' separated,
typically by whitespace. Refrain from giving advice if your own
ignorance is greater than the OP.
--
Mark Ping
em****@soda.CSUA.Berkeley.EDU
Jul 22 '05 #16
On Sun, 08 Feb 2004 17:21:52 +0200 in comp.lang.c++, Michael Groys
<mi******@alzt.tau.ac.il> was alleged to have written:
David Harmon wrote:
Wrong, no space-filling comment required. Standard solution is
vector<vector<int> >


Just inserting one space doesn't help.
Try it if you don't believe.


Still wrong. Of course I have tried it, many times.
The issue and the fix are well-known, e.g. recently
http://groups.google.com/gr**********************@news.apple.com
http://groups.google.com/groups?selm=rMYMb.47226$xy6.116719@attbi_s02

By the way, I notice the poster's error message refers to line 135, and
he only posted 5 lines of code, therefore he is lying to us about what
the actual code is that produced the message.

Jul 22 '05 #17


Michael Mellor wrote:
Michael Groys wrote:
David Harmon wrote:
On Sun, 08 Feb 2004 16:43:06 +0200 in comp.lang.c++, Michael Groys
<mi******@alzt.tau.ac.il> was alleged to have written:

vector<vector<int>> will not work for sure because of
^^
and the only solution is to write
vector<vector<int>/**/>
Wrong, no space-filling comment required. Standard solution is
vector<vector<int> >

Naturally, operator>> will not work there.

Just inserting one space doesn't help.
Try it if you don't believe.

Firstly, I assume your entire discussion is about VC++ 6.

vector<vector<int> > obj;

is the normal way to solve the problem. I couldn't imagine anyone would
write a compiler in which this does not work. Anyhow, you claim that
VC++ 6 does not support the insertion of a space but a quick google
search suggests it does.

Mike

I didn't do any search in Google concerning this problem, but I did
write programs in VC6 and I got an error.
Did you try it in VC or just in google?

Jul 22 '05 #18
On Sun, 08 Feb 2004 18:05:35 +0200 in comp.lang.c++, Michael Groys
<mi******@alzt.tau.ac.il> was alleged to have written:
I didn't do any search in Google concerning this problem, but I did
write programs in VC6 and I got an error.


Post the code.

Jul 22 '05 #19
"E. Mark Ping" wrote:

This is a known ambiguity of the standard, where any
A<B<type> > construct will only compile with the two '>' separated,
typically by whitespace.


It's not an ambiguity. >> is one token, not two.

--

Pete Becker
Dinkumware, Ltd. (http://www.dinkumware.com)
Jul 22 '05 #20

"Ram Laxman" <ra********@india.com> wrote in message
news:24**************************@posting.google.c om...
I have used vector in the VC++ compiler. I have included

#include <string>
#include <algorithm>
#include <vector>

std::vector<int> field;
std::vector <int>::size_type i;
test.cpp(135) : error C2653: 'std' : is not a class or namespace name
error C2143: syntax error : missing ';' before '<'
error C2501: 'vector' : missing storage-class or type specifiers
error C2143: syntax error : missing ';' before '<'
error C2653: 'std' : is not a class or namespace name


There are several bugs in VC++ 6.0 that affect programs that use vector and
related classes.

Before you do anything else, be sure that the latest service pack for VC++
6.0 (which I think is Service Pack 4) is installed, as it fixes a number of
those bugs.

One bug that is not fixed, and might be related to your problem, is this:

using std::vector;
vector<int>::size_type i;

This code should work, but doesn't work in VC++ 6.0; instead, you have to
say

std::vector<int>::size_type i;

I *think*, but am not certain, that even this latter version of the code
requires Service Pack 4.
Jul 22 '05 #21
David Harmon <so****@netcom.com> wrote in message
news:40***************@news.west.earthlink.net...
On Sun, 08 Feb 2004 17:21:52 +0200 in comp.lang.c++, Michael Groys
<mi******@alzt.tau.ac.il> was alleged to have written:
David Harmon wrote:
Wrong, no space-filling comment required. Standard solution is
vector<vector<int> >


Just inserting one space doesn't help.
Try it if you don't believe.


Still wrong. Of course I have tried it, many times.
The issue and the fix are well-known, e.g. recently
http://groups.google.com/gr**********************@news.apple.com
http://groups.google.com/groups?selm=rMYMb.47226$xy6.116719@attbi_s02

By the way, I notice the poster's error message refers to line 135, and
he only posted 5 lines of code, therefore he is lying to us about what
the actual code is that produced the message.

I think you're right on this. The code showed by OP could be very possibly
not the source of compile errors. In some other place(s) of OP's code,
std::vector used but <vector> not include'd.
Jul 22 '05 #22

"Michael Groys" <mi******@alzt.tau.ac.il> wrote in message
news:c0**********@news.iucc.ac.il...


David Harmon wrote:
On Sun, 08 Feb 2004 16:43:06 +0200 in comp.lang.c++, Michael Groys
<mi******@alzt.tau.ac.il> was alleged to have written:
vector<vector<int>> will not work for sure because of
^^
and the only solution is to write
vector<vector<int>/**/>

Wrong, no space-filling comment required. Standard solution is
vector<vector<int> >

Naturally, operator>> will not work there.


Just inserting one space doesn't help.
Try it if you don't believe.


It works just fine with VC6, as does the OP's posted code.

-Mike
Jul 22 '05 #23

"Michael Groys" <mi******@alzt.tau.ac.il> wrote in message
news:c0**********@news.iucc.ac.il...
vector<vector<int> > obj;

is the normal way to solve the problem. I couldn't imagine anyone would
write a compiler in which this does not work. Anyhow, you claim that
VC++ 6 does not support the insertion of a space but a quick google
search suggests it does.

Mike

I didn't do any search in Google concerning this problem, but I did
write programs in VC6 and I got an error.


OK post the *exact* code you tried, and the exact text of any error
messages.

-Mike
Jul 22 '05 #24

"E. Mark Ping" <em****@soda.csua.berkeley.edu> wrote in message
news:c0***********@agate.berkeley.edu...
In article <c0**********@news.iucc.ac.il>,
Michael Groys <mi******@alzt.tau.ac.il> wrote:
David Harmon wrote:
Wrong, no space-filling comment required. Standard solution is
vector<vector<int> >

Naturally, operator>> will not work there.
Just inserting one space doesn't help.
Try it if you don't believe.


You don't know what you're talking about. And you apparently are too
stubborn or arrogant to realize that you might be wrong (and in this
case you *are* wrong).

This is a known ambiguity of the standard,

What ambiguity?
where any
A<B<type> > construct will only compile with the two '>' separated,
typically by whitespace.

That's the *only* way to 'separate' them.

'>' and '>>' are two separate tokens.
Refrain from giving advice if your own
ignorance is greater than the OP.


:-)

-Mike
Jul 22 '05 #25
"Andrew Koenig" <ar*@acm.org> wrote in message
news:r5**********************@bgtnsc05-news.ops.worldnet.att.net...

There are several bugs in VC++ 6.0 that affect programs that use vector and related classes.

Before you do anything else, be sure that the latest service pack for VC++
6.0 (which I think is Service Pack 4) is installed, as it fixes a number of those bugs.

One bug that is not fixed, and might be related to your problem, is this:

using std::vector;
vector<int>::size_type i;

This code should work, but doesn't work in VC++ 6.0; instead, you have to
say

std::vector<int>::size_type i;
Yes, I've run into that myself.
I *think*, but am not certain, that even this latter version of the code
requires Service Pack 4.


<OT info>
Last Service Pack for VC6 is SP5, dowloadable from msdn.microsoft.com,
or can be obtained on CD for a nominal shipping fee.
</OT info>

-Mike
Jul 22 '05 #26
On Sun, 08 Feb 2004 17:53:18 GMT in comp.lang.c++, "Deming He"
<de*******@worldnet.att.net> was alleged to have written:

I think you're right on this. The code showed by OP could be very possibly
not the source of compile errors. In some other place(s) of OP's code,
std::vector used but <vector> not include'd.


Missing semicolon on preceding line, who knows? Could be anything.

Jul 22 '05 #27
In article <40***************@acm.org>,
Pete Becker <pe********@acm.org> wrote:
"E. Mark Ping" wrote:

This is a known ambiguity of the standard, where any
A<B<type> > construct will only compile with the two '>' separated,
typically by whitespace.


It's not an ambiguity. >> is one token, not two.


Poor wording on my part--I was aware that the space was necessary to
make it two tokens instead of one. Thanks for the correction.
--
Mark Ping
em****@soda.CSUA.Berkeley.EDU
Jul 22 '05 #28
You have a "space" between std::vector and <int>
std::vector <int>::size_type i;

"Ram Laxman" <ra********@india.com> wrote in message
news:24**************************@posting.google.c om...
I have used vector in the VC++ compiler. I have included

#include <string>
#include <algorithm>
#include <vector>

std::vector<int> field;
std::vector <int>::size_type i;
test.cpp(135) : error C2653: 'std' : is not a class or namespace name
error C2143: syntax error : missing ';' before '<'
error C2501: 'vector' : missing storage-class or type specifiers
error C2143: syntax error : missing ';' before '<'
error C2653: 'std' : is not a class or namespace name
Does anybody know what is the problem??

Regards
Bubunia

~ Let us linux ~
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 22 '05 #29
Ricky Lung wrote:
You have a "space" between std::vector and <int>
std::vector <int>::size_type i;


No. Spaces dont matter.

std :: vector <int> :: size_type t;

compiles fine with VC6.

And please dont toppost.

Christoph
Jul 22 '05 #30


Mike Wahler wrote:
"Michael Groys" <mi******@alzt.tau.ac.il> wrote in message
news:c0**********@news.iucc.ac.il...
vector<vector<int> > obj;

is the normal way to solve the problem. I couldn't imagine anyone would
write a compiler in which this does not work. Anyhow, you claim that
VC++ 6 does not support the insertion of a space but a quick google
search suggests it does.

Mike


I didn't do any search in Google concerning this problem, but I did
write programs in VC6 and I got an error.

OK post the *exact* code you tried, and the exact text of any error
messages.

-Mike


Ok, SP 4 indeed fixed this problem, but in initial Version of VC 6

the following code, didn't work

class MyClass: public MyClassT<vector<int> >
{
public:
// with any number of spaces on the next line.
MyClass(int i): MyClassT<vector<int> > (i)
{...}
};

And this has nothing to do with standard.

Don't worry be happy, Michael

Jul 22 '05 #31
"Michael Groys" <mi******@alzt.tau.ac.il> wrote in message
news:c0**********@news.iucc.ac.il...


Mike Wahler wrote:
"Michael Groys" <mi******@alzt.tau.ac.il> wrote in message
news:c0**********@news.iucc.ac.il...
vector<vector<int> > obj;

is the normal way to solve the problem. I couldn't imagine anyone would
write a compiler in which this does not work. Anyhow, you claim that
VC++ 6 does not support the insertion of a space but a quick google
search suggests it does.

Mike

I didn't do any search in Google concerning this problem, but I did
write programs in VC6 and I got an error.

OK post the *exact* code you tried, and the exact text of any error
messages.

-Mike


Ok, SP 4 indeed fixed this problem, but in initial Version of VC 6


Note that the latest patch for VC6 is SP5

the following code, didn't work

class MyClass: public MyClassT<vector<int> >
{
public:
// with any number of spaces on the next line.
MyClass(int i): MyClassT<vector<int> > (i)
{...}
};

And this has nothing to do with standard.


Your problem had to do with a broken compiler.

But we do use the standard to determine code correctness.
We obviously can't use a compiler, because, as you've seen,
sometimes they're broken. (Look up "quality of implementation").

-Mike
Jul 22 '05 #32


Mike Wahler wrote:

Your problem had to do with a broken compiler.

But we do use the standard to determine code correctness.
We obviously can't use a compiler, because, as you've seen,
sometimes they're broken. (Look up "quality of implementation").

-Mike

You are right, but I was talking about concrete problem that was in VC 6
and not about the standard.
Thats all.

BTW does somebody knows how to determine what SP of VC is installed.
In Help->About this information doesn't appear.
Michael

Jul 22 '05 #33
ra********@india.com (Ram Laxman) wrote in message news:<24**************************@posting.google. com>...
I have used vector in the VC++ compiler. I have included

#include <string>
#include <algorithm>
#include <vector>

std::vector<int> field;
std::vector <int>::size_type i;
test.cpp(135) : error C2653: 'std' : is not a class or namespace name
error C2143: syntax error : missing ';' before '<'
error C2501: 'vector' : missing storage-class or type specifiers
error C2143: syntax error : missing ';' before '<'
error C2653: 'std' : is not a class or namespace name
Does anybody know what is the problem??

Regards
Bubunia


Most likely you have an error in one of the header files or
declarations you are including before line 135 that you have omitted,
for example defining a class or an enum without putting a semicolon
after it.
Jul 22 '05 #34

"Michael Groys" <mi******@alzt.tau.ac.il> wrote in message
news:c0**********@news.iucc.ac.il...


Mike Wahler wrote:

Your problem had to do with a broken compiler.

But we do use the standard to determine code correctness.
We obviously can't use a compiler, because, as you've seen,
sometimes they're broken. (Look up "quality of implementation").

-Mike

You are right, but I was talking about concrete problem that was in VC 6
and not about the standard.
Thats all.


Right, you were dealing with a compiler problem, not a language issue.
Of course, it took asking here to determine that (iow you needed to
know if the compiler was implementing the language correctly). But
once that has been determined (compiler problem), that makes your issue
off-topic here.

BTW does somebody knows how to determine what SP of VC is installed.
In Help->About this information doesn't appear.


You're asking another OFF TOPIC question. We discuss ONLY the (ISO)
standard) language here.

Ask about Visual C++ in Visual C++ newsgroups. You can find them
by visiting www.msdn.microsoft.com/newsgroups

-Mike
Jul 22 '05 #35
On Sun, 08 Feb 2004 18:05:35 +0200, Michael Groys
<mi******@alzt.tau.ac.il> wrote:
Michael Mellor wrote:
Michael Groys wrote:
David Harmon wrote:

On Sun, 08 Feb 2004 16:43:06 +0200 in comp.lang.c++, Michael Groys
<mi******@alzt.tau.ac.il> was alleged to have written:

> vector<vector<int>> will not work for sure because of
> ^^
> and the only solution is to write
> vector<vector<int>/**/>
Wrong, no space-filling comment required. Standard solution is
vector<vector<int> >

Naturally, operator>> will not work there.
Just inserting one space doesn't help.
Try it if you don't believe.

Firstly, I assume your entire discussion is about VC++ 6.

vector<vector<int> > obj;

is the normal way to solve the problem. I couldn't imagine anyone would
write a compiler in which this does not work. Anyhow, you claim that
VC++ 6 does not support the insertion of a space but a quick google
search suggests it does.

Mike

I didn't do any search in Google concerning this problem, but I did
write programs in VC6 and I got an error.
Did you try it in VC or just in google?


From a recent vc++6 project of mine.

std::vector< std::vector<BeatErrorData> > m_SubbandBPMScores;

No Error. Maybe you need a service pack or 3?

R.
Andy

Jul 22 '05 #36

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

Similar topics

5
by: Ahmad | last post by:
Hi all, I have written a simple c++ app, as I'm still learning c++. The thing works flawlessly on VC++6, but just doesn't work on g++. The transliterate function which causes the problem is...
34
by: Adam Hartshorne | last post by:
Hi All, I have the following problem, and I would be extremely grateful if somebody would be kind enough to suggest an efficient solution to it. I create an instance of a Class A, and...
17
by: Mark P | last post by:
Say I have objects of class C which are fairly large. Then consider: vector<C> vc; vc.push_back(C()); Naively this would seem to construct a temporary object C(), copy it into the space...
4
by: bill | last post by:
does C# supports STL?if not how can i use vector?
3
by: vrsathyan | last post by:
Hi.., While executing the following code in purifier.., std::vector<int> vecX; vecX.clear(); int iCount = 0; { int iVal;
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: 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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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.