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

Search:

Type: Posts; User: LMHmedchem

Page 1 of 11 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    222

    find object in vector and delete

    Hello,

    I have this class I have been working with,


    // objects to hold results, row id, and name
    class result_holder {

    public:
    // initialize class members
  2. Re: sort vector of objects on member variable

    At the moment, I have the following,

    file matrix.h


    // objects to hold results, row id, and name
    class result_holder {
    public:

    // initialize class members
  3. Re: sort vector of objects on member variable

    I have this working with the following setup,

    file matrix.h


    // objects to hold results, row id, and name
    class result_holder {
    public:

    // initialize class members
  4. Re: sort vector of objects on member variable

    I was able to get this working by including the following.



    // at top of src page after includes

    namespace vec_obj {

    // objects to hold results, row id, and name
    class...
  5. Re: sort vector of objects on member variable

    Does "in the same namespace" means that I include the above definition in my class definition?


    // objects to hold results, row id, and name
    class result_holder {

    public:

    // for object...
  6. sort vector of objects on member variable

    Hello again,

    I have a small class and a vector to hold the objects.


    class result_holder {
    public:

    // initialize class members
    result_holder()
  7. Re: Sequentially remove one element from a vector at a time with replacement

    This is an optimization process that is an application of experimental design theory (D-optimality). The object here is to examine rows of data and find the minimal set of rows with maximal...
  8. Re: Sequentially remove one element from a vector at a time with replacement

    Hello and thank you for the responses,

    I have set up some code to evaluate a data table by taking the determinant of the square matrix. This is the determinant of the product matrix of the...
  9. Sequentially remove one element from a vector at a time with replacement

    Hello,

    As the title suggests, I have a vector of int,

    vector<int> row_numbers{1,2,3,4,5,6,7,8,9};
    I want to sequentially remove one element at a time starting with the first. When the second...
  10. Replies
    5
    Views
    344

    Re: question about matrix maniplation

    This will be developed in windows using gnu compilers under the cygwin. I know that cygwin has some of the boost C++ libraries available in the package manager. I have installed libboost-devel and...
  11. Replies
    5
    Views
    344

    question about matrix maniplation

    Hello,

    I need to write a widget that will implement some matrix functions using data from a text file. The input data will be spreadsheet like and fully determined with complete rows and columns....
  12. how do I store and retrieve this data in my class?

    Hello

    I have a class I use to store column data read from delimited text files.


    class column_data {

    // class functions here

    public:
  13. Replies
    3
    Views
    473

    Re: c++ statistics code

    Thanks for the suggestions. I ended up writing my own code based on available examples. There are a number of available libraries that support these calculations, but the functions weren't very hard...
  14. Replies
    3
    Views
    473

    c++ statistics code

    I am wondering if there is some repository of c++ code for statistics comparing two columns of numbers? Statistics are so common now that it seems like with the oo concept of reusable code there...
  15. Re: sequentiall reading blocks of lines from a file

    Well this is what I have at the moment,



    // declarations
    unsigned int i, number_of_lines, lines_per_data_block;
    string new_line;

    // 390 for this input file
    lines_per_data_block=390;
  16. sequentiall reading blocks of lines from a file

    Hello,

    I have a file that I need to read in blocks. I need to read in n lines at a time, do some processing, and then read in the next block of n lines until the file is done. I know the size of...
  17. Replies
    16
    Views
    1,320

    Re: question about sorting on bitstrings

    I have made a few modifications to make the tool more widget like. It now reads the subset size from the command line and takes the data from an input file.



    // file sort3_02.cpp based from...
  18. Replies
    16
    Views
    1,320

    Re: question about sorting on bitstrings

    Well I was able to run this set of data and I pulled out all of the strings that were found to have common 3 bit subsets. Then I dropped the subset size to 2 and run the strings that had no common 3...
  19. Replies
    16
    Views
    1,320

    Re: question about sorting on bitstrings

    I was still having some problems because of the range-based for loops but I did a little looking around and was able to compile with,

    g++ -c -std=c++11 sort2_03.cpp

    It looks like the default...
  20. Replies
    16
    Views
    1,320

    Re: question about sorting on bitstrings

    Thanks to everyone for all the thoughtful replies so far. I am compiling the code posted by razzle and having some issues. I don't have VS, so I am compiling with gnu. I don't think that the first...
  21. Replies
    16
    Views
    1,320

    Re: question about sorting on bitstrings

    Thanks,

    I compiled the code you posted and ran it with some additional data. This is the code I compiled,


    #include <iostream>
    #include <string>
    #include <cmath>
    #include <vector>
    using...
  22. Replies
    16
    Views
    1,320

    Re: question about sorting on bitstrings

    Yes, I am having trouble with the definition, partly because this is something I am still try to figure out. I'm not exactly sure what the best outcome really is, so I have to start with a best...
  23. Replies
    16
    Views
    1,320

    question about sorting on bitstrings

    Hello,

    I have a problem I am working on where I need to sort some data based on the values of a string of bits. The strings look like this,

    010000001110000000

    there are 18 bits, 1 means a...
  24. Replies
    10
    Views
    869

    Re: segfault at declaration of 2D array

    I am looking at something like this,



    #include <vector>
    #include <iterator>

    // resize 2D storage structure
    void resizeVec( std::vector<std::vector<double> > &vec , int ROWS , int...
  25. Replies
    10
    Views
    869

    Re: segfault at declaration of 2D array

    Well, as I said, I didn't write this code and had never really looked at it before it failed today. I can hard code the array size using static and process the files I am looking at, but I would have...
Results 1 to 25 of 265
Page 1 of 11 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center