the more you read, the more you learn.
start with any of the books the members mentioned here.. dont stick to one and consider it as a bible. follow forums, blogs and articles...
Also read different books for better understanding.. .
rest, you will be able to figure out.
thanks
User Profile
Collapse
-
i dont want to hijack this thread as his question is on how to learn c and C++ easily.
I dont want to argue with the above two posters at all, since i feel both are correct in one way or the other.
Since i dont know any back ground about you, whether you have any programming knowledge or not, its difficult to suggest something.
My earlier suggestion was based on my assumption that you will be having some basic...Leave a comment:
-
-
Start reading books.. there are no easy ways as such...
Start reading this book.
Bjarne Stroustrup - The C++ Programming Language, 3rd Edition (Addison Wesley)
As and when you proceed, keep writing small programsLeave a comment:
-
Register is only a request to the compiler....
adding register keyword doesnt guarantee, that the variable goes into the register.
Basically used in embedded programing for faster access of the variables...Leave a comment:
-
There is CDT Plugin available for C++/C Developement for eclipse.
You may search for the same...
install the plugin, do a bit of configuration, you are done...
Now, please dont expect that you will get full feldged support like in Java.. no refractoring etc available..
the CDT development is evolving and hence its a bit buggy....Leave a comment:
-
Another reason i think is to avoid the intelligent compilers from skipping the dead code.
a scenario where a variable is declared and not explicitly used, will be removed by the compiler. But when "volatile" keyword is used its not the case...Leave a comment:
-
you can have a singleton class for the write access one.
so that there is only a single instance of the same.
Now comes read access, which you can have many.
i dont know why you are having inheritance, since there is nothing which you are going to share. you can have a composition if intended....
templating is also not necessary.
another method is to use a factory method and see control the instantiation...Leave a comment:
-
Paste your original code for a correct answer.
you may pass the address while calling the function.
the function call will look like
f1(&value1, &value2);...Leave a comment:
-
this is how you allocate memory
[code=c] variable = new char*[X];
for( i = 0; i < X + 1; ++i)
variable[i] = new char[Y];[/code]...Leave a comment:
-
No, its not possible.....
Even if you try, then a temporary object is actually created and initialized and then discarded.
you can achieve the same effect by clubbing 1 or 2 constructors into a single constructor by giving default parameters....Leave a comment:
-
static member data has a global scope and will reside through out the entire life of the program.
There is only one copy and will be initialized only once.
A constructor is called everytime the class is instantiated, and the reason !!!!!...Leave a comment:
-
http://www.developer.c om/net/cplus/article.php/3449721
SetRegistryKey is an API used in Vc++ i suppose...Leave a comment:
-
haaa...
finally some body told that irrespective of my user name
well i was thinking about reading the hash from file like /etc/shadowpassword or something of that kind if you have access. has not done much research
there wont be any way to read the password legally, other than hacking it.
Else it wont solve the purpose of having the password.
Now you...Leave a comment:
-
i think what he wants to do is to use a symmetric algorithm like AES or DES for encryption/decryption
now what he wants is the Password which he could convert to a 16 byte key, using his own algorithm.
I think you might have thought about some way to create a 16 byte key from the password.
but now the problem is that you need the password from OS, which i am not sure you will be able to get.
write a test application...Leave a comment:
-
-
Little OffTopic, but just for the sake of Information
HOW to Prevent Reverse Engineering (mainly for Java programs)
Code Obfuscation. This is done mainly through variable renaming
Suppression of End Of Line Characters. This makes the code difficult to parse.
Use of anonymous classes for handling events. This seems not to be handled by many Decompiler
Class file encryption....Leave a comment:
-
-
why is VECTOR_LENGTH 255 .....
15 * 15 = 225
you know the reason for your error, right.......Leave a comment:
-
i dont know the API,
but my guess...
there are API's which allocates the memory and return back a populated structure with the size.
its the duty of the user to deallocate the memory.
please check your API doc....Leave a comment:
No activity results to display
Show More
Leave a comment: