Earlier today I begun my C# program. My goal is to make an interactive bot that works on if else statements. Bear in mind, I am still very clueless about C#, and my teacher refuses to give clear answers. here is my code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication12
{
class Program
{
static string response1;
static string response2;
static void Main(string[] args)
{
response1=
if (response1)
{
Console.WriteLine("Hello");
}
else
{
}
}
}
}
What should I do to make response1 mean "Hello," or "Hi,"? Any help would be much appreciated.
MOD EDIT: Please note the big PINK box at the top of posting a new thread. Also, please note the background of the text block that you are typing in.
Please post any code within the code tags
This post has been edited by eclipsed4utoo: 07 February 2011 - 06:29 AM
Reason for edit:: adding code tags

New Topic/Question
Reply





MultiQuote






|