Write A Code About Counting Inversion Algorithm
Jun 17, 2009
I am trying to write a code about counting inversion algorithm.I finished the code but the result was wrong..I dont no where is the problem but I think it is in the count-merg function [code]
View 2 Replies
ADVERTISEMENT
Apr 21, 2010
I have a class exercise that I need to do by next week. The problem is that I don't know how to write it.What I have to do is write pseudocode/algorithm for a scenario.I understand that I need to use a 5 step process for it but I don't know how to turn it into pseudocode.This is the scenario (there are 3 from memory that I need to do this is just one)"you want to estimate the number of hours it will take you to complete all of the levels in a new video game based on your past perfomance with other games."
I know I need to break it down into inputs, outputs and processes? I think that's right, but I'm struggling with writing it and getting it started.I don't need to use any actual code for the exercise. I just have to do the pseudocode and a flow chart for each scenario.
View 6 Replies
May 8, 2012
i am working on project of using ant colony optimization and espcially on antnet algorithm but i have many problems in programming of this algorithm, and since i dont perfer using simulation for that purpose.
View 4 Replies
Oct 26, 2009
I am making a notepad and I need a code for counting Words I am writing?
View 5 Replies
Jul 17, 2011
I want to write a simple beam search algorithm to solve a maze (like a tree, and the output must be the shortest path).So, if anyone have tried to write a beam search algorithm before, preferably in VB.NET language, it would be great if you can share it in a pseudo-code format.
Because, I have no idea on how to write the algorithm. I have tried to Google it, but I understand nothing.I found this source though (which I don't understand at all XD) [URL]..So, back to my question, how to write a beam search algorithm? Preferably, in VB.NET language and pseudo-code will be enough for me (an actual example code will be great though
View 1 Replies
Jun 6, 2011
WHERE IS MY Problem. Develop a COMPLETE algorithm using pseudo code to solve the following problem: Your network contains hundreds of workstations. The primary local drive (C on each of those workstations may contain many folders immediately under the root folder. You need to search each of the folders under the root folder on each of the workstations to see if the file nasty.bug exists. You need to do two things with respect to this file. First, count the number of times this file is actually found and, after all the workstations have been scanned, display a message indicating the total number of occurrences of this file across your network. Second, whenever the file is found, it should be deleted.
View 1 Replies
Dec 8, 2010
For a school project we need to visualise a computer network graph. The number of computers with specific properties are read from an XML file, and then a graph should be created. Ad random computers are added and removed.Is there any open source project or algorithm that could help us visualising this in VB.net? Or would you suggest us to switch to java.
Update: We eventually switched java and used the Jung libraries because this was easier for us to understand and implement.
View 1 Replies
Dec 15, 2011
I have a standard scoring algorithm but I need to help on a piece of code to only execute the scoring algorithm at certain times.I want it to be triggered by dates, but the problem arises if the program is used after 2 (or more) dates have passed, the first date will not be added as the second date is the newest and therefore the one that triggers the scoring algorithm. - The scoring algorithm gets the scores for that week, which are stored in a text file.
View 5 Replies
Jun 25, 2012
I want to find a way to speed up this code.if you look at the condition of If calculated Then in the code below, this is what slowing down the code.While the code provided seem fast with Const initBit = 4 try it with something over 12.
I want to be able to use this code (with calculated param as True) with initBit of 20 or more.
Beware that 20 or more might require a gig or more of ram and/or compiled as x64.
C# code (converted with an online tool from VB.NET):
[Code]...
View 2 Replies
May 23, 2012
i have a notification j-query plugin .. i taste it in my page (working 100%)but when i want to use it in a event SqlDataSource1_Deleted with the response.write method it does not work
Protected Sub SqlDataSource1_Deleted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceStatusEventArgs) Handles SqlDataSource1.Deleted
Response.Write("<script type='text/javascript'> showNotification({message: 'This is a
[code].....
View 1 Replies
Jun 8, 2009
I am trying to implement an Algorithm called "Diamond-Square Algorithm" I am having trouble ending it so that it retiurns the required result. So far I have the folloiwng.
[Code]...
View 3 Replies
Feb 20, 2011
what is wrong with my code and I get no feedback from my button click event, i have imported. ( code Below) and i have tied differrent combinations of the code without sucess.maybe add extra to my code for the list to show open Port or closed ports.
Imports System.Management
Imports System.Management.ManagementObjectSearcher
Imports System.Management.ManagementNamedValueCollection[code].....
View 9 Replies
Jan 24, 2011
i am asking that can i use c# language to implement "actions" fired on "click side events" such as mouse over the reason for this stupid question is that i remember some syntax of registering functions for particular events of formview, which are call when the event occurs (yes there ispostback involved" is something like the above possible for client side events using c# or even vb.net
protected void Page_Load(object sender, EventArgs e)
{
Label3.Text = "this is label three";
[code]....
View 3 Replies
Oct 27, 2009
I'm trying to write code to generate a random code for a textbox. It has to contain both numbers and alphabets. This is what I have so far
Function HomeIDCode(ByRef random As Random) As Random
Dim strValue As String
Dim strAlpha As String
[code]....
View 2 Replies
Apr 18, 2012
trying to write some VBA code to assemble different SQL code according to user settings on an Access form. The code below is not the actual code but shows the problem I have been having very simply.
Dim SQLsearch1 As String
Dim SQLsearch2 As String
Dim A As Integer
[code].....
View 4 Replies
Oct 2, 2009
I know I can create XML ouput in Example 1 as follows using the following code in Example 2. How do I create the same output in Example 3?[code...]
View 9 Replies
Oct 6, 2010
i have 4 pieces of code i need for one bit to run then when webbrowser1 document completed like wepage load i want to run anotehr peice of code. then when the webbrowser loads again run more cun then when the browser loads again run some more code how can i do this is there like a wait untill function?
View 1 Replies
Sep 11, 2009
For example i got a class and its got its own properties and i am passing the name of the class and the name of the property to be called to a function Say for example exp is the variable which i am passing which contains a value = "ClassA,Property1"
Function Property2BCalled(byval exp as String)
dim classname = split(exp,",")(0)
dim propertyname=split(exp,",")(1)
dim value= classname.propertyname
End Function
I wanna do something like that,given above.
View 1 Replies
Aug 6, 2010
Say you have a button that clears your form when you click on it.Well i was taught to type lblName.String.Empty etc etc. for each and every object on the form.There's got to be an easier way to write code to do that same thing if say you had 30 items to clear right?
View 6 Replies
Aug 9, 2009
I have been looking forever and haven't even gotten a single clue on how to do this, but I made a program that sends a file that has some video game info to my e-mail. I want some other people to be able to use this, but I don't want to have to build another .exe for each person, so I was wondering if there was some way that I could make like 2 textboxes and a button where they enter their e-mail and password, then when they click the button it makes an .exe ( I would put textbox1 and textbox2 as the e-mail credentials I am assuming. )
View 24 Replies
Oct 14, 2010
Using VB.net, C# and SQL ServerI want to write a pseudo for my application.pseudo code is like coding or flow chart...?Can any one provide a sample pseudo code for any type of application.
View 4 Replies
Dec 23, 2011
I have already my code for generating primes in visual basic. net. Now I need to include inside my prime loop a TWIN PRIME loop which generates adjacent pairs of odd prime numbers.
An example would be [17,19] , [29,31].. ect. I am not sure how to write the code or where to insert it? I know that I have to have a 2 valued state variable SW.[code...]
View 3 Replies
Aug 7, 2011
Some time ago, I did some F# programming, the following code is used to serialize/deserialize float32 array:#light
However, nowadays, I have to do some programming in VB.NET to serialize/deserialize float32 array again. As F# programming is not suitable for GUI, but GUI is necessary for my current programming.I want to know how I can rewrite the above code in VB.NET.For example, I have a float32 array, (I dont know what data type in VB.NET is equivalent to float32 array in F#) of (1.0, 2.0, 3.0); I want to serialize it using DataContractSerializer, then read it back so I can still get the same float32 array.
View 1 Replies
Feb 20, 2011
I have Visual Basic 2010 and also bought a book to study and practice problems. I know how to add controls and assign properties but get confused with the coding part.understand this somewhat?
Here is one problem I am working on-
Write a program to make change for an amount of money from 0-99 cents input by the user. the output of the program should show the number of coins from each denomination used to make change.
Now I know what controls i need on the windows form but I am sorta lost on the coding to make this program work.
View 3 Replies
Jun 13, 2011
I am trying something new and that is VB2008. I have two numbers 12 and 15. I have made my form but now I need to make the code. I need to make a code that takes two numbers 12 and 15 and gets the max number out of those two numbers, which is 15.
View 2 Replies
May 11, 2009
I'm trying to make a vb.net application that has got 2 textboxes, 7 radio buttons and 2 buttons(one named compile and the other 'run'). How can I load the content of a C/C++(or any programming language) file into the 1st textbox and on clicking the compile button, i should be able to show the errors or the C/C++ program in the 2nd textbox. On clicking Run, I should be able to show the output in the 2nd textbox. In short, I want to use the 2nd textbox as a terminal/console. The radio buttons are 4 selecting the language C or C++ or python or C# or java or perl or vb.Are the compilers of all these languages present in .net? If so how can I call them?
View 2 Replies
May 11, 2010
how to write the code for opening afile
View 3 Replies
Sep 12, 2011
A job recruiter asked me if I could take over writing code for a device that uses Windows CE. He didn't know much about it except that he thought the previous programmer was using Visual Basic, and he thought it might be Visual Basic.NET, along with SQL Server. I'd like to take over this programming job if I am qualified, but I don't know if I am. I have developed code using VB.NET, C#.NET, SQL Server for standard Windows. I used .NET to build programs that run on Windows desktop, and also the WPF platform. I also built ASP.NET and Silverlight programs for the web. In addition I have written programs that interface with machinery using serial and TCP coimmunications.
Would I be able to get up-to-speed on taking over the coding of a program that targets Windows CE? Does Windows CE allow .NET managed code or just C++ and VB6? Would it be advisable to try to get this job or would taking it lead to problems and disappointment?
View 5 Replies
Sep 5, 2009
at the end of my public sub form1_load I have a line that calls another sub:Call DateRefresh()and this is what is in my DateRefresh sub [code] Basically all this is doing is tell me the days between february 9, 2009 and the current date and it displays it in a label named lblMessage Everything works fine but I need it to stay updated automatically. So after midnight it needs to update. It doesn't have to be right on the second. I was thinking I could set it up to update every minute or 5 minutes or something. The problem is I can't get it to update automatically.Maybe there is a better way to write the code as well so it will update.Im open to ideas/thoughts on this.In the future I would like to be able to, for example, have a user press Ctrl+D and it brings up a form to enter in the date (which is currently hard set at 2/9/2009) and it would update to an xml file or something/anything.
View 6 Replies
Jun 29, 2011
I need to write a code that brings up a message box if the user enters more than 16...I did a project on a conference....where you enter the number of people to attend the conference is a label...every time i try to do it, something is wrong..
View 6 Replies