Search:

Type: Posts; User: king_zart

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. i dont want 2 pointer point to one thing!! i...

    i dont want 2 pointer point to one thing!!
    i want to change the place it points to!
    it is impossible right?


    user_pass *make_list(user_pass *root)
    {
    user_pass *conductor=root;
    char...
  2. make unique pointer equal to pointer or another unique pointer

    hi
    i cant use unique pointers i try searching but i didnt find anything usefull just this sites...
    C++11 FAQ
    and
    std::unique_ptr - cppreference.com
    !!
    so i have still a lot of questions!......
  3. Replies
    20
    Views
    14,557

    i want to learn win32 for just deep learning i...

    i want to learn win32 for just deep learning i dont care if i would use it in future or not or how hard its to use and understand
    why so rush ! i will learn how to use QT or sth else maybe after...
  4. Replies
    4
    Views
    1,225

    i try this void Show_list(...

    i try this
    void Show_list( std::vector<int>const & List);
    and compile with no error
    you mean its different from
    void Show_list( std::vector<int> const & List);
    ?
  5. Replies
    4
    Views
    1,225

    const vector &a vs vector const &a

    is
    void Show_list( const std::vector<int> &List);
    equal to
    void Show_list( std::vector<int>const &List);
    or not?
  6. my real code is so much different from this i...

    my real code is so much different from this i said its just an example...
    and tnx your solution works...
  7. push_back vector at the end of another vector

    i have a recursive function that return a vector
    and the problem is when the function recall itself it make some copy of variables and vector then return that vector
    so if i need all data i need...
  8. Replies
    20
    Views
    14,557

    tnx salem and elysia i changed the win32...

    tnx salem and elysia
    i changed the win32 code(last example) and it seems to work and ofcource i dont know how!:D
    FAQ > Accessing a directory and all the files within it - Cprogramming.com

    would...
  9. Replies
    20
    Views
    14,557

    is there any standard library for doing this...

    is there any standard library for doing this stuffs?(copy move remove rename...)
  10. Replies
    20
    Views
    14,557

    does system() have any command to remove non...

    does system() have any command to remove non empty directory?
  11. Replies
    20
    Views
    14,557

    how to copy folder in c++?

    hi !
    i have a Data folder contain 2 file and some folders
    12314
    how can i copy this folder ?
    os:windows7...
  12. Replies
    11
    Views
    2,075

    is there any way to use intializer list without...

    is there any way to use intializer list without {}?
    for example use this
    foo(1, 2, 3, 4, 5, 6, 7, 8, 9 );
    instead of
    foo({1, 2, 3, 4, 5, 6, 7, 8, 9 });
  13. i have similar question i have ...

    i have similar question
    i have


    ???make_data_list_from_files()
    {
    char g;
    int n=count_member();
    user_data pointer[n];//user_data is a class
    std::fstream file1;
  14. i download v12.11 but the c++11 wasnt enable by...

    i download v12.11
    but the c++11 wasnt enable by default
    i change compiler settings...
  15. nevermind i download the new version of codeblock...

    nevermind i download the new version of codeblock and now it works
    tnx for answers...
  16. there is some problem with codeblock right?!!...

    there is some problem with codeblock right?!!
    even i get these error when i try to compile example in this site!!
    std::unique_ptr - cppreference.com
    is it c++11 code ?
    how can i use it in...
  17. i do that before posting... i am using codeblock...

    i do that before posting...
    i am using codeblock v10.05


    #include <iostream>
    #include<memory>
    using namespace std;
    struct a{
    string test;
    };
  18. i use this std::unique_ptr node(...

    i use this
    std::unique_ptr<user_pass> node( new user_pass );
    in my User_name_check() function instead of new
    but it doesnt compile...
    error: 'unique_ptr' is not a member of 'std'|
  19. just one more question i have this function it...

    just one more question
    i have this function
    it make a link list that contain user name and password from a file(make_list(node)
    then check_user_pass_equal(node,user,pass) function check that...
  20. you mean if i use this b=new a(); the object...

    you mean if i use this
    b=new a();
    the object will remain in memory?
    how about deleting that pointer?
    delete b;
    does it erase the object from memory??
  21. why ? what doest this code mean?!! ...

    why ?
    what doest this code mean?!!


    std::unique_ptr<a> b( newa() );
  22. assign string to the string variable inside structure!

    hi
    simple question:(
    its my code

    #include <iostream>
    #include <string>
    using namespace std;
    struct a{
    string test;
    };
  23. Replies
    11
    Views
    2,075

    ty Elysia...

    ty Elysia however it wasnt the answer i need!
    i change the code and now it seems to work:)
    the problem was in line 81 to 85 i thought making last item in string ' \0' could resize the string......
  24. Replies
    11
    Views
    2,075

    i think i found the problem. when i use 2 string...

    i think i found the problem. when i use 2 string the line 56 doesnt work
    and still i cant understand why!?
  25. Replies
    11
    Views
    2,075

    pass two string in this program...

    i am trying to write a program that work like sprintf but i have one problem!
    when I pass two string into string_print function output isnt correct why?!
    for example
    string a="x %s %s %d";...
Results 1 to 25 of 36
Page 1 of 2 1 2