I cannot get the following program to work in Microsoft Visual C# 2010 Express. I tworks well in Microsoft Visual C# 2008 Express.
using System;
Download Visual Studio Community, Professional, and Enterprise. Try Visual Studio Code or Team Foundation Server for free today. Azure DevOps Server Express is a.
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace GeorgetownCleaningServices4
{
class Program
{
[STAThread]
static void Main(string[] args)
{
string CustomerName, Address, CityStateZip, HomePhone, Emailaddress, Agent, Advertisement;
Int64 i;
StreamWriter sw = newStreamWriter('C:Carr1.txt', true, Encoding.ASCII);
sw.WriteLine('CENTURY21 OPEN HOUSE ');
sw.WriteLine('OPEN HOUSE GUEST REGISTRY ');
sw.WriteLine('Address: 7912 Westbrook Road');
sw.WriteLine('Date: 02/28/2012');
sw.WriteLine('Agent: Cedric Trigg');
Console.WriteLine(' ');
sw.WriteLine(');
sw.WriteLine(');
sw.WriteLine('By signing this registry and Do Not Call Waiver, I/we hereby grant Century 21 Joe Guy Hagan, its affiliated offices ');
sw.WriteLine('and Cedric Trigg, it agent permission to contact me/us at the telephone number(s) listed below until or unless I/we ');
sw.WriteLine('give Century 21 Joe Guy Hagan and its affiliated offices and Agent written notice to stop telephoning me/us at this ');
Visual Studio C# Express 2010 Download Iso
sw.WriteLine('number(s).');
// Request customer information from the user
// read and process three names
try
{
for (i = 0; i < 2; i++)
{
Console.Write('Enter Customer Name:');
CustomerName = Console.ReadLine();
Console.Write('Enter Address:');
Address = Console.ReadLine();
Console.Write('Enter City, State and Zipcode:');
CityStateZip = Console.ReadLine();
Console.Write('Enter Customer Phone: ');
HomePhone = Console.ReadLine();
Console.Write('Enter Email Address: ');
Emailaddress = Console.ReadLine();
Console.Write('Enter Real Estate Agent Representing You: ');
Agent = Console.ReadLine();
Console.Write('How did you hear about us - Internet, Newspaper, YardSigns, or Office: ');
Advertisement = Console.ReadLine();
sw.WriteLine(');
sw.WriteLine(' ');
sw.Write(CustomerName);
sw.WriteLine(' ');
sw.Write(Address);
sw.WriteLine(' ');
sw.Write(CityStateZip);
sw.WriteLine(' ');
sw.Write(HomePhone);
sw.WriteLine(' ');
sw.Write(Emailaddress);
sw.WriteLine(' ');
sw.Write(Agent);
sw.WriteLine(' ');
sw.Write(Advertisement);
Visual Studio 2013 Download Free
sw.WriteLine(');
sw.WriteLine('n');
Console.Write('n');
}
sw.Close();
}
catch (Exception e)
{
Console.WriteLine('Exception: ' + e.Message);
}
finally
{
Console.WriteLine('Executing finally block.');
}
}
}
}