c++ - work with .hpp files -


The code in my main program is given below; Here I have inserted a file named test.dat and the data of this file in my structure so that I can use the square named mydata (http: // my_data.hpp).

  int main () {// cout & lt; & Lt; "This is my program" & lt; & Lt; Endl; // When removing this, the codes are not working exactly = true; MyData my_data ("test.dat", okay); If (OK == wrong) {cout < & Lt; "Error, unable to read file 1."; Return 0; } Assessment one way (& my_data);   

For the calculation part, I used another class, acalakulation (a_calculation.hpp). Here I had indicated to speed up my program.

  Computation (MyData * my_data) {MYData :: iterator i; (I = my_data - & gt; Start (); i! = My_data -> End (); i ++) {If (i-> A ()> gt; Max) {max = I- & Gt; a (); }} Cout & lt; & Lt; One ???? My maximum value is: A ???? & Lt; & Lt; Max;   

My program does not show any errors, but when I run it, it does not show the result of my maximum value. But when I added a single ??? Coutâ ???? The code shows this result at the beginning of the main program, which means when I delete this line:

  cout   

The program does not show the correct output.

Please help me find my mistakes here .. Thank you < / Div>

I think you have to print an end to the console

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -