|
sethupathiram wrote: please share your ideas its very urgent for me
So what have you got so far? What code have you written? Which part is causing you a problem?
|
|
|
|
|
|
|
Something like this should work:
static IEnumerable<T[]> BuildCombinations<T>(T[] input)
{
int length = input.Length;
int max = checked(1 << length);
for (int combination = 1; combination < max; combination++)
{
var current = new T[length];
for (int index = 0, bit = 1; index < length; index++, bit <<= 1)
{
if ((combination & bit) != 0)
{
current[index] = input[index];
}
}
yield return current;
}
}
...
string pattern = " INC | TRUST | COMPANY | 401K ";
string[] ArrPattern = pattern.Split('|');
List<string[]> allCombinations = BuildCombinations(ArrPattern);
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I don't find any other better combinations for it, all the BEST possibilities are mentioned in your thread itself.
|
|
|
|
|
I am getting error
Error 1 The type or namespace name 'Form1' could not be found (are you missing a using directive or an assembly reference?) on the subject while trying to build this with Visual C#:
using System;
using System.Windows.Forms;
using SKYPE4COMLib;
namespace SkypeBing
{
public partial class Form1 : Form
{
private Skype skype;
private const string trigger = "!";
private const string nick = "BOT";
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
skype = new Skype();
skype.Attach(7, false);
skype.MessageStatus +=
new _ISkypeEvents_MessageStatusEventHandler(skype_MessageStatus);
}
private void skype_MessageStatus(ChatMessage msg,
TChatMessageStatus status)
{
string command = msg.Body.Remove(0, trigger.Length).ToLower();
skype.SendMessage(msg.Sender.Handle, nick +
" Says: " + ProcessCommand(command));
}
private string ProcessCommand(string str)
{
string result;
switch (str)
{
case "uli":
result = "http://www.youtube.com/watch?v=VfvBQMqCZw8";
break;
default:
result = "Uliuli";
break;
}
return result;
}
}
}
Whole error:
Error 1 The type or namespace name
That is the whole error.
Line 99 Column 33
modified 13-May-13 10:45am.
|
|
|
|
|
Which line does the error occur on?
Use the best guess
|
|
|
|
|
Error 1 The type or namespace name
That is the whole error.
Line 99 Column 33
|
|
|
|
|
Topias Jäppilä wrote: C:\Users\Topsu\Documents\Visual Studio 2012\Projects\Skaip\Skaip\Program.cs 19 I think you actually mean line 19. However, you also have not shown us the content of Program.cs so we cannot guess what is wrong in there.
Use the best guess
|
|
|
|
|
Well only .cs I have on my project is Form1.cs and that makes me wondering why it says something about Program.cs
|
|
|
|
|
Topias Jäppilä wrote: only .cs I have on my project is Form1.cs Have a look in the Solution Explorer window and you will see a full list of all source files in your project.
Use the best guess
|
|
|
|
|
I have a feeling that you have not included the namespace in program.cs that Form1 is using
i.e.
Form1 Myform = new form();
When you should of possibly done
SkypeBing.Form1 Myform = new SkypeBing.Form1();
Every day, thousands of innocent plants are killed by vegetarians.
Help end the violence EAT BACON
|
|
|
|
|
I am not getting it, on which line does this error occur? Please check your solution explorer to discover it.
|
|
|
|
|
Please help me to do this operations by using Asp.Net
1.Several screens (or one very functional one) to view the data in a variety of ways like by Phase, by ESXHost, by Application.
I think if we have several drop downs for filtering then that would work; so I can choose Phase 1, to show only the databases that will be migrated in Phase 1, then I can choose some other criteria and the screen shows a subset of data etc.
2. The Pre-requisites and Post-Migration checks should show whether the Phase or database migration is ready to start or is ok to complete.
|
|
|
|
|
|
But i am using C# as code behind language to implement operations.
|
|
|
|
|
In that case, please edit your question, and explain exactly what you are trying to achieve.
Use the best guess
|
|
|
|
|
I have sql server which are backend part for Application.Now we are moving into ESXserver with all instances and databases in phase wise .So first i need to Pre-requisites and Post-Migration checks should show whether the Phase or database migration is ready to start or is ok to complete.And second i need to display data in in a variety of ways like by Phase, by ESXHost, by Application.Basically i will be using drop down menus to select the option like Phase,ESXhost or Application. I need to know how to display data from ESXHost.
|
|
|
|
|
Your best bet then is to ask this question on the VMWare forums
|
|
|
|
|
Try something and post any issues you run into here.
|
|
|
|
|
I would suggest reading an excellent book called CLR Via C# by Jeffrey Ritcher.
You'll get good understanding about C# features, its compiler, some IL code examples, CLR (JIT) mechanisms.
Its easy to read and understand.
It is must have for a C# developer.
Be a good professional who shares programming secrets with others.
|
|
|
|
|
|
I have posted this as a Suggestion and its related to C#.
Whats wrong in that, please explain?
I'm getting downvotes because of your comment.
Atleast tell me how can I delete this comment.
Be a good professional who shares programming secrets with others.
|
|
|
|
|
This is a technical question and answer forum, as detailed in the link to the posting guidelines that I gave you. If people start posting one line recommendations to books that they have read then it will soon be difficult to find the proper questions. If you have a book recommendation, then write a proper review and post it in the http://www.codeproject.com/KB/book-reviews/[^] section.
Use the best guess
|
|
|
|
|
Okay. Then how can I remove this Suggestion?
But programming related suggestions are allowed, right?
Be a good professional who shares programming secrets with others.
|
|
|
|