132,726 Archived Topics
Remove Filter ![]() | |
Hi I am trying to put quicksort in my class like other methods and call it using the main method, I did it for Selection, Insertion, Bubble Sort and I need one more which is quicksort. I already made the calling code for quicksort but I don't know how to … Software Development java oop programming-construct | |
I wasn't sure which section to post this under but I am working on an assignment in SQL and have created a batch file to make the tables, load the data into the tables, and then sends several queries to sql to get results. Is there a way I can … Software Development sql | |
I am VERY novice and working on a school project in C++. I'm not sure where I've gone wrong here in this code. Any advice on why this is not working would be appreciated. Please, pretend like you are talking to someone who knows very little about programming so far. … Software Development c++ | |
I have an application in which is compiled on my win32 development machine, but I need this application to be windows 7, 64 bit compatible. How can I do this on my 32bit development machine? Software Development c++ | |
any time a number is present in a word inflate its value by 1........ for eg, input anyone up four tennis output anytwo up five elevennis [CODE]import java.io.*; public class inflationary { public void main()throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String num[]=new String[14]; num[0]="zero"; num[1]="one"; num[2]="two"; num[3]="three"; num[4]="four"; num[5]="five"; … Software Development java | |
Hi, I am new to C# and Forms/GUIs. Basically I am trying to pass a value in a textBox to my programs program.cs file where I can apply my programs logic, but I'm stuck with how to do this. To get started all I am making is a form which … Software Development c c# c++ gui visual-studio | |
Hey im having trouble making the tester part of a program. In the first part I made a class named student: [CODE]public class Student { private String name; private int idnumber; private double gpa; private int credithours; public Student(String studentname, int idNumber, double gradepa, int chours) { name = studentname; … Software Development java | |
Hello all, here is the code I came up with for implementing a circular linked list. I get a segmentation fault when I create the list with just one node. With size > 1 circular list works fine! Im not sure but I think it may have something to do … Software Development c++ linked-list | |
I am having a lot of trouble getting the following to work and I think it is because of file issues: [CODE]int GetMinutes() { fstream file(FNAME); char num[101]; if (!file.is_open()) Error("FILE NOT OPEN!"); file.getline(num,100); file.close(); return atoi(num); } int main(int argc, char *argv[]) { LARGE_INTEGER timestart, timestop, tickspersecond; QueryPerformanceFrequency(&tickspersecond); QueryPerformanceCounter(×tart); … Software Development c++ file-system | |
I have a program that must copy a file to 3 locations, the local hard disk, a USB drive, and a network location. I have the file (about 70mb) loaded into a byte array. My quesion is, since I'm not actively modifying the byte array, can I impliment a form … Software Development multithreading vb.net ![]() | |
I am trying to construct a function called maxSquare. In which it takes a list of integers X and returns Xi with the maximum square value, without using loops. [U]Sample Input/Output[/U] >>> maxSquare([5, ‐7, 3]) -7 If you coul help me with this, I would appreciate it. Thanks in advance. Software Development python | |
236.cpp(41): this line contains a '{' which has not yet been matched THE CODING IS: #include<iostream> #include<string> #include<conio.h> #include<IOMANIP> #include<fstream> //#include<cctype> //for toupper function using namespace std; class TESTstudent { string name[3]; string sir_name[3]; int roll_no[3]; int count; // FOR LIBRARY string book1[3]; string book2[3]; int dues[3]; int num_book[3]; int … Software Development c++ | |
hi there, i have a question in datagridview dropdown boxes. in a datagridview i have 3 datagridview combo boxes, but i combo box i want to make a text box when the user clicks on that datagridview combobox, i did it, but now all the datagridview dropdown boxes become datagridview … | |
I have an arrayList with key which are shown below: 1 2 3 1 2 1 3 3 1 2 3 1 2 3 2 3 1 I have another sortesList with key and value which shown below: 1:4 2:4 3:4 1 2:3 1 3:3 2 3:4 1 2 3:4 … Software Development | |
hi there, i got some problems in extract the minimum value in a sortedlist, as below: [code] Dictionary<string, double> sortList = new Dictionary<string, double>(); double min; sortList.Add(1,2); sortList.Add(2,5); // min = sortList5.Min(x => x.Value); [/code] I wants to find minimum value of the sortlist.value, is there has any functions of … Software Development | |
Hi everybody! Now I'm dealing with binary file handling and I need to read 70 bits into a variable from a file. As far as I know (correct me please, if I'm wrong), C does not have any variable type that could hold such large data. (I think) I cannot … Software Development c | |
I need to add a border around the Size label and the small, medium and large buttons so I thought I would add them into their own Panel and then add that panel to the mainPanel but when I do that they do not show up. What am I doing … Software Development gui java java-swing | |
Hi. I'm having a problem to pull data from MS Access to my combobox. I know how to search one data using another data (e.g: using IC num to search name) but this time I just want to pull the data (e.g: name) that has several rows to my combobox. … Software Development microsoft-access open-source vb.net visual-studio | |
Hi all I'm stuck with this problem for a couple of weeks now, and my normal human brain can't tell me what's going wrong. I've created my own class, inheriting from QThread. Nothing weird in calling it: [CODE] MyThread *thread = new MyThread(); thread->start(); while(thread->isRunning) ; delete thread[/CODE]; I know … Software Development c++ | |
Hi friends, well... i'm asking for another help from you guys.hope you will... My friend sent me a email asking why the following code doesn't work properly.I'm also couldn't understand what's happening..When this program run it supposed to prompt two times to enter values.but its actually prompt once. I tried … | |
Hello everyone, i currently trying to write a program that will locate a hyphen in a date in the format YYYY-MM-DD this is what i have so far [ICODE]date = str(raw_input("Enter a date in YYYY-MM-DD format: ")) i = 0 while i < len(date): if date[i] != "-": i = … Software Development python | |
Giudo Van Helsing today announced that the use of a main() function in Python will now generate an error. After stating that "Python is not C" he went on to say that for backward compatibility the programmer can import a module for programs already using main(). "...and since the people … Software Development python | |
hey guys, I drew many lines for the purpose of my project but for some reason, I cannot draw this specific line[U](code line 44)[/U] and cannot figure out why. Note: I have debugged the code and this code line is red by Java but it's not applied to the graphic. … Software Development java java-swing | |
Need a little help, I'm trying to run a program that asks the user to enter an integer between 1-50. If given a number between 1 and 50 then echo number then add all integer between 1 and integer entered if user enter an integer not between 1 and 50 … Software Development c c# c++ mathematics | |
my code is working fine, but the output shows for example 12345.000 i would like to only show the data before the .000 is this posible? [CODE] Private Sub GetCurrentJanVOL() Dim con As New SqlConnection Dim cmd As New SqlCommand Try con.ConnectionString = "Data Source=" & ServerV & ";Initial Catalog=" … Software Development open-source sql vb.net ![]() | |
In java,Java compiler java source code convert to java byte code..... Than Interpreter execute codes line by line.... what is the languages java compiler & Interpreter have bailed up? :-/ Software Development java | |
I am attempting to use a different template and write in C++/CLI. The debug file isn't being created for some reason. If I misspell a keyword or enter errors I don't see any red squiggly lines. When I attempt to compile I can't because of an error. C1083: Cannot open … Software Development c++ visual-studio | |
Dear everyone, I'm trying to implement something like gmail conversational view and the way I've designed it is that I store "subject" of the mail + other parties email address (in case you send, other party is recipient, and in case of receiving, sender is the other party). What I … Software Development data-structure python | |
Hi everybody, can someone please explain what is the difference between line A(10) and line B(11).why am i being able to access value of n without using de-referencing operator in first case? [CODE]void fun(void *n) { printf("\n n=%d ", n); } int main() { char nVal = 65; fun((int*)nVal); //-----A … Software Development c++ | |
Hello Everyone, I have this small system that i developed for a company that is basically a Skill Map for the employee's, so in the following image will show the search of the employee's skills through the Family, in the following image the users does a search of the family … Software Development vb.net | |
I have a drink program with 4 staff members and want to know how to cancel the input box if they accidently click on another persons login. can you close the input box by clicking can and to close the loop. All Logins have the same code just different names … Software Development vb.net | |
i am trying to write a split function ...which will accept a array and split it down to diffrent strings on the basis of '-' symbol can u tell me where i am wrong i am getting segmentation fault ...i think it is due to the pointer array i used … Software Development c | |
Hi guys. Im very new to C#. I am trying to make use of Tamir.SharpSSH.dll to be able to allow users to perfom actions in a linux console without the needed knowledge. Ive done right click over references --> add references --and Ive browsed -->Tamir.SharpSSH.dll. This is when I stall … Software Development | |
I'm having big trouble understanding this. [CODE]namespace nspace { public class eclass { public double elevation { get; set; } } public class Program { static void Main(string[] args) { eclass first = new eclass(); first.elevation = 500; Console.WriteLine(first.elevation); Console.ReadKey(); } static void setup() { Console.WriteLine(eclass.first.elevation); // line dosent work … Software Development | |
hi, i want to develop a java swing application for searching names in the database; how can i get names which starts with a particular aplaphabet; ex.'j' ans:joseph john etc........ plz help me thanks in advance Software Development java java-swing | |
I have three form form1, form2, form3. in form one a button opens form3. and in form2 also a button for opening the same form as form3. Is it possible and how? becoz when i was simply chen this code for open form this form this was not working. there … Software Development | |
i am create one mdi application in c# dot net. mdi form contain many child forms when open one child form and again open this child form then open 2 times this child form please help me to open one child form at a time in this application Software Development | |
I am trying to draw a few items on a canvas using Canvas.TextOut mainly. My problem is that when I grab the form holding the canvas and then move the form outside of the screen and back again, all text and drawings have vanished, as if they have been erased. … | |
Hi, I guess this interesting small windows application just needs a httpwebrequest and webresponse object. We need to request a web address(which is a google search of football or cricket live - example shown in the screenshot) every 10 minutes using a timer and get the response with score or … Software Development vb.net | |
hey, I want my cannon sprite to be able to move when I move my mouse on the X axis. atm I have this: [CODE]MouseState curMouse = Mouse.GetState(); Vector2 mouseLoc = new Vector2(curMouse.X, curMouse.Y); mouseLoc = cannon.position;[/CODE] but that doesnt work. any ideas? Software Development | |
[CODE] #include <iostream> #include <sstream> using namespace std; int main() { int a, b; string s = "34:22"; istringstream ins; ins.str(s); ins >> a >> b; cout <<a <<b; } [/CODE] This is my code and I want to ignore the ":" in string s. The outpout should be 3422. … Software Development c++ | |
We all know that the sum() function in python only takes two arguements, so i created a function in python that will take any number of arguements and add them together, just like the sigma letter in greek. Awaiting your replies on this one. Software Development python | |
Hi all, I wrote a program that has many functionalities but I can not swap 2 elements of 2 nodes in the linked list.Actually I can swap 2 nodes by changing their links but I can not swap 2 elements when the user requested 2 elements swapping.Here is my code … Software Development c linked-list | |
I am currently nearing the end of the final unit in my A - Level computing course in which we are developing a system for a company. My choice of system is a KML generator which creates placemarks with details on rescues. I have developed a working KML and GUI … | |
Hi How to increase the object life time in c#.net? Cheers, Ramesh.KR Software Development | |
AStar code: [code] path.Clear( ); // Rensa listan, när GeneratePath-metoden kallas så betyder det att vi letar efter en ny väg pathNode = -1; while ( true ) { // // Console.SetCursorPosition( 0, 0 ); // Console.Write( new string( ' ', 50 ) ); // Console.SetCursorPosition( 0, 0 ); // … Software Development | |
Alright - this is my conundrum. As a noob to C++ I am only in chapter 9 of my book, having just covered object oriented programs and the exciting world of vectors and arrays. I have an assignment that asks me to run a loop to get and calculate a … Software Development c++ data-structure | |
iam facing a problem ,i want to add a form to my project from another project,when i add the form and try to run it give me error,i dont know what is the problem i have added its module and database also but still giving me [COLOR="Red"](ERROR:Run time error 3709 … Software Development visual-basic | |
Hi, i need to find the max value of ArrayList<ArrayList>. I don't know whether it is possible or not? Can anyone please give me some suggestion. Any help from you will highly be appreciated.... Thanks. Software Development java |
The End.