Ask Your Question

nat's profile - activity

2014-07-29 17:10:27 -0500 received badge  Famous Question (source)
2014-07-29 17:10:27 -0500 received badge  Notable Question (source)
2014-06-06 09:47:02 -0500 received badge  Popular Question (source)
2014-06-06 09:40:21 -0500 received badge  Supporter (source)
2014-06-06 09:40:19 -0500 received badge  Scholar (source)
2014-06-06 09:39:43 -0500 answered a question read information from a file

In fact I have tried with the following code:

ifstream label1("File_name");

for ( int i=0; i<r ;="" i++="" )="" {="" for(int="" j="0;" j<c;="" j++)="" {="" label1="">> a[i][j];

}

}

however, only appear 0 in the array a.

2014-06-06 09:29:11 -0500 commented answer read information from a file

thanks . In fact I have tried with the following code: ifstream label1("File_name"); for(int i=0; i<r; i++)="" {="" for(int="" j="0;" j<c;="" j++)="" {="" label1="">> a[i][j]; } } however, only appear 0 in the array a.

2014-06-06 06:38:41 -0500 asked a question read information from a file

Hi, i want to read information from a .txt file and then use it in a ros node. thanks