Search:

Type: Posts; User: larne

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,265

    thanks

    thanks
  2. Replies
    3
    Views
    1,265

    howto open a file for writing several times

    Hi,
    I would like to open a file for writing several times. I used append which works, but every time I re-run the program the file grows. What I really want to do is only append after the first time...
  3. Replies
    16
    Views
    1,876

    yes of course, thanks

    yes of course, thanks
  4. Replies
    16
    Views
    1,876

    In your opinion I should change from vc++ 6.0 to...

    In your opinion I should change from vc++ 6.0 to Codeworks (or something else) using gcc at work? I know it's not the latest.
  5. Replies
    16
    Views
    1,876

    Does this mean that the previous code was...

    Does this mean that the previous code was erroneous or was it the VC++ 6.0 compiler that took care of these errors?
    Visualizing my resulting binary file it looked OK, although I'd have to check it...
  6. Replies
    16
    Views
    1,876

    Thanks again, you are the best! A little...

    Thanks again, you are the best!
    A little follow-up question, why do you put "std::complex<float>" in front of "iqsum" since it compiles without it. Should I always do that and do you agree with that...
  7. Replies
    16
    Views
    1,876

    Thanks for your reply. My header is: ...

    Thanks for your reply. My header is:


    #include <fstream>
    #include <iostream>
    #include <string>
    #include <vector>
    #include <complex>

    using namespace std;
  8. Replies
    16
    Views
    1,876

    above solution worked fine at work using vc++...

    above solution worked fine at work using vc++ 6.0, but at home using gcc it doesnt work. I get an error in the second line (iqsum):


    iqfile.read(reinterpret_cast < char * > (&data),...
  9. Replies
    16
    Views
    1,876

    Thanks!

    Thanks!
  10. Replies
    16
    Views
    1,876

    noob question about variables

    What am I doing wrong here?


    void calc_vector_sum() {

    string tmp, iqfile, outname;
    int ny, nx;
    float data;
    iqmatrix iqsum;
  11. Replies
    11
    Views
    2,088

    I found the error, I had not changed the...

    I found the error, I had not changed the declaration of the function in header file. Thanks for all your help, and sorry for wasting your time with this last one =/
    Cheers
  12. Replies
    11
    Views
    2,088

    I changed my function dirgeocoding to void...

    I changed my function dirgeocoding to


    void dirgeocoding(const vector<vector<vector<SURFACEMODEL> > >& radarpixel)

    as suggested by laserlight. I skipped const since I will want to calculate a...
  13. Replies
    11
    Views
    2,088

    I tried that and thanks, but no go

    I tried that and thanks, but no go
  14. Replies
    11
    Views
    2,088

    when I remove const I get:...

    when I remove const I get:
    Release\main.o:main.cpp:(.text+0x5ea): undefined reference to `dirgeocoding(std::vector<std::vector<std::vector<SURFACEMODEL , std::allocator<SURFACEMODEL > >,...
  15. Replies
    11
    Views
    2,088

    I tried that but I doesn't compile after I change...

    I tried that but I doesn't compile after I change that. I get:

    D:\IG\program\geocoding\090117\dirgeocoding.cpp:14: error: passing `const PIXEL' as `this' argument of `void PIXEL::printdata()'...
  16. Replies
    11
    Views
    2,088

    guide me to make this code better or efficient

    given this prototype code how could I improve this?


    #include "geocoding.h"
    int main()
    {
    vector<vector<vector<SURFACEMODEL> > > radar = invgeocoding();
    dirgeocoding(radar);
    return 0;
    }
  17. Replies
    14
    Views
    2,287

    ok, being a rookie and all, how could I return a...

    ok, being a rookie and all, how could I return a copy correctly? ...and I dont really understand (const) reference. Pass the pointer? In this case, how?
    Thanks for your help
  18. Replies
    14
    Views
    2,287

    to make it short, header: // headers //...

    to make it short,
    header:


    // headers

    // Constants
    //#define M_PI 3.1415926535897932384626433832795

    // classes
  19. Replies
    14
    Views
    2,287

    there was no problem just changing the allocation...

    there was no problem just changing the allocation to vector style and using the same code except for passing the vector back to main. Im not sure what´s going wrong here (but I did have some beers...
  20. Replies
    14
    Views
    2,287

    Perfect, thanks!

    Perfect, thanks!
  21. Replies
    14
    Views
    2,287

    Should I from say function a call function b with...

    Should I from say function a call function b with the pointer, and additional, dimension data as arguments instead of returning the data as I did now? And how could I create the same matrix in first...
  22. Replies
    14
    Views
    2,287

    Thanks for your reply, I am aware of vectors, but...

    Thanks for your reply, I am aware of vectors, but I wanted to try the "normal way" first. Now it seems to work except for I dont know how to pass nx_dtm and ny_dtm. My function who creates the DTM**...
  23. Replies
    14
    Views
    2,287

    That sounds good =) How would I go about doing...

    That sounds good =) How would I go about doing that?
    Cheers
  24. Replies
    14
    Views
    2,287

    accessing a variable from another method

    Hey,
    I have trouble accessing a matrix from another method. I have a matrix allocated like this in one method


    DTM **dtmpixel = new DTM*[ny_dtm];
    for (int k=0; k<ny_dtm; k++)
    {
    dtmpixel[k] =...
  25. Thread: read binary file

    by larne
    Replies
    5
    Views
    1,521

    I was talking about the binary file of course,...

    I was talking about the binary file of course, and thinking about another thing. forget the last part with mixed number and text
Results 1 to 25 of 41
Page 1 of 2 1 2