Thread: Macintosh Compilers? And.....

  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    4

    Question Macintosh Compilers? And.....

    Hi again.
    Well, I have a Mac computer, and the only thing have is MPW,a nd Its great, and pretty much does everything, but not compiling.
    So my question is this; does anyone know any good mac compilers?

    And, on another note, I have started a Mideaval-type game
    Its not even close to being done, but I thought to post the code, just to have some people read it over. Because I'm not sure of syntax =(. Could someone take a look at it?

    Code:
    					// Epic Quest
    			
    					// v0.0.1
    					
    					// By Macabre Productions
    					
    					// ©2003
    					
    					// Pre-release
    
    
    #include <SIOW.h>
    #include <SIOW.r>
    #include <SIOW.o>
    #include <IOStreams.o>
    #include <MacWindows.a>
    
    #define Version "0.0.1"
    
    
    int Info()
    
    {
    
    	printf("Epic Questv0.0.1");
    	
    }
    
    
    int playerinfo()
    
    {
    	printf("What is your name?");
    	cin>>name;
    	return name;
    
    	printf("What is your age?");
    	cin>>age;
    	return age;
    	
    	printf("What is your class? (IE: Warrior, Mage or Archer?)");
    	cin>>charclass;
    	return age;
    
    }
    
    int main()
    {
    
    	Player object:
    	data:
    		Life
    		Strength
    		Intelligence
    		weapon
    		armor
    	actions:
    		heal
    		move
    		attack
    		find item
    	END;
    
    	Demon object:
    	data:
    		Life
    		Armor
    		weapon
    		attack player
    	actions:
    		heal
    		attack
    		move
    	END;
    
    	class char {
    		//stats
    	int Strength;
    	int Vitality;
    	int Intelligence;
    
    	//Equipment
    	pointer weapon;
    	pointer armor;
    
    	//Actions/Movement
    	void move();
    	void attack();
    	void itempickup();
    
    	}
    	
    	class Demon {
    
    	int Damage;
    	int Armor;
    
    	//Equipment
    	pointer weapon;
    	pointer armor;
    
    	//Actions/Movement
    	void move();
    	void attack();
    	void itemdrop();
    
    	}
    	
    	void Player::move() {
    	}
    
    	void Player::attack() {
    	}
    
    	void Player::find item() {	
    	}
    
    	void Player::heal() {
    	life++
    	}
    
    	void Player::lookr() {
    	}
    
    	void Player::lookl() {
    	}
    
    	void Demon::move() {
    	}
    
    	void Demon::attack() {
    	}
    
    
    
    	int levels() 
    
    		{
    
    		int lvlchrdf = 1
    		int lvlchrmx = 99
    
    		int lvldmndf = 1
    		int lvldmnmx = 87
    
    		int chrlife = 100
    
    		if chrlife = 0 {
    		end 
    	}
    }
    Last edited by Macabre; 04-12-2003 at 07:44 AM.

  2. #2
    Registered User
    Join Date
    Apr 2003
    Posts
    18
    Well, if it's supposed to compile, and it's not because of errors, then do what salem said. But if it doesn't include a compile function, then codewarrior used to be really good for Macs. Of course, I think it might be expensive too, but it's a good environment.

    cheers,

    Jim

  3. #3
    Burning in Hell! Luigi's Avatar
    Join Date
    Nov 2002
    Posts
    117
    use codewarrior if u have the money..
    If not use project builder its free..
    u can d/l it from apple.com in the developper section...
    Luigi


    // I use Xcode 1.1 && CodeWarrior 8.3
    // When on Mac Os X 10.3.2

    // I use Microsoft Visual C++ 6.0
    // When on windows XP

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ Builder Comparison
    By ryanlcs in forum Tech Board
    Replies: 14
    Last Post: 08-20-2006, 09:56 AM
  2. Is It Possible To Install Multiple Compilers?
    By mishna_toreh in forum C Programming
    Replies: 3
    Last Post: 05-13-2005, 07:32 AM
  3. Compilers for Windows
    By LegendsEnd in forum Windows Programming
    Replies: 2
    Last Post: 03-26-2004, 08:03 AM
  4. Compilers, Compilers, Compilers
    By Stan100 in forum C++ Programming
    Replies: 11
    Last Post: 11-08-2002, 04:21 PM
  5. target OS compilers
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 07-01-2002, 11:08 AM