Array is a bad choice for your problem as it will take N*M comparisons(N in stdInput,M in fileInput). Better put in unordered map, then you can do
for (int i: fileInput)
if i not in stdInput
print i
More Related Contents:
- how to control one program from other
- How to pass a multidimensional array to a function in C and C++
- Makefiles, how can I use them? [closed]
- Why does C++ require a cast for malloc() but C doesn’t?
- Vector going out of bounds without giving error
- Why will std::sort crash if the comparison function is not as operator
- libpng warning: iCCP: known incorrect sRGB profile
- Smart pointers: who owns the object? [closed]
- How can I get the IP Address of a local computer?
- Why doesn’t C++ have a garbage collector?
- How is the size of a C++ class determined?
- Why use hex?
- Sorting two corresponding arrays [duplicate]
- How to mix C++ and C correctly
- Link errors using members in C++17
- Is std::abs(0u) ill-formed?
- What are uses of the C++ construct “placement new”?
- What exactly is streambuf? How do I use it?
- Practical Uses for the “Curiously Recurring Template Pattern”
- Read file names from a directory
- Should I unify two similar kernels with an ‘if’ statement, risking performance loss?
- How to create a template function within a class? (C++)
- C++ Thread Pool [closed]
- Why “Foo f(Bar());” can be a declaration of a function that takes type Bar and returns type Foo? [duplicate]
- Why does the compiler choose bool over string for implicit typecast of L””?
- calling operator
- How to create temporary object in C++
- C++ copy-construct construct-and-assign question
- How do I get at the exception information when using MiniDumpWriteDump out-of-process?
- VS: unexpected optimization behavior with _BitScanReverse64 intrinsic