Search:

Type: Posts; User: FortranLevelC++

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Mixed language programming is becoming much...

    Mixed language programming is becoming much easier, thanks to new tools that are being developed. Even for non-CS majors like me this is becoming easier!

    As Salem pointed out, you can call C++...
  2. Thanks again for the suggestions about...

    Thanks again for the suggestions about overloading the () operators. I will have to do some research.
    These are very deep concepts.
  3. Of course, what you said is what I meant. The...

    Of course, what you said is what I meant. The order in which the function names in the vector of names is what the iteration is over, by means of the map.

    Again, thanks for your precious time. As...
  4. Of course, in the case of an unordered std::set,...

    Of course, in the case of an unordered std::set, there would not be any consistent order in which the for loop accesses the elements.
    But at least in my program where there is only a map of...
  5. Thanks again for the crucial comment because many...

    Thanks again for the crucial comment because many of my functions have nearly a dozen arguments.

    At least when I am defining a function it is a good idea to format the arguments like you did...
  6. This is wonderful because it not only simplifies...

    This is wonderful because it not only simplifies many things, but also prevents potential errors!!!

    From now on I will use this, but I first need to mentally get used to switching from ''*itr' to...
  7. Iterating over an array of C++FUNCTIONS in a for loop

    ​Thank you for your precious time.

    With my limited understanding of C++, it seems that instead of directly defining an array of C++ functions, we need an array of pointers to functions.

    This...
  8. Thanks to your suggestions, Here is the new code...

    Thanks to your suggestions, Here is the new code with your ideas about compact initialization,logical grouping, and range-based for loops.
    It is definitely more effective:



    vector<float>...
  9. Laserlight, Thank you for solving the problem...

    Laserlight,

    Thank you for solving the problem so quickly! A few years ago you also solved many similar mysteries for me!

    As you suggested I used auto to assign the right type of iterator,...
  10. I tried to introduce a temporary intermediate...

    I tried to introduce a temporary intermediate variable to make sure that the variable that is being searched is a string, but it did not fix the problem.



    string tempS =...
  11. Thanks again, but in this case how can I overload...

    Thanks again, but in this case how can I overload the comparison operator?

    Here, vec_LocalAllSymRecs[i][0] is of the form:


    struct RAStruct { //
    char Symbol[12]; //
    char Date[12];
    ...
  12. Adrian, Thank you for the comments. Yes, it is...

    Adrian,
    Thank you for the comments. Yes, it is the iterator that is being altered, but not the contents!!!
    But you raised an important issue here. Yes, the type "Symbol" is not simply a string, but...
  13. John C, Thank you for the comments. I also think...

    John C,
    Thank you for the comments. I also think that the std::find doesn't alter the container. But passing that argument as const to my function above is giving an error message, apparently...
  14. std::find method seems to have the effect of altering the arguments!

    Hello, and thank you for your precious time.

    I have a question about the std::find method applied to std::vector. It seems to me that there is a danger that applying the std::find method to find...
  15. You were absolutely correct! When I initially...

    You were absolutely correct! When I initially entered the compiler and linker options, I used the global "Settings -> Compiler and Debugger" menu to enter these options, because I would often use...
  16. Here is the picture. The code that you see in the...

    Here is the picture. The code that you see in the editor uses GSL library functions, but the linker settings are empty in the Build options menu, for Debug, Release, or the project name itself. But...
  17. In the project's compiler options I had certainly...

    In the project's compiler options I had certainly checked the box that enables c++0x, and without C++0x the compiler must give an error message because I use lambdas in this project. I do remember...
  18. Many thanks, but this is precisely the window ...

    Many thanks, but this is precisely the window that I have, except that the both the compiler and linker settings are empty. (The only thing that the Debug tab shows is "Produce debugging symbols",...
  19. Many thanks, but that's precisely what I was...

    Many thanks, but that's precisely what I was trying to describe above. I believe that I have tried what you suggested. In the "Project build options" menu, on the left I certainly have the project...
  20. Of course, this is after I have already opened...

    Of course, this is after I have already opened the Code::Blocks project file and after I have the full project in the GUI mode: After I have opened the project, on the left side of the Code::Blocks...
  21. Many thanks for the suggestions. I realize that...

    Many thanks for the suggestions. I realize that Code::Blocks must have saved the compiler and linker settings because the program compiles and runs after I have used the "Rebuild" option and I have...
  22. I have used Code::Blocks to open the entire...

    I have used Code::Blocks to open the entire project, not just the source files. Despite the fact that the compiler and linker options are no longer visible, it appears that when I click "Rebuild...
  23. Recovering Code::Blocks C++ linker settings

    Hello, and thank you in advance.

    For more than a year I have been working on a C++ console program by using Code::Blocks, in the Ubuntu Linux environment.

    But today I noticed that the...
  24. Many thanks. I will investigate this under the...

    Many thanks. I will investigate this under the microscope.
  25. Many thanks!

    Many thanks!
Results 1 to 25 of 86
Page 1 of 4 1 2 3 4