Visa ett inlägg
Oläst 2012-07-31, 06:32 #1
Conny Westh Conny Westh är inte uppkopplad
Klarade millennium-buggen
 
Reg.datum: Aug 2005
Inlägg: 5 166
Conny Westh Conny Westh är inte uppkopplad
Klarade millennium-buggen
 
Reg.datum: Aug 2005
Inlägg: 5 166
Efter att ha testkört koden under Ubuntu 12.04 med mono-mcs (en C# clone i Linux-miljön) så kan jag konstatera att resultatet av testkörningen blev identiskt med Windows 7.

Jag bifogar Makefile för den som vill testa:

Kod:
#################################################################
# File: Makefile
# Author: Conny Westh, 2012
#################################################################
# This is a sample program in C#, works perfect in both Windows 7
# with Visual Studio 2010 and in ubuntu 12.04 with mono-mcs
# Command: sudo apt-get install mono-mcs
# to optain the C# compiler needed in ubuntu.
# This sample code demonstrates inheritance, property get and set
# override of method ToString(), Polymorphism, calculated read only
# property...
#################################################################
person : Program.cs Person.cs PersonAge.cs
	mcs -out:person Program.cs Person.cs PersonAge.cs
	@chmod 777 person

.PHONY : clean
clean : 
	@rm -f person *.??~ Makefile~

Senast redigerad av Conny Westh den 2012-07-31 klockan 06:35
Conny Westh är inte uppkopplad   Svara med citatSvara med citat