[Solved] Excel data file for menu program [closed]

The question as it stands is quite vague, but here goes. Your assembler/C code needs the data in a given format, to be able to assemble/compile. You suggest using Excel to maintain the menus… your assembler/compiler will not understand xls or csv (or most likely xml) so a direct export is not an option. However, … Read more

[Solved] A program which is difficult

Essentially, your question is this: given a graph with nodes represented as indices and edges as index pairs, and given an index i that represents a node, find all nodes which are connected to the given node. UnionFind algorithm to find connected components over nodes with indices: Initialize an array father of size number of … Read more

[Solved] Error “Value can’t be null”, UIAutomationElement

It seems that the following line is language sensitive: Condition condNewTab = new PropertyCondition(AutomationElement.NameProperty, “New Tab”); That is to say that “New Tab” rather than being an internal field is a localised string. This means that this line must be updated to have the correctly localised version of this text. It is quite possible that … Read more

[Solved] Move Files That Do Not Exist

For sure you don’t want to create text files listing file names, and then compare them. That will be inefficient and clunky. The way to do this is to walk through the source directories looking for all the files. As you go, you’ll be creating a matching destination path for each file. Just before you … Read more

[Solved] CodeBlocks C++ program not running

It looks like you have something wrong in your compiler settings. Maybe look at this question: CodeBlocks : [highlight: No such directory found All I did was go to “Compiler Settings” (“Settings” -> “Compiler” -> Global compiler settings), and selected “Reset Defaults”. Does that work for you? 1 solved CodeBlocks C++ program not running

[Solved] not all code paths return a value. In C#

Your problem is that you don’t return any value at the end of your method. You can re write your method like this. It is more understandable and should fill your reqirments. public bool CanJoyride(int age, int cm, bool hasHeartCondition) { if (hasHeartCondition) return false; if(age >= 18 && cm >= 130 && cm <= … Read more

[Solved] Sql Query Between Different Databases like Oracle and SQL Server in C# [closed]

You will need to install the Oracle Client first. Google “Oracle Database Client windows” to find the download from Oracle’s site. 1) Install the 64-bit package first. (VERY important as there is a bug that messes things up if you install the x86 package first) 2) Change the install path to “C:\oracle\x64” 3) Once installed … Read more

[Solved] Whats wrong with the following code [closed]

If you’re going to use C strings, you need to add a null terminator at the end of each string do { b[I][k]=a[j]; k++; } while(j+k<strlen(a) && a[j+k]!=’ ‘); b[I][k] = ‘\0’; As ppeterka noted, you also need to change your loop exit condition to avoid an infinite loop. Note also that the repeated calls … Read more

[Solved] ASP.NET TextBox with Suggestions

You didn’t specify if this is in a web page (ASP.NET using c#) or a Windows form. For ASP.NET I like the Ajax Control Toolkit, and it has an AutoComplete control that you could use to do this. http://www.asp.net/ajax/ajaxcontroltoolkit/samples/autocomplete/autocomplete.aspx If you want it for a Windows Forms app, see here: http://csharpdotnetfreak.blogspot.com/2009/01/winforms-autocomplete-textbox-using-c.html 1 solved ASP.NET TextBox … Read more