This is my homework for Accelerated C++ 3-3
~Count how many times each word appears after inputting a tons of strings using cin.
the code inside RandC.cpp works fine if it is inside main();
main.cpp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
#include <iostream>
#include <vector>
#include <string>
#include "RandC.h"
using std:: vector;
using std:: string;
using std:: cin;
int main()
{
vector<string> Cstr;
vector<int> Cint;
string x ;
RandC( Cstr ,Cint );
}
|
Okay ,thanks for replying
compiled successful ,no error when compiling
But when I input aa ,then a , it began to crash....
Windows report:
Problem Event Name: APPCRASH
Application Name: Chapter_Four.exe
Application Version: 0.0.0.0
Application Timestamp: 56a9cb3c