Any good challenges for intermediate level C++?

Pages: 1234
You're acting like 3 years of programming experience is worth writing home about.
closed account (Dy7SLyTq)
yeah pfft... 3 years.... 1096 days of programming is something to brag about
Fredbill30 wrote:
How do I copy the array it points to then?
Like Catfish4 suggested use std::copy
1
2
3
4
5
6
7
8
9
void resize(unsigned int amount)
    	{
		T* tmp = new T[amount];        // Allocate a pointer that holds the value
		std::copy(std::begin(value), std::end(value),std::begin(tmp));
		delete[] value;        // Delete the class pointer
		value = tmp; 
			
		cap = amount;          // Update					
	}
Last edited on
chrisname wrote:
You're acting like 3 years of programming experience is worth writing home about.

Write home? He is 12, he just has to go to the other room and say "Hey, mom, I've been programming for 3 years. That is 1096 day, a whole day short of 1097!"
closed account (Dy7SLyTq)
actually its 1095. 3 years + a day os 1096. but thanks for getting the joke
closed account (N36fSL3A)
:( Well you guys were once twelve too.
Not me, I stayed eleven for an extra year so I could get an extra chance of getting into Hogwarts.
When I was twelve, I watched Pokemon, Digimon, and Yu-Gi-Oh all day long.
If you're writing a container similar to vector/dynarray, why not try writing a specialization of YourVector<T*>? Or try writing a dynamic bitset container that's like a combination of vector<bool> and bitset<N>?
closed account (N36fSL3A)
When I was twelve, I watched Pokemon, Digimon, and Yu-Gi-Oh all day long.
Nerd. :P

Daleth, that sounds great, but I was thinking about doing that list thing or my own string class.
closed account (Dy7SLyTq)
Not me, I stayed eleven for an extra year so I could get an extra chance of getting into Hogwarts.


so upset that i didnt think of that. im still hoping that a jedi will come pick me up and take me to the temple :(.


When I was twelve, I watched Pokemon, Digimon, and Yu-Gi-Oh all day long.


:( lucky...
When I was twelve I played games. 1993 was also the year I started looking into how to make games, but it would be 3 more years before I ever found out there were books to teach you how to program.
1993 was also the year I started looking into how to make games


haha that was the year i was born
closed account (S6k9GNh0)
When I was 12, I was learning UnrealScript and Java, I was fluent in PASCAL, and my only computer had 64 MB of RAM (9 years ago).
Last edited on
closed account (N36fSL3A)
64 MB of RAM (9 years ago).
My computer had way more than that 9 years ago...
closed account (Dy7SLyTq)
you knew how much ram your computer had at age three? i doubt it
closed account (N36fSL3A)
Considering I could run GTA 3 on max, it had more ram than that.
closed account (S6k9GNh0)
You played GTA 3 at age 3? Bad parenting much?

Also, I did my math wrong, this was 11 years ago :$. I had just come across the concept of programming and I had BEGGED my step-father for a new computer or something that let me do more than... turn the computer on (since it couldn't handle flash and most web pages... or much of anything else to be honest...)
Last edited on
closed account (N36fSL3A)
My parents are firm believers of things shouldn't be censored. (besides porn, but hey, lets not turn this to another "is it just me " thread.)
Last edited on by Fredbill30
closed account (Dy7SLyTq)
do you mean shouldn't?
no he means should, the whole time he was playing GTA at the age of three his parents covered the screen with their hands
Pages: 1234