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

Search:

Type: Posts; User: Ramees219

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    18
    Views
    20,923

    Re: How to distribute a value into vector

    #include <iostream>
    #include <vector>
    #include <algorithm>

    template <typename T, typename ForwardIterator>
    bool increment(ForwardIterator first, ForwardIterator last, T maximum) {
    for (auto...
  2. Replies
    7
    Views
    5,639

    Re: 2d vector data combination

    something impossible . trust me its going to be cool plz help
  3. Replies
    7
    Views
    5,639

    Re: 2d vector data combination

    :) run-time complexity is not a problem i am a very patient it not a problem its run over a month or more because i need to find a single answer if there any way to solve this problem plz show me ....
  4. Replies
    7
    Views
    5,639

    Re: 2d vector data combination

    yes your right sorry :) . how can i code the same functionality for big vector ( this vector only have size = 3 , what if i have a vector size that above 1000 )
  5. Replies
    7
    Views
    5,639

    2d vector data combination

    hi i need help to arrange a 2d vector data combination . i don't know how to ask this . in the code below i created a small version of what i want but when the vector get bigger what i do i can't...
  6. Replies
    9
    Views
    10,012

    Re: write a c++ bitmap image file

    thanks :)
  7. Replies
    9
    Views
    10,012

    Re: write a c++ bitmap image file

    when i change image width & height 256 to 1024 getting an error i am using visual studio 2015


    #include <iostream>
    #include <ostream>
    #include <fstream>

    using namespace std;

    unsigned...
  8. Replies
    9
    Views
    10,012

    Re: write a c++ bitmap image file

    1, what is pad size ( int padSize = (4 - (w * 3) % 4) % 4 )

    2, what is the meaning of 8 , 16, 24 in below code


    file[2] = (unsigned char)(sizeAll);
    file[3] = (unsigned...
  9. Replies
    9
    Views
    10,012

    Re: write a c++ bitmap image file

    ok why this values multiplying 255.0 * waterfall[x][y]
  10. Replies
    9
    Views
    10,012

    write a c++ bitmap image file

    hi i am trying to write a bitmap image with a circle in it in c++ i don't no where to start it then i found some code in stackoverflow i like to use this code and write a circle or a rectangle in...
  11. Replies
    10
    Views
    6,936

    Re: reading& writing binary data block by block

    yes that's all i want i got it . some area in the code i didn't understand



    union num {
    int n;
    unsigned char c[sizeof(int)];};
  12. Replies
    10
    Views
    6,936

    Re: reading& writing binary data block by block

    in example in post #2 all block data have same size what i am trying to achieve is different size of block data( char / string ) need to write into a file then later i need to read back

    what if i...
  13. Replies
    10
    Views
    6,936

    Re: reading& writing binary data block by block

    now the char initialize manually . char oblock1[blksze] = { 0xDE, 0xDE }; like this
    what is the deference between normal char value and this '0x' added .
    how can i convert my char or string data...
  14. Replies
    10
    Views
    6,936

    Re: reading& writing binary data block by block

    thank u for the help my doubts are almost cleared , what if the block size different and when i read later with only read how can i specify the different size for the blocks , or can i access the...
  15. Replies
    10
    Views
    6,936

    reading& writing binary data block by block

    hi
    i need to write some hex data into a binary file block by block and read it back same as block by block
    i try to do it but some error i don't no how to fix this i am stuck i all kind of help...
  16. how to write hex formatted string into a binary file

    hi everyone i need help .
    i have a function that return a sequence of strings ex:-


    [5]2A3D35E89C65379362FF
    [0]AA549860FDEED365895634
    [9]4512EE67AD9860
    [2]528465362698AEFF56...
  17. Replies
    18
    Views
    20,923

    Re: How to distribute a value into vector

    Yes i noticed but in my latest #post 14 i need some change in the code
    Now I only need 1 between 9 value in one row and total row equal = sum if we do this we can save time
  18. Replies
    18
    Views
    20,923

    Re: How to distribute a value into vector

    I didn't use the zero combination because i need this code run faster
    But since #post 10 i realized its still take lost of time on big value
    So redesign my algorithm now i don't want zero...
  19. Replies
    18
    Views
    20,923

    Re: How to distribute a value into vector

    Thanks for the code :) i didn't understand all of the code but i think the code is calculates zero combination also is there any way we can calculate Only the output i want . Because if we input...
  20. Replies
    18
    Views
    20,923

    Re: How to distribute a value into vector

    Hi thanks for your reply this is exactly what i want but your code is to show all possible combination of 3 numbers summing up to 5. But simply What i want is quarter of it sequence . I don't want...
  21. Replies
    18
    Views
    20,923

    Re: How to distribute a value into vector

    I think the permutations only rearrange value but in my case some time its need to change the value like v1 =
    V1 = {2,9,2,1,1,1,1,1,1,1,1,1,1,1,1} = 25;

    V1 = {2,10,1,1,1,1,1,1,1,1,1,1,1,1,1} =...
  22. Replies
    18
    Views
    20,923

    How to distribute a value into vector

    Hi i need help to distribute a value into a vector and print all possible combination for example
    If a user input first value that will be the vector size input1size = 15;
    Then input2 is the value...
  23. Re: error : returning address of local variable or temporary

    now i am trying to install flint library but its really tough for me Oky finally i think I found nice library that i can use easily thanks :)
  24. error : returning address of local variable or temporary

    hi i found a code from internet i can't run this code getting errors need help am using visual studio 2013
    This program is to handle all possible arithmetic operations (+, -, *, /, %) and logic...
  25. Re: concatenate int value from vector to long long int

    Thanks for showing me a new way . But i wonder how its work long long int to a vector
Results 1 to 25 of 50
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured