Hey guys,
I'm new to c++ programming from MATLAB.
I'm trying to import a matrix from a .txt file to be manipulated in c++. I can get the file inputted into c++ however I can't assign it a variable name.
The code I have is posted below:
Any help is appreciated.
//C++ version of dr
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
usingnamespace std;
int main(){
long begin, end;
ifstream timeone ("Rec-August 12 Run 5-000059-224_18_04_21_070_32_17200.txt");//C++ version of dr
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
usingnamespace std;
int main(){
long begin, end;
ifstream timeone ("Rec-August 12 Run 5-000059-224_18_04_21_070_32_17200.txt");