AOA Forums AOA Forums AOA Forums Folding For Team 45 AOA Files Home Front Page Become an AOA Subscriber! UserCP Calendar Memberlist FAQ Search Forum Home


Go Back   AOA Forums > Software > Programming and Assembly Language

Programming and Assembly Language Please read this Topic's rules!!


Reply
 
LinkBack Thread Tools Rate Thread
  #21 (permalink)  
Old 24th August, 2005, 11:01 PM
Kaitain's Avatar
Member
Mars Rover Champion, Joust Champion
 
Join Date: September 2001
Location: MK10, UK.
Posts: 4,372
Send a message via MSN to Kaitain Send a message via Skype™ to Kaitain

Quote:
Originally Posted by gizmo
I was going to wait on the more advanced stuff until he could handle the basics.
That's alright, I can't handle the basics either. Didn't stop me passing an exam requiring me to write code for multithreaded Solaris junk... on paper.

Proof that you don't have to know what you're doing to write code
__________________
It is by coffee alone I set my mind in motion...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #22 (permalink)  
Old 25th August, 2005, 12:00 AM
Chesso's Avatar
Banned
 
Join Date: January 2005
Location: Sydney - Australia
Posts: 877
Send a message via MSN to Chesso

I didn't know that i know literally hundreds of people that have used the ability to write gif files and i didn't realise commercial applications payed either. What language was your browser written in skool h8r?

Also string's in c/++ arent that difficult after i got used to the idea of char arrays it was fairly simple.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 25th August, 2005, 10:58 AM
skool h8r's Avatar
Member
 
Join Date: January 2005
Location: Rotherham, UK
Posts: 3,157
Send a message via MSN to skool h8r

I tried a buffer overrun with the numbers version i created, it output a weird minus number when the user is asked to confirm them. Gizmo, could you post the corrected code so it can use characters as when i tried to change it and compile, i just got errors, my fault obviously. I'd rather not say what language my browser was written in as it would make it really obvious how i got all the features in.
__________________
i7 2600K (4.3Ghz 1.34v) | GTX580 | 16GB (4x4GB) Patriot Viper Sec. 5 Ser. 2 (1866 - 9-11-9-27) | P67A-UD4-B3
Corsair AX1200 | Vertex II 240GB SSD | 4TB RAID0 (Samsung HD204UI) | Logitech G930 Wireless Headset

YouTube - Benchmark Results (Coming Soon!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 25th August, 2005, 11:09 AM
hoinar's Avatar
Member
 
Join Date: February 2005
Location: Iasi, Romania
Posts: 945
Send a message via Skype™ to hoinar

Lol mate, you mustn't be ashamed of your language of use! Come on mate. There is no bad language on programming earth
__________________
I'd cry...but I can't stop laughing.
AOA Team fah
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25 (permalink)  
Old 25th August, 2005, 11:26 AM
skool h8r's Avatar
Member
 
Join Date: January 2005
Location: Rotherham, UK
Posts: 3,157
Send a message via MSN to skool h8r

Still, i'd rather not say. It really would make it easy for everyone to copy it and then i would be out of a hobby, simply because people would be legally copyrighting all my ideas. At the moment, i simply put that it is copyright because i thought of the idea/s and if i legally copyright it, then no doubt there would be lots people trying to sue my ass because they say they thought of the idea first. Ok, i got the idea of tabs from firefox, but that thing uses html and javascript to make simulated tabs. It ain't perfect but at least it's not infringement of copyright. The rest of the technologies that haven't been seen in any other browser were made and developed by me. I'll say one thing though, Re-volt X2 will have the ability to accept commands and there's some in there to make it translucent, make it kind of Longhorn/Vista Aero stylee!
__________________
i7 2600K (4.3Ghz 1.34v) | GTX580 | 16GB (4x4GB) Patriot Viper Sec. 5 Ser. 2 (1866 - 9-11-9-27) | P67A-UD4-B3
Corsair AX1200 | Vertex II 240GB SSD | 4TB RAID0 (Samsung HD204UI) | Logitech G930 Wireless Headset

YouTube - Benchmark Results (Coming Soon!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #26 (permalink)  
Old 25th August, 2005, 11:45 AM
Chesso's Avatar
Banned
 
Join Date: January 2005
Location: Sydney - Australia
Posts: 877
Send a message via MSN to Chesso

By the sound's of it i would say a runtime dependant language either java or visual basic

If you still want simplistic code and ide(without need for runtime's) try out borland delphi. What c/++ compiler do you use? i just used the Dev-CPP one as i hate the microsoft one and MFC is all too luring despite my great hate for it.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #27 (permalink)  
Old 25th August, 2005, 12:06 PM
hoinar's Avatar
Member
 
Join Date: February 2005
Location: Iasi, Romania
Posts: 945
Send a message via Skype™ to hoinar

Thumbs up

Quote:
Originally Posted by Chesso
By the sound's of it i would say a runtime dependant language either java or visual basic

If you still want simplistic code and ide(without need for runtime's) try out borland delphi. What c/++ compiler do you use? i just used the Dev-CPP one as i hate the microsoft one and MFC is all too luring despite my great hate for it.
Mate, Dev-CPP is an IDE not a compiler the compiler for Dev-CPP is Mingw's port for GCC ... good old Cpp compiler found also on Linux.
And MS Visual Studio is a darn good IDE/compiler . For Win compilers I read that the Intel compiler is the best and MS one is very close to it.
__________________
I'd cry...but I can't stop laughing.
AOA Team fah
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #28 (permalink)  
Old 25th August, 2005, 12:16 PM
skool h8r's Avatar
Member
 
Join Date: January 2005
Location: Rotherham, UK
Posts: 3,157
Send a message via MSN to skool h8r

The compiler i'm using is LCC-Win32. It's free and does it's job. A bit old but still good. I would consider buying delphi, but i simply don't know enough of C yet to make it an option. Does anybody know of a drag and drop IDE i could use for application development? That way, i can visualise it and still practice programming. I know that VB6 is getting on a bit but i've never really had the chance to try it out. It still has it's uses i dare say.
__________________
i7 2600K (4.3Ghz 1.34v) | GTX580 | 16GB (4x4GB) Patriot Viper Sec. 5 Ser. 2 (1866 - 9-11-9-27) | P67A-UD4-B3
Corsair AX1200 | Vertex II 240GB SSD | 4TB RAID0 (Samsung HD204UI) | Logitech G930 Wireless Headset

YouTube - Benchmark Results (Coming Soon!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #29 (permalink)  
Old 25th August, 2005, 12:22 PM
Rondog's Avatar
Member
 
Join Date: January 2005
Location: Victoria, Australia
Posts: 3,298
Send a message via MSN to Rondog

Quote:
Originally Posted by hoinar
Mate, Dev-CPP is an IDE not a compiler the compiler for Dev-CPP is Mingw's port for GCC ... good old Cpp compiler found also on Linux.
And MS Visual Studio is a darn good IDE/compiler . For Win compilers I read that the Intel compiler is the best and MS one is very close to it.
When I was trying to learn C++ I used Dev-Cpp.
__________________
AOA Team fah

Rig 1: Intel Core i5 750,4gb,HD6870,500gb,W7 Ult x64
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #30 (permalink)  
Old 25th August, 2005, 12:22 PM
Chesso's Avatar
Banned
 
Join Date: January 2005
Location: Sydney - Australia
Posts: 877
Send a message via MSN to Chesso

There are free makes(Like C++ has many compilers+ide combo's delphi has a few too) of delphi around and also an actual free version of borland delphi that is downloadable though i have no idea on it's restrictions.

I know Dev-CPP isn't the compiler but a good IDE is very important also unless you wan't to program notepad style heh heh.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #31 (permalink)  
Old 25th August, 2005, 12:25 PM
skool h8r's Avatar
Member
 
Join Date: January 2005
Location: Rotherham, UK
Posts: 3,157
Send a message via MSN to skool h8r

Notepad, such a lost cause even though it's one of the applications i use most, simply to wite something out before i actually write it live to the internet.
__________________
i7 2600K (4.3Ghz 1.34v) | GTX580 | 16GB (4x4GB) Patriot Viper Sec. 5 Ser. 2 (1866 - 9-11-9-27) | P67A-UD4-B3
Corsair AX1200 | Vertex II 240GB SSD | 4TB RAID0 (Samsung HD204UI) | Logitech G930 Wireless Headset

YouTube - Benchmark Results (Coming Soon!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #32 (permalink)  
Old 25th August, 2005, 12:32 PM
hoinar's Avatar
Member
 
Join Date: February 2005
Location: Iasi, Romania
Posts: 945
Send a message via Skype™ to hoinar

Talking

Quote:
Originally Posted by Rondog
When I was trying to learn C++ I used Dev-Cpp.
And did you succeed?

Quote:
Originally Posted by Chesso
There are free makes(Like C++ has many compilers+ide combo's delphi has a few too) of delphi around and also an actual free version of borland delphi that is downloadable though i have no idea on it's restrictions.

I know Dev-CPP isn't the compiler but a good IDE is very important also unless you wan't to program notepad style heh heh.
Try to write some UI code this way
__________________
I'd cry...but I can't stop laughing.
AOA Team fah
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #33 (permalink)  
Old 25th August, 2005, 12:53 PM
Rondog's Avatar
Member
 
Join Date: January 2005
Location: Victoria, Australia
Posts: 3,298
Send a message via MSN to Rondog

Quote:
Originally Posted by hoinar
And did you succeed?
This is as about as advanced as I got. Sad I know...
Attached Files
File Type: zip Dev-Cpp.zip (583.4 KB, 136 views)
__________________
AOA Team fah

Rig 1: Intel Core i5 750,4gb,HD6870,500gb,W7 Ult x64
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #34 (permalink)  
Old 25th August, 2005, 01:05 PM
skool h8r's Avatar
Member
 
Join Date: January 2005
Location: Rotherham, UK
Posts: 3,157
Send a message via MSN to skool h8r

There is one thing i really want to learn though, how to make windows applications rather than the console application i made earlier.

I just looked at your rondog, that's quite good, how do you ask if the user would like to try again? and do you have some source i could mess about with for this (i take it it was made in C).
__________________
i7 2600K (4.3Ghz 1.34v) | GTX580 | 16GB (4x4GB) Patriot Viper Sec. 5 Ser. 2 (1866 - 9-11-9-27) | P67A-UD4-B3
Corsair AX1200 | Vertex II 240GB SSD | 4TB RAID0 (Samsung HD204UI) | Logitech G930 Wireless Headset

YouTube - Benchmark Results (Coming Soon!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #35 (permalink)  
Old 25th August, 2005, 01:10 PM
Rondog's Avatar
Member
 
Join Date: January 2005
Location: Victoria, Australia
Posts: 3,298
Send a message via MSN to Rondog

Quote:
Originally Posted by skool h8r
There is one thing i really want to learn though, how to make windows applications rather than the console application i made earlier.

I just looked at your rondog, that's quite good, how do you ask if the user would like to try again? and do you have some source i could mess about with for this (i take it it was made in C).
C++. You try again by typing in 'yes'. Without the quotes.

Jailbait or mmm:

Code:
#include <iostream>
#include <string>
 using namespace std;
 
int main()

{

    int age;
    char input[256];
    do {
    
    cout << endl << "Please type in an age: ";
    
    cin >> age;

    if ((age >= 16) && (age <= 30)) { // Person between 16 and 30 returns "mmm"
        cout << endl << "Mmm" << endl;
    } else if ((age < 16) && (age >= 12)) { // Person between 12 and 16 returns "jailbait"
        cout << endl << "Jailbait" << endl;
    } else if (age <= 12) { //Person under 12 returns "pedofile"
        cout << endl << "Pedofile" << endl;
    } else if ((age > 30) && (age <= 45)) { //Person between 30 and 45 returns "beauty is in the eye of the beholder"
        cout << endl << "Beauty is in the eye of the beholder" << endl;
    } else if ((age > 45) && (age <= 60)) { //Person between 45 and 60 returns "dont want to hear about it"
        cout << endl << "Dont want to hear about it" << endl;
    } else if ((age > 60) && (age <=100)) { //Person between 60 and 100 returns "that is just wrong"
        cout << endl << "That is just...wrong" << endl;
    } else if (age > 100) { //Person over 100 returns "necropheliac!"
        cout << endl << "Necropheliac!" << endl;
    }   
        cout << endl << "Would you like to try again? (yes/no) ";
        cin >> input;
    } while ((strcmp(input,"yes") == 0)); //End do...while loop.
}//End main()
Years Into Months:

Code:
#include <iostream>
#include <string>
 using namespace std;

int main()

{
    int age;
    int month = 12;
    int days = 365;
    int hours = 24;
    int minutes = 60;
    int seconds = 60;
    char input[256];
    do { 
    
        cout << endl << "How many years? ";
        cin >> age;
        cout << endl << age << " years is " << age * month << " months old" << endl;
        cout << "Which is " << age * days << " days" << endl;
        cout << "Which is " << age * days * hours << " hours" << endl;
        cout << "Which is " << age * days * hours * minutes << " minutes" << endl;
        cout << "Which is " << age * days * hours * minutes * seconds << " seconds" << endl;
    
        cout << endl << "Would you like to calculate again? (yes/no) ";
        cin >> input;
    } while ((strcmp(input,"yes") == 0)); //End do...while loop.
} //End main().
I also made a basic calculator:

Code:
#include <iostream>
#include <string>
 using namespace std;

int main()

{
	int x;
	int y;
	char z;
	int answer;
    int remainder;
    char input[256];
    do {

	cout << endl << "Please input the first number: "; 
    cin >> x;
    cout << endl << "Please select sign: ";
    cin >> z;
    cout << endl << "Please input the second number: ";
    cin >> y;
     if (z == '+') { 
        answer = x + y;
    } else if (z == '-') { 
        answer = x - y;
    } else if (z =='/') { 
        answer = x / y;
        remainder = x % y;
    } else if (z == '*') { 
        answer = x * y;
    } else { 
        cout << "Use a proper sign or ping off :P" << endl;
    } //End if - else block.
    cout << endl << x << z << y << " = " << answer << endl;
    
    cout << endl << "Would you like to perform another calculation? (yes/no) ";
    cin >> input;
    } while ((strcmp(input,"yes") == 0)); //End do...while loop.
    
} //End main().
__________________
AOA Team fah

Rig 1: Intel Core i5 750,4gb,HD6870,500gb,W7 Ult x64
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #36 (permalink)  
Old 25th August, 2005, 01:15 PM
hoinar's Avatar
Member
 
Join Date: February 2005
Location: Iasi, Romania
Posts: 945
Send a message via Skype™ to hoinar

Talking

Quote:
Originally Posted by Rondog
This is as about as advanced as I got. Sad I know...
Ummm...mate..you're young so you have plenty of time if you want to learn computer programming.
Edit: Aa...and mate...make some basic checks at the user input before calculating something I think that integer type for some of your variables is not enough.
__________________
I'd cry...but I can't stop laughing.
AOA Team fah
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #37 (permalink)  
Old 25th August, 2005, 01:17 PM
Rondog's Avatar
Member
 
Join Date: January 2005
Location: Victoria, Australia
Posts: 3,298
Send a message via MSN to Rondog

Quote:
Originally Posted by hoinar
Ummm...mate..you're young so you have plenty of time if you want to learn computer programming.
Yeah I know. I have a book on C#. Which im not going to use. Because I found out Bill Gates touched that language.

And I havent had time to buy a good C++ book. I think I may ask for a C++ book for my birthday and maybe a dremel.

If I get stuck is there people here who could help me with C++?
__________________
AOA Team fah

Rig 1: Intel Core i5 750,4gb,HD6870,500gb,W7 Ult x64
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #38 (permalink)  
Old 25th August, 2005, 01:18 PM
Chesso's Avatar
Banned
 
Join Date: January 2005
Location: Sydney - Australia
Posts: 877
Send a message via MSN to Chesso

I learnt it pretty quick i made a basic windows gui with minor functionality to test my smartyness and a dll for an alternate shell for windows(When Blackbox for windows was still in active development). Which took me all of 30 minutes in total for both

I did alot of googling though especially for getting started on writing a gui as it is damn annoying.

I didn't go too far with c++ as delphi is just so much easier and it doesn't have any flaws or performance loss that inconviences me.

EDIT: What do you mean an integer value isn't enough? integer's are the largest numeric value besides a long integer isn't it? or does this differ in c++.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #39 (permalink)  
Old 25th August, 2005, 01:25 PM
hoinar's Avatar
Member
 
Join Date: February 2005
Location: Iasi, Romania
Posts: 945
Send a message via Skype™ to hoinar

Talking

Quote:
Originally Posted by Rondog
Yeah I know. I have a book on C#. Which im not going to use. Because I found out Bill Gates touched that language.

And I havent had time to buy a good C++ book. I think I may ask for a C++ book for my birthday and maybe a dremel.

If I get stuck is there people here who could help me with C++?
Lol mate, you're such a kid with such an affirmation but I forgive you, cause I like you :P C# and the .Net Framework are made by some very strong programmers, one of wich worked before to develop Delphi to be like it is today And Gates didn't touch that language as I know
If you know some OOP programming you could learn C# much quicker than C++.
__________________
I'd cry...but I can't stop laughing.
AOA Team fah
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #40 (permalink)  
Old 25th August, 2005, 01:27 PM
hoinar's Avatar
Member
 
Join Date: February 2005
Location: Iasi, Romania
Posts: 945
Send a message via Skype™ to hoinar

Talking

Quote:
Originally Posted by Chesso
I learnt it pretty quick i made a basic windows gui with minor functionality to test my smartyness and a dll for an alternate shell for windows(When Blackbox for windows was still in active development). Which took me all of 30 minutes in total for both

I did alot of googling though especially for getting started on writing a gui as it is damn annoying.

I didn't go too far with c++ as delphi is just so much easier and it doesn't have any flaws or performance loss that inconviences me.

EDIT: What do you mean an integer value isn't enough? integer's are the largest numeric value besides a long integer isn't it? or does this differ in c++.
Enter a big number for years and see what you get for seconds
__________________
I'd cry...but I can't stop laughing.
AOA Team fah
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
linux help required skool h8r OS, Software, Firmware, and BIOS 5 31st July, 2006 05:10 AM
New Athlon Cpu Required surgeon AMD Motherboards & CPUs 15 18th November, 2005 05:29 PM
More mentions required dod ThunderRd's AOA FOLDING@HOME Team 4 8th October, 2004 08:47 PM


All times are GMT +1. The time now is 04:12 AM.


Copyright ©2001 - 2023, AOA Forums
Don't Click Here Don't Click Here Either

Search Engine Friendly URLs by vBSEO 3.3.0