G
Guest
I have the following simple program:
#include <iostream>
#include <map>
#include <string>
#include <sstream>
#include <fstream>
#include <vector>
using namespace std;
typedef map<string, int> wordmap;
int main(int argc, char* argv[])
{
if (argc != 2)
cout << "Usage: " << argv[0] << " <filename>\n";
else
{
ifstream ifs(argv[1]);
if (! ifs)
{
cout << "The file " << argv[1] << " couldn't be opened.\n";
return 1;
}
string line, word;
vector<wordmap> words;
while (getline(ifs, line))
{
istringstream iss(line);
while (iss >> word)
{
for (wordmap::iterator iter = words.begin(); iter != words.end(); ++iter)
;//if ((*iter).
}
}
}
return 0;
}
How can I compile it with Visual Studio C++ .NET 2003? In Visual Studio C++
6 it was possible, but how do I do it (if possible) in .NET 2003? Just
opening this file will not let me compile it in .NET 2003.... Help!
#include <iostream>
#include <map>
#include <string>
#include <sstream>
#include <fstream>
#include <vector>
using namespace std;
typedef map<string, int> wordmap;
int main(int argc, char* argv[])
{
if (argc != 2)
cout << "Usage: " << argv[0] << " <filename>\n";
else
{
ifstream ifs(argv[1]);
if (! ifs)
{
cout << "The file " << argv[1] << " couldn't be opened.\n";
return 1;
}
string line, word;
vector<wordmap> words;
while (getline(ifs, line))
{
istringstream iss(line);
while (iss >> word)
{
for (wordmap::iterator iter = words.begin(); iter != words.end(); ++iter)
;//if ((*iter).
}
}
}
return 0;
}
How can I compile it with Visual Studio C++ .NET 2003? In Visual Studio C++
6 it was possible, but how do I do it (if possible) in .NET 2003? Just
opening this file will not let me compile it in .NET 2003.... Help!