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

Search:

Type: Posts; User: dinesh999lama

Search: Search took 0.01 seconds.

  1. how to write binary file without deleting its previous contents

    I am writing a binary file like this:

    const int sized = 300000000ULL;
    int ad[sized];
    ...
    ad[i] = some value;
    ...
    FILE* pFile;
    pFile = fopen("obj_pattern.bin", "wb");...
  2. Replies
    6
    Views
    4,796

    Re: error using ifstream and osstream

    The first one solution u provided me was the one which i was looking for. exactly that for now, since i need to save the object model in a file to use it in another program any time, i need to...
  3. Replies
    6
    Views
    4,796

    Re: error using ifstream and osstream

    I was extracting them in same program just to test the concept first, its actual use is in another program where it extracts them and use them for object recognition task. This program only analyses...
  4. Replies
    6
    Views
    4,796

    Re: error using ifstream and osstream

    Ok, got the problem it looks like somehow the key should not be same every time, which made the values of arr1 object un ordered. So i'll remove that now.
  5. Replies
    6
    Views
    4,796

    error using ifstream and osstream

    When i run below program for test the basic working of my program it works fine:


    #include "map.h"
    #include <iostream>
    #include <utility>
    #include <fstream>
    #include <string>
    using namespace...
  6. Re: cant use object serialization to read an object

    Ok, i got it thanks.
  7. Re: cant use object serialization to read an object

    I am running main program in ROS node, which uses c++03. And thanks this problems were making me depressed but u solved it in just minutes. thats amazing knowledge u have. and seems like my current...
  8. Re: cant use object serialization to read an object

    OK, got it. i cant remove these error: ‘bigarray’ is not derived from ‘std::initializer_list<_Tp>’
    for (const auto& m : arr) .
  9. cpp_int error for large integer constant with boost multiprecision

    I need to save a very large integer in a variable, after i found that i can use boost::multiprecision::cpp_int i tried to use this in my program, but i'm not getting the proper value when i run the...
  10. Replies
    3
    Views
    6,197

    raw major order calculation in c++

    i have an array/map or 13 dimension, where i want to convert the 13 dimension index value into its raw major/offset value and than simply save the 13 dimension array as 1 dimension array or map with...
  11. How to iterate over archive in boost::serialization

    I have saved multiple map values inside a file using boost serialization, now my problem is i don't know exactly how i can read all of those maps: Till now i've done these much;

    #include <map>...
  12. cant use object serialization to read an object

    I'm using write.cpp to store map values inside a fifthgrade.ros file as:

    #include <iostream>
    #include <fstream>
    #include <string>
    #include "map.h"
    using namespace std;
    int main() {
    ...
  13. Replies
    6
    Views
    3,739

    Re: access large text file with index

    ros is using cxx comiler.
  14. Replies
    6
    Views
    3,739

    Re: access large text file with index

    thank u providing me also the code, but it seems like it works with c++11 and since ros uses c++03 i think i have to modify it little bit which i will do next. So thank u, i'm really happy that i'm...
  15. Replies
    6
    Views
    3,739

    access large text file with index

    How can i read large text file containing numbers with its index without first reading the hole datas? Is their any other method where i can directly save the datas to memory and than directly access...
  16. Re: dynamic memory allocation for multidimensional arrays

    O my god, that map method provided by 2kaud is perfect. wow. I just tried it, and it works like charm before this i was trying other methodes. thank u very much for telling me about this, although i...
  17. Re: vector with same size running very slow than dynamically allocated array Edit top

    to assign the value to vector i'm doing p[i][j][k]=value, and accessing in similar way. and the vector initialization provided by u above is the correct one.
  18. Re: vector with same size running very slow than dynamically allocated array Edit top

    Where the delete button in this page, by the way.
  19. vector with same size running very slow than dynamically allocated array Edit topic

    I have an array and vector both of same size and dimension. My code needs set operation to be performed on one of them. Now as i see, in vector their are set operation functions already present, but...
  20. How to read datas from graph in c++ code using tensorflow

    How do i read the datas from the file train.pb in current c++ code? I followed some tutorial on tensorflow and understood till this much lines, but after this i cant find exact correct way to read...
  21. Replies
    0
    Views
    467

    error duing running transflow model

    I am following this tutorial: https://medium.com/jim-fleming/loading-a-tensorflow-graph-with-the-c-api-4caaff88463f#.saa7no4fd. But as i try to run the loader.cc file after succesfully building it, i...
  22. Re: dynamic memory allocation for multidimensional arrays

    actually it can be also used as type int. since d1,d2,.. all r in int format. i'll use any method to do this task and thank u for telling me about sparse tensors data structures, i'll see that once....
  23. Re: dynamic memory allocation for multidimensional arrays

    When i tried this i'm getting segmentation error. How can i occupy large memory for this, without getting segmentation error.
    int dim1, dim2, dim3,dim4,dim5,dim6,dim7;
    dim1=1000; dim2=50; dim3=50,...
  24. dynamic memory allocation for multidimensional arrays

    How can i create a multidimensional array for more than 3 dimension like below:



    int dim1, dim2, dim3;
    dim1=10000; dim2=99; dim3=9;
    #define s(i,j,k) (array[dim2*dim3*i + dim3*j + k])
    double...
Results 1 to 24 of 25





Click Here to Expand Forum to Full Width

Featured