I'm totally lost in my c++ class.. can someone guide me or help me??
Problem 1
Write a C++ program that writes all binary sequences of length 15
into a file binary15.txt.
-The sequences must be in increasing lexicographic order. The output filestream must be created with the command ofstream out("binary15.txt");
-Each sequence must be on a new line and the zeros and ones must not be separated by spaces. See below how the file must look like.
Beginning of file binary15.txt:
000000000000000
000000000000001
000000000000010
000000000000011
Problem 2
Write a C++ program that writes all nontrivial binary sequences of
length 15 with constant autocorrelation into a file binary15a.txt.
Hint: There are exactly 60 such sequences.
-The sequences must be in increasing lexicographic order. The output filestream must be created with the command ofstream out("binary15a.txt");
-The format of the file binary15a.txt is as in Problem 1.