Type: Posts; User: Surreall
Search took 0.01 seconds.
February 2nd, 2013, 04:37 AM
Wow good info thanks, i will look into that. About multithreading how would i go about making use of multiple processors?
February 2nd, 2013, 04:27 AM
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
February 1st, 2013, 11:31 AM
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...
February 1st, 2013, 11:04 AM
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
February 1st, 2013, 10:37 AM
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()':|...
February 1st, 2013, 10:27 AM
Yep, struts definitely confuse me.
Working wonderfully thank you very much for your time and effort
February 1st, 2013, 09:58 AM
Would these two lines be right?
February 1st, 2013, 09:26 AM
Just as a point of interest. All those for loops iterate 36889042944 times.
February 1st, 2013, 09:11 AM
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:??)
February 1st, 2013, 09:01 AM
Approx it takes, 0.45 seconds to read and load the intial arrays. Ie dataarray, directionarray & headerarray.
February 1st, 2013, 08:30 AM
Yep got it now..i had to click on the project.
February 1st, 2013, 08:03 AM
You are absolutely right, very silly of me :) (and a little embarressed lol)
What is the best way to debug in code::blocks?
February 1st, 2013, 07:37 AM
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 );
January 31st, 2013, 03:01 PM
Excellent thankyou for the info, i will go through and see which is false more often. That should help a bit at least
January 31st, 2013, 02:35 PM
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 +...
January 31st, 2013, 02:33 PM
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...
January 31st, 2013, 02:30 PM
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]...
January 31st, 2013, 02:14 PM
int currentColumn = someValue;
for ( int i = 0; i < numTotalColumnsInArray; ++i )
if ( i == currentColumn )
if ( CompareMatrix(currentColumn, i) == whatever )
January 31st, 2013, 02:13 PM
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...
January 31st, 2013, 10:14 AM
Here is the updated code:
January 31st, 2013, 08:37 AM
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...
January 31st, 2013, 07:46 AM
Okay after lots of searching, got the -ANSI now. And as you said it doesnt like variable length for array
January 31st, 2013, 06:33 AM
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,...
January 31st, 2013, 05:00 AM
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...
January 30th, 2013, 06:31 AM
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...
Click Here to Expand Forum to Full Width