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...
Type: Posts; User: king_zart
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...
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!......
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...
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);
?
is
void Show_list( const std::vector<int> &List);
equal to
void Show_list( std::vector<int>const &List);
or not?
my real code is so much different from this i said its just an example...
and tnx your solution works...
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...
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...
is there any standard library for doing this stuffs?(copy move remove rename...)
does system() have any command to remove non empty directory?
hi !
i have a Data folder contain 2 file and some folders
12314
how can i copy this folder ?
os:windows7...
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 });
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;
i download v12.11
but the c++11 wasnt enable by default
i change compiler settings...
nevermind i download the new version of codeblock and now it works
tnx for answers...
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...
i do that before posting...
i am using codeblock v10.05
#include <iostream>
#include<memory>
using namespace std;
struct a{
string test;
};
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'|
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...
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??
why ?
what doest this code mean?!!
std::unique_ptr<a> b( newa() );
hi
simple question:(
its my code
#include <iostream>
#include <string>
using namespace std;
struct a{
string test;
};
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......
i think i found the problem. when i use 2 string the line 56 doesnt work
and still i cant understand why!?
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";...