Coder Profile - Show off your skills, get a coder profile.
 
 
 
User Name Cinjection
Unique Hits 1,803
Real Name Oleksi Derkatch
Location Canada
Ontario
Occupation Student/Software Developer
Gender Male
Age 18 Years Old
WebSite - - -
Post A Profile Comment
Some Random Friends
  view more
dELtaluca
Luca Deltodesco
Craige
Craige Leeder
MorbidMorvick
Nick
Recently Added Articles
  view more
Intorduction to memoization.
Programming
Memoization(not memorization) is a programming technique often used in dynamic programming. In essence, it just means having your program remember previous calculations and reuse those results in similar calculations later. It's a rather simple technique and yet it can make a huge difference in efficiency. Let's the common task of calculating Fibonacci numbers. Say that I need to output the first n Fibonacci numbers. Well the simplest approach is to use tree recursion: Now although this solution is the easiest to formulate it is extremely inefficient. The reason why it is so inefficient, is because there is a huge amount of recalculation involved. Take fibonacci(6), which is to take the 6th term of Fibonacci. If we trace the recursive calls, we will see a structure similar to this: f(6) f(5) + f(4) f(4) + f(3) + f(3) + f(2) f(3) + f(2) + f(2) + f(1) + f(2) + f(1) + f(1) + f(0) f(2) + f(1) + f(1) + f(0) + f(1) + f(0) + 1 + f(1) + f(0) + 1 + 1 + 0 f(1) + f(0) + 1 + 1 + 0 +... View In Full
4 Comments 8.00 out of 10
Strings in C++
Programming
In C, if you ever wanted to use strings, you would need to use a null-terminated array of characters. It was ugly, unsophisticated, and very susceptible to buffer overflows. C++ and it's STL gives you a much better solution; the string class. Making a string is easy: #include <string> using namespace std; string firstName("Oleksi"); string lastName; lastName = "Derkatch"; Simple, as you can see. Strings keep track of their own size using the length() member: string name("Oleksi"); name.length(); //Returns 6 name = "ma"; name.length(); //Returns 2 As you can see, changing the string value is simple as well. If you need to access individual characters of the string, you can treat the string as a character array in C. That is, you can easily do something like this: string name("Jack"); for (int i(0); i < name.length(); ++i) { cout << name ; } C++ overloads the extracti... View In Full
1 Comments 6.00 out of 10
Vectors in C++
Programming
The C++ STL library defines a vector class which gives you a pre-made generic vector. You can use it in the same way as you would a regular array, only a vector is safer to use and more sophisticated. Creating one is simple: #include <vector> using namespace std; vector<int> myVector; You have now created a vector to hold integers. One of the best things about vectors is that memory for them is dynamically allocated. This is perfect for occasions when you do not know the exact number of elements you may need at compile time. Here's an example: #include <vector> using namespace std; vector<int> myVector; myVector.push_back(42); myVector.push_back(34); Note that I never explicitly tell the compiler how large my vector is. At this point in time, it contains 2 elements, but I can easily add another element to the back of the vector. If I need to get the number of elements in the vector, I can simply use the size()... View In Full
4 Comments 9.00 out of 10
Recently Added Source Codes
  view more
Wordsearch generator.
Language Posted Comments
C# (C Sharp) 19 Hours Ago 0
Rating Downloadable Plain Text
- - - Yes 6,886 Chrs
Generates a word search. The words a drawn from a text file. It starts with just a few words, so put in more if you want to have a more dynamic game.
Linked List in C#
Language Posted Comments
C# (C Sharp) 1 Day Ago 0
Rating Downloadable Plain Text
6.00 - - - 3,397 Chrs
A small implementation of a generic Linked List in C#. Let me know if I'm making any C# faux pas. I'm still learning the language. This list supports: adding to the end indexing index lookup re
Julia Set
Language Posted Comments
C# (C Sharp) 21 Days Ago 1
Rating Downloadable Plain Text
- - - Yes 2,209 Chrs
Draws the Julia set. This option lets you customize colors and the specific set. You can even draw the Mandelbrot set. Experiment with the colors to see some really pretty fractals.
Profile Comments
  
Please login to post comments.
 
Ms_C_plus_plus     Posted 52 Days Ago
 
 
Yo! Homie!! Now I can call YOU that :-P
 
gr3nade     Posted 93 Days Ago
 
 
Yes it is I.
 
FallingTears     Posted 93 Days Ago
 
 
Thanks,

That's what I'm actually working on. I'm taking Java in college.
Our course required the "Java: A Beginner's Guide" by Herbert Schildt.


Some of his explanations of concepts are pretty good. Others need some serious
work. So, sometimes I have to interpret the things he says about certain subjects and
translate it to something I would understand ... and, honestly, it's not easy
sometimes.

If it weren't for the fact that I already dealt with if/else, switch, while,
do-while, and for in C++ I would probably be lost in Java.
 
FallingTears     Posted 94 Days Ago
 
 
I'll definitely ask you. Selection structures and repetition structures,
regardless of the language that's being learned, are simple.

I want to up it a notch, but I don't know where to go with Java. I don't
want to get into Swing or awt, yet. There are things I would like to learn before
getting into such vast subjects.

Any suggestions?
 
FallingTears     Posted 94 Days Ago
 
 
Take a look at my newest Java code. I have only been working with Java for about 4
days or so.
 
VBAssassin     Posted 105 Days Ago
 
 
Oh right that sounds quite cool :-)
 
VBAssassin     Posted 105 Days Ago
 
 
So what sort of stuff would you be able to do when you graduate?

Kind regards,
Scott
 
VBAssassin     Posted 106 Days Ago
 
 
thats always good news. Some people love it, others hate it! Never seem to get people
saying "it's alright" lol.

Whats the course your doing again?

Kind regards,
Scott
 
VBAssassin     Posted 106 Days Ago
 
 
Oh right. Nothing much here either. Just work, CP, and g/f. So same stuff really.

How's uni going?

Kind regards,
Scott
 
VBAssassin     Posted 107 Days Ago
 
 
Hey mate, where you been recently? :-S

Kind regards,
Scott
<< Previous Page :: Page of 16 :: Next Page >>
Oleksi Derkatch (18)
Canada, Ontario
Cinjection has 14 fans
become a fan
� Applications
Articles Articles (8)
Source Codes Source Codes (61)
Code Pin Board Code Pin Board (13)
� About Me
About Me About Me
User Groups User Groups (11)
Portfolio Portfolio (7)
Friends Friends (91)
� Misc
Overview Overview
Send A Friend Invite
Send Message Send A Message
RSS Whole Profile Feed
 
 
Latest News About Coder Profile
Coder Profile Poll
What would you rate the usability of Coder Profile?

9 to 10
7 to 8
5 to 6
3 to 4
1 to 2


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
37 Days Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright � 2007 - 2009, Scott Thompson, All Rights Reserved