[Solved] C#. split identificator on the words [closed]

No need for a regexp: you just need to scan the string once and LINQ your way through the task. yourString.Select(c => string.Format(Char.IsUpper(c) ? ” {0}” : “{0}”, c)); This will hand you a IEnumerable<string> object containing all the data you need, which can become what you need like this: string[] output = string.Split(” “, … Read more

[Solved] Auto Hide/Show DIV in asp.net [closed]

I assume you have created a div that contains controls relating to the users inbox, or a custom message. Firstly, I suggest putting the controls in an asp:Panel, and not a . This is so you can hide and show the panel at any time. Force the panel to be hidden on page load. Then, … Read more

[Solved] Browse a matrix

Here the solution I found : private static IEnumerable<int> ComputeMatrix(int[,] matrix) { // check args if (matrix.Rank != 2) { throw new ArgumentException(“matrix should have a rank of 2”); } if (matrix.GetUpperBound(0) != matrix.GetUpperBound(1)) { throw new ArgumentException(“matrix should have the same size”);} // indice treated List<int> treatedIndex = new List<int>(); for (int i = … Read more

[Solved] Code usability in c++ [closed]

Yes of course it is. How to make it happen depends on what these two files are (header files or main code files). Let’s call them function_defined.___ and function_used.___. There are two cases, depending on what each is. function_defined.hpp The simplest case — In function_defined.hpp, put int funct(int argument) {return 1} and in function_used.(c/h)pp, just … Read more

[Solved] C++ object reference corruption [closed]

I have no idea why, but changing the access specifier here: protected: D3DDraw m_cDraw; DXInput m_cInput; To public solved the problem, it’s a hack but I’m okay with that 😀 Thanks anyway for attempting to help solved C++ object reference corruption [closed]

[Solved] Database login failed [closed]

You are using integrated security, which means that the user who is running your program needs to have the relevant access permissions on the database. If you are running the program interactively (e.g., it is not a service), then YOU need the access permissions, that is, the account that you used to log into Windows … Read more

[Solved] Iterate through Month name

If your DateFormat is always be going to like Jan-14 Feb-14 Mar-14 Apr-14 May-14 Jun-14 then you can try to use the ParseExact to convert it to the DateTime and then apply the SUM on it to get the result you want. var result = dataList.Where(x => DateTime.ParseExact(x.monthName, “MMM-yy”, CultureInfo.InvariantCulture) > DateTime.ParseExact(“Mar-15”, “MMM-yy”, CultureInfo.InvariantCulture)) .Sum(x … Read more

[Solved] Which references am I missing?

You seem to be confusing the ExcelPackage project and the EPPlus project. I can see how as they share namespaces and class names (I don’t know the history of either to know if they’re related or not). You have a reference to the ExcelPackage dll in your example. The ExcelWorksheet class there doesn’t have a … Read more

[Solved] I need to use multiple response.redirect in ASP.NET using C#

If I understand the problem correctly, you are trying to send three values from Page One to Page Two. In that case, you could build a Query string using the values from txtBoxBookTitle, drpDownType and DrpDownPurchase. The string should be in the follwing format: string queryString = “?bookName={txtBoxBookTitle}&bookType={drpDownType.Value}&purchaseType={DrpDownPurchase.Value}” Then you could append the above string … Read more

[Solved] What would void Start() be in pseudocode [closed]

It depends on what you mean by “pseudocode”. Most people just mean that it is generally simpler and more natural-English-looking, with relaxed syntax when compared to “real” code. Generally in that case I would use something like run_at_start and run_30_times_a_second to cover what Unity does. However if you have a specific definition of “pseudocode” that … Read more

[Solved] Why is my output in the form of 1.79214e-307 instead of a normal floating point number? [closed]

You are printing the wrong variable. notmemtot = totalnot(servcharge, testcharge, medcharge); cout << “The total bill is $” << membertot; should be notmemtot = totalnot(servcharge, testcharge, medcharge); cout << “The total bill is $” << notmemtot; But even easier (so you can’t make the mistake you made) would be not to use a variable in … Read more