April 13th, 2010, 09:57 AM
What is the equivalent of HashSet in C++? How do I use it (as in basic add, remove, and iterating through)
April 9th, 2010, 12:45 PM
Is it possible to increase the max size of a string?
April 9th, 2010, 11:58 AM
I was storing a lot of things into my string, and it seems to have run out of memory. I have thought about using a array/vector of characters, however, I wish to retain the ability to do substring,...
April 9th, 2010, 11:44 AM
How does substr() in the string class work?? Does it copy over each character linearly?
Thanks in advance
March 26th, 2010, 12:14 PM
I have found that often I am asking which way of solving problems are faster. Thus I will ask how to time a program here so that I can test the runspeed myself. In Java I know you can use
long...
March 26th, 2010, 12:01 PM
March 26th, 2010, 11:56 AM
What would the difference be if i was an iterator or a pointer? Would it advance the iterator/pointer first, then go through the for loop if it was prefix form?
March 26th, 2010, 11:45 AM
I have heard that ++i and i++ are different from each other. I am aware that if I do something like:
int i = 0;
int k = i++;
then k is 0, and if I do
int i = 0;
int k = ++i;
March 24th, 2010, 02:23 PM
Are iterators the only way to get data from a list? Can I use list[1]??
Thanks in advance.
March 24th, 2010, 08:47 AM
March 24th, 2010, 08:44 AM
How do you time in C++? I have only done it in Java.
Thanks in advance
March 24th, 2010, 08:20 AM
I know I can iterate through a vector using:
for(vector::size_type i = 0; i < vec.size(); i++){
cout << vec[i];
}
(vec is the name of the vector)
I also know that I can use an iterator...