#include <iostream>
#include <cassert>//what is the use of this???
#include <algorithm>//how to convert in turbo c++ and what is the use this???
#include <vector>//is this array in turbo c++???
using namespace std;
int main()
{
bool result;// what is the use of this??
string s("abcde");
string s2("aeiou");
vector<char> vector1(s.begin(), s.end());// how to convert this in turbo c++
vector<char> vector2(s2.begin(), s2.end());//how to convert this in turbo c++
vector<char> setDifference;//how t convert this in turbo c++
set_symmetric_difference(vector1.begin(),vector1.end(),vector2.begin(), vector2.end(),back_inserter(setDifference));//how to convert this in turbo c++
for(int i=0;i<setDifference.size();i++){
cout << setDifference[i];
}
return 0;
}
gujinni
0
Junior Poster in Training
Recommended Answers
Jump to Post>#include <cassert>//what is the use of this???
In that program it's not used. But <cassert> defines the assert macro, which is used for sanity checks:void foo(int *p) { // Precondition: p is not a null pointer assert(p != 0); .... }
Your questions boil down to …
Jump to Posthow to convert this in turbo c++
Don't bother. You should download a new compiler/IDE. There are plenty of threads on this forum discussing which ones are good. If I were you, I'd go and look at some of them and then you won't have these problems.
To get …
All 6 Replies
Moschops
683
Practically a Master Poster
Featured Poster
Narue
5,707
Bad Cop
Team Colleague
Salem
commented:
+1
+17
gujinni
0
Junior Poster in Training
Moschops
683
Practically a Master Poster
Featured Poster
ravenous
266
Posting Pro in Training
Salem
commented:
Nice
+17
gujinni
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.