williegofar
Programmer
last week i had a look at the basics of vectors, without a problem. i deleted that code and this week wanted to use them in a small program. i don't know what i'm doing wrong, but the following simple little program won't compile;
#include "stdafx.h"
#include <vector>
vector<int> blob;
int main(int argc, char* argv[])
{
return 0;
}
the errors are;
D:\source\test54\test54.cpp(7) : error C2143: syntax error : missing ';' before '<'
D:\source\test54\test54.cpp(7) : error C2501: 'vector' : missing storage-class or type specifiers
D:\source\test54\test54.cpp(7) : error C2143: syntax error : missing ';' before '<'
Help!, this is driving me nuts
#include "stdafx.h"
#include <vector>
vector<int> blob;
int main(int argc, char* argv[])
{
return 0;
}
the errors are;
D:\source\test54\test54.cpp(7) : error C2143: syntax error : missing ';' before '<'
D:\source\test54\test54.cpp(7) : error C2501: 'vector' : missing storage-class or type specifiers
D:\source\test54\test54.cpp(7) : error C2143: syntax error : missing ';' before '<'
Help!, this is driving me nuts