You are here:

C++/cout data


  ifstream read_file("dd.txt",ios::in);
  int i=0,k=0;
  char* abc[100][100];
  abc[i][k] = sen;
  if ( k == 5 )
        k = 0;
  }while (!read_file.eof());

if I want to cout<<"\n"<<abc[1][1]; how can do that?
I do not want write it inside do{...}while loop.
How can Ido?

Hello Daniel, thank you for the question.

I'm not quite sure exactly what your question is. If you want to print that subscript in your array, why not do exactly what you typed? You can cout that individual subscript outside of that loop no problem. If you could please clarify your question, I would love to help.

- Eddie


All Answers

Answers by Expert:

Ask Experts




I can answer questions about the C++ language, object oriented design and architecture. I am knowledgable in a lot of the math that goes into programming, and am certified by I also know a good deal about graphics via OpenGL, and GUIs.


I have completed numerous games and demos created with the C++ programming language. Currently employed as a software engineer in the modeling and simulation field. I have about 7 years experience.

©2016 All rights reserved.