Search Results

Showing results 1 to 22 of 22
Search took 0.01 seconds.
Search: Posts Made By: kimw
Forum: C Oct 24th, 2006
Replies: 3
Views: 2,794
Posted By kimw
hi, thanx! putting in the comma and quotes are certainly not the most pleasant things to do, but it does the trick!!
Forum: C Oct 24th, 2006
Replies: 3
Views: 2,794
Posted By kimw
does anyone know how I can write to a xls that puts each number in different cells? for example,

vector<int> nums;
nums.push_back(1);
nums.push_back(2);
nums.push_back(3);

ofstream myfile;...
Forum: C Oct 18th, 2006
Replies: 4
Views: 2,450
Posted By kimw
it was good suggestion, well i've tested the emply loop and it took < 1 sec so it must be all the tokenizer and vector stuffs ... am i going overboard by using tokenizer, since i basically wanted to...
Forum: C Oct 18th, 2006
Replies: 4
Views: 2,450
Posted By kimw
hi the file is not sorted ... although i could build a macro to sort all the files (they are all in csv format) but i wish to see what other alternatives there are
Forum: C Oct 18th, 2006
Replies: 4
Views: 2,450
Posted By kimw
can anyone offer performance tips to improve the running time ?
this function opens a file (a 7000 row by 30 col), and stores each elements in a matrix data . current running time is 4 sec, and i...
Forum: C Oct 16th, 2006
Replies: 6
Views: 1,186
Posted By kimw
thank you all. i guess i'll stick to find() then.
my vectors usually have 10k+ elements and i have many of such vectors. my goal is just to maximize efficiency as much as possible...
Forum: C Oct 16th, 2006
Replies: 6
Views: 1,186
Posted By kimw
thank you. i'm new to map and could you fill me some details for me

map<double, int> counter;
vector<double> vec;
double x = 25.0; // value to search for
int pos = 0;
int i = 0;
while...
Forum: C Oct 16th, 2006
Replies: 6
Views: 1,186
Posted By kimw
I would like to implement a function similar to the math function from excel, that is, given a vector and a value in the vector, return the relative position of that value in that container.
...
Forum: C Sep 27th, 2006
Replies: 2
Views: 1,573
Posted By kimw
Forum: C Sep 27th, 2006
Replies: 2
Views: 1,573
Posted By kimw
hi i have a function that opens a file and store the data into a matrix

void openfile(vector<vector<string> >& data, string path)
{
ifstream inFile;
inFile.open(path);
....

this does not...
Forum: C++ Sep 11th, 2006
Replies: 1
Views: 1,360
Posted By kimw
does anyone have problem with linking to newmat library ?

running

#include "newmat.h"

int main()
{
Matrix A(2,2);
}
Forum: C++ Sep 7th, 2006
Replies: 10
Views: 2,382
Posted By kimw
Thank you all.
Forum: C++ Sep 7th, 2006
Replies: 10
Views: 2,382
Posted By kimw
Hey with all due respect I am a beginner in C++ and I AM trying to extract whatever knowledge I could from existing library . Please read my above posts; I have not asked anyone to explain the...
Forum: C++ Sep 7th, 2006
Replies: 10
Views: 2,382
Posted By kimw
forgive my overstatement .. i'm actually planning to build a function and not the whole library

if you're familiar with quantlib maybe u can point me to a more indepth treatment of the functions,...
Forum: C++ Sep 7th, 2006
Replies: 10
Views: 2,382
Posted By kimw
thanks..actually i read their documentation and it is not helping ..
ive decided to build the library myself...
Forum: C++ Sep 7th, 2006
Replies: 10
Views: 2,382
Posted By kimw
does anyone know where i can find a library for minimizing a function, given a set of parameters and contraints? (similar to Solver in Excel)

i've searched around and found quantlib/solvers1d but...
Forum: C++ Sep 6th, 2006
Replies: 5
Views: 18,267
Posted By kimw
thank you all. for the time being my strings are all convertible to double. but i might need wolfpack's suggestion just to be safe
Forum: C++ Sep 6th, 2006
Replies: 5
Views: 18,267
Posted By kimw
i have a string that i want to convert to double. i know atof is a standard library function for that, however, the input argument to atof is (const char*), not string type that i have.

does...
Forum: C Sep 1st, 2006
Replies: 1
Views: 2,834
Posted By kimw
i am a little bit confused about the actual usage of the find function of map

i have say a vector<string> and i want to return the relative position (or iterator) of a key (of type string) in...
Forum: C Aug 30th, 2006
Replies: 5
Views: 1,347
Posted By kimw
thanks that was it ...
Forum: C Aug 30th, 2006
Replies: 5
Views: 1,347
Posted By kimw
i am trying to use a boost library

#include "boost/date_time/gregorian/gregorian.hpp"

and my source file is in the same folder as boost. however, during compilation i get errors that...
Forum: C++ Oct 5th, 2005
Replies: 2
Views: 1,877
Posted By kimw
Also, setting the min = 0 wont get you any new value for min, since the length of the call is always a positive number
Showing results 1 to 22 of 22

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC