Click here to Skip to main content
15,905,229 members
Home / Discussions / C#
   

C#

 
QuestionDose Any one Have any Idea about protect from refelector Pin
Fatehy22-Feb-09 8:18
Fatehy22-Feb-09 8:18 
AnswerRe: Dose Any one Have any Idea about protect from refelector Pin
Luis Alonso Ramos22-Feb-09 9:32
Luis Alonso Ramos22-Feb-09 9:32 
AnswerRe: Dose Any one Have any Idea about protect from refelector Pin
CPallini22-Feb-09 9:32
mveCPallini22-Feb-09 9:32 
AnswerRe: Dose Any one Have any Idea about protect from refelector Pin
harold aptroot22-Feb-09 9:41
harold aptroot22-Feb-09 9:41 
AnswerRe: Dose Any one Have any Idea about protect from refelector Pin
Christian Graus22-Feb-09 11:26
protectorChristian Graus22-Feb-09 11:26 
AnswerRe: Dose Any one Have any Idea about protect from refelector Pin
Xmen Real 22-Feb-09 15:07
professional Xmen Real 22-Feb-09 15:07 
Questionneed help on Virtual stock market using C#.net Pin
nikhilbhatia722-Feb-09 8:07
nikhilbhatia722-Feb-09 8:07 
AnswerRe: need help on Virtual stock market using C#.net Pin
0x3c022-Feb-09 9:12
0x3c022-Feb-09 9:12 
Maybe something like this? I know it isn't a web application but it should give you the general principles of stock market techniques which are used in the real world
using System;
using System.Collections.Generic;

namespace Stock
{
	public struct StockShare
	{
		string Name;
		long Value;
	}
	
	public class StockMarket
	{
		public static void Main(string[] args)
		{
			//TODO: Get the list of stocks and shares from somewhere
			List<stockshare> stocks = new List<stockshare>();
			Random rnd = new Random();

			while (true)
			{
				foreach(StockShare stock in stocks)
				{
					int crashBy = rnd.Next(100, 5000);

					if(stock.Value >= crashBy)
					{
						Console.WriteLine("Old value of " + stock.Name + ": " + stock.Value.ToString());
						stock.Value -= rnd.Next(100, 5000);
						Console.WriteLine("New value of " + stock.Name + ": " + stock.Value.ToString());
					}
					else
					{
						BailOut(stock);
						Console.WriteLine(stock.Name + " has been bailed out. Expect further corruption");
					}
				}
			}
		}

		public static void Bailout(StockShare stock)
		{
			stock.Value += 1000000;
		}
	}
}</stockshare></stockshare>

AnswerRe: need help on Virtual stock market using C#.net Pin
Christian Graus22-Feb-09 11:27
protectorChristian Graus22-Feb-09 11:27 
QuestionHow to simulate clicking "Enter" in game's window? [modified] Pin
aleXXXka22-Feb-09 7:34
aleXXXka22-Feb-09 7:34 
Questionsyncronization application Pin
Jassim Rahma22-Feb-09 6:22
Jassim Rahma22-Feb-09 6:22 
AnswerRe: syncronization application Pin
Giorgi Dalakishvili22-Feb-09 6:32
mentorGiorgi Dalakishvili22-Feb-09 6:32 
AnswerRe: syncronization application Pin
harold aptroot22-Feb-09 6:35
harold aptroot22-Feb-09 6:35 
QuestionError using an array of structs that contain an array Pin
Bruce Coward22-Feb-09 5:41
Bruce Coward22-Feb-09 5:41 
AnswerRe: Error using an array of structs that contain an array Pin
riced22-Feb-09 6:03
riced22-Feb-09 6:03 
GeneralRe: Error using an array of structs that contain an array Pin
Bruce Coward22-Feb-09 6:17
Bruce Coward22-Feb-09 6:17 
GeneralRe: Error using an array of structs that contain an array Pin
riced22-Feb-09 7:09
riced22-Feb-09 7:09 
GeneralRe: Error using an array of structs that contain an array Pin
Bruce Coward23-Feb-09 1:45
Bruce Coward23-Feb-09 1:45 
GeneralRe: Error using an array of structs that contain an array Pin
riced23-Feb-09 2:24
riced23-Feb-09 2:24 
GeneralRe: Error using an array of structs that contain an array Pin
riced22-Feb-09 8:04
riced22-Feb-09 8:04 
AnswerRe: Error using an array of structs that contain an array Pin
Luc Pattyn22-Feb-09 8:35
sitebuilderLuc Pattyn22-Feb-09 8:35 
GeneralRe: Error using an array of structs that contain an array Pin
Bruce Coward22-Feb-09 22:18
Bruce Coward22-Feb-09 22:18 
AnswerRe: Error using an array of structs that contain an array Pin
Luc Pattyn23-Feb-09 2:13
sitebuilderLuc Pattyn23-Feb-09 2:13 
QuestionMSDE connection fails Pin
picasso222-Feb-09 5:24
picasso222-Feb-09 5:24 
AnswerRe: MSDE connection fails Pin
ABitSmart22-Feb-09 14:34
ABitSmart22-Feb-09 14:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.