c# - How to store the results in a database to see history results -



c# - How to store the results in a database to see history results -

i making game people hear determine whether black or white. want store how many times got right , how many times got wrong in database can see old results.

what kind of database (like sqlite) should use? how should save info , display later?

you can utilize binaryserializtion, xmlserialization,......

so first create class:

[serializable] public class result { public int timesright {get;set;} public int timeswrong {get;set;} }

now in game:

result result = new result(); result.timesright = x; //value of times right result.timeswrong = y; //value of times wrong

now take way want save it, here references binary , xml serialization:

binary serialization xml serialization

c# database

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -