CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Surreall

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Re: Getting data in to C++ from excel, any help would be greatly appreciated

    Wow good info thanks, i will look into that. About multithreading how would i go about making use of multiple processors?
  2. Re: Getting data in to C++ from excel, any help would be greatly appreciated

    Fair point, although i am very glad i made the change. As the vba code takes over 2 weeks to run, and C++ takes 3 hours. I would say that is a massive improvement
  3. Re: Getting data in to C++ from excel, any help would be greatly appreciated

    Getting all info now ( i stupidly had the csv open when running the programme), and is still running at just under 6 mins. Although now i have unchecked the 1st for loop, it will take around 180mins...
  4. Re: Getting data in to C++ from excel, any help would be greatly appreciated

    I think it was me (user error), maybe i hadnt compiled before one of changes. But getting all info that was requested on the export now: Still getting those warnings though



    #include <fstream>...
  5. Re: Getting data in to C++ from excel, any help would be greatly appreciated

    I am having one slight problem, with the headerarray[q] & c
    Getting this warning,
    C:\Users\Mike\Desktop\C++\Final\main.cpp||In function 'int main()':|...
  6. Re: Getting data in to C++ from excel, any help would be greatly appreciated

    Yep, struts definitely confuse me.

    Working wonderfully thank you very much for your time and effort
  7. Re: Getting data in to C++ from excel, any help would be greatly appreciated

    Would these two lines be right?

    Previously:


    resultsarraystring.push_back (headerarray[q]);
    resultsarraystring.push_back (headerarray[c]);


    New?
  8. Re: Getting data in to C++ from excel, any help would be greatly appreciated

    Just as a point of interest. All those for loops iterate 36889042944 times.
  9. Re: Getting data in to C++ from excel, any help would be greatly appreciated

    I have ran the debugger, it is something to do with the stack. I get this error:

    #0 76F315DE ntdll!LdrQueryProcessModuleInformation() (C:\Windows\system32\ntdll.dll:??)
    #1...
  10. Re: Getting data in to C++ from excel, any help would be greatly appreciated

    Approx it takes, 0.45 seconds to read and load the intial arrays. Ie dataarray, directionarray & headerarray.
  11. Re: Getting data in to C++ from excel, any help would be greatly appreciated

    Yep got it now..i had to click on the project.
  12. Re: Getting data in to C++ from excel, any help would be greatly appreciated

    You are absolutely right, very silly of me :) (and a little embarressed lol)

    What is the best way to debug in code::blocks?
  13. Re: Getting data in to C++ from excel, any help would be greatly appreciated

    Your previous code for export to csv file worked a treat, ty very much.

    I am getting a few bizarre results though:

    With this part of the code:


    float t = ( y / z );
    ...
  14. Re: Getting data in to C++ from excel, any help would be greatly appreciated

    Excellent thankyou for the info, i will go through and see which is false more often. That should help a bit at least
  15. Re: Getting data in to C++ from excel, any help would be greatly appreciated

    Thankyou 2kaud i will give that ago tomorrow, and get back to you with the results

    Another thought i had while out running, with this part of the code:



    if (dataarray[jRows +...
  16. Re: Getting data in to C++ from excel, any help would be greatly appreciated

    Good point, for example if i could get the currently 6 mins down to say under 30 seconds i might be tempted to use more data that is available, and those 15's which are minutes, could become singles...
  17. Re: Getting data in to C++ from excel, any help would be greatly appreciated

    In the global compiler settings, these are the ones that seem to do with optimising. If that is what you mean?

    -optimize generated code (for speed) [-O]
    -optimize more (for speed) [-O1]...
  18. Re: Getting data in to C++ from excel, any help would be greatly appreciated

    int currentColumn = someValue;
    for ( int i = 0; i < numTotalColumnsInArray; ++i )
    {
    if ( i == currentColumn )
    continue;
    if ( CompareMatrix(currentColumn, i) == whatever )
    {
    ...
  19. Re: Getting data in to C++ from excel, any help would be greatly appreciated

    I have very very few debugging options, most are greyed out. Those that are on in settings are:

    - Autobuild project if it is not up to date
    - When stopping, autoswitch to first frame with valid...
  20. Re: Getting data in to C++ from excel, any help would be greatly appreciated

    Here is the updated code:



    #include <fstream>
    #include <iostream>
    #include <sstream>
    #include <string>
    #include <vector>
  21. Re: Getting data in to C++ from excel, any help would be greatly appreciated

    Sounds fair enough. With the q and c if you look at my little 3x3 matrix above. I compare column1(ie q) with the second and third column (ie c). I then compare column 2 (q) with the first and third...
  22. Re: Getting data in to C++ from excel, any help would be greatly appreciated

    Okay after lots of searching, got the -ANSI now. And as you said it doesnt like variable length for array
  23. Re: Getting data in to C++ from excel, any help would be greatly appreciated

    Thats a lot to take in, thankyou for your time.

    I am using Code::Blocks editor and on the compiler settings menu, it had automatically selected GNU GCC Compiler. Which compiler should i chose,...
  24. Re: Getting data in to C++ from excel, any help would be greatly appreciated

    Many thanks for your help.

    I have written some code now....and the reading in doesnt actually take long less than half a second. So all the time is going to be taken up with anaylising the arrays...
  25. Re: Getting data in to C++ from excel, any help would be greatly appreciated

    I understand i need to learn C++ first

    But not to worry i have been reading up about reading from csv file. And have written code that reads all the values from the csv file, still a long way to...
Results 1 to 25 of 27
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured