I thought it would lure some people who see that forum is less active and that they can have an idea to begin posting their codes here for start of their forum programming hobby xD . Something like that
Here for example i post in Mathematics section in programming thread how to make simple fraction class. Then users can plug in adding, multiplying, dividing...(i can add that too but for start i will just add shorting the given fraction like 4/2 we can make in just number 2 4 = 2 and 2 = 1 2/1 = 2).
This is in C++ language. #include <iostream> #include <cstdlib>//cstdlib is included with iostream but i like manual job
using namespace std;//so we dont use std:: in front of standard library members //now the class
class Fraction{ public: int num; //Numerator int den; //Denominator public: void set(int n, int d){num = n; den = d; normalize();} int get_num(){return num;} int get_den(){return den;} private: void normalize(); //For now i will include lcm but it still doesent have use int lcm(int a, int b){int n = gcf(a, b); return a / n * b;} int gcf(int a, int b); };
//I wont use int main here i will just define function members void Fraction::normalize() {
What is this thread? Are we supposed to discuss programming here or are you asking us to do something different with the forums?
Its like Game Design thread like this Suggestion thread but just other. Just to add possibility for programming talks. Maybe some people join. We can talk about algorithms edit some applications(Modding as you wish in short ). What you think?
It would be nice if we had programming thread for some popular languages like: C++, C#, C, Java...python....
What would each topic have?
-Tutorial -Sample programs
What stickies should "Sample Programs" have? -Mathematics -Graphic programs -How to post your program
Please suggest more if you are interested.If this works out i will immediately post first math solving programs like Fractions, prime numbers, greatest common numbers and lowest common multiples and we can work for start on some small 2D game like pokemon or something.