132,726 Archived Topics
Remove Filter ![]() | |
Hey everyone, I am looking for some guidance in regards to the track of my programming related education. I am about to finish my first intro to programming c++ class and love it. I want to continue studying programming but feel a little lost as to what is the best … | |
The Demetris Leadership Center publishes the books, DVDs, and CDs listed in the following table: Title: Description Product Number Unit Unit Sold Brave New World Book 110 25.50 925 Lady Gaga CD 111 16.00 275 The Forgotten DVD 112 24.50 289 Twilight DVD 113 45.50 135 The Giving Tree Book … Software Development c++ | |
So for my latest assignment, I have been asked to convert our LinkedList and ListNode classes to template classes. I understand the general idea of templates, but all of the examples deal with more concrete examples. I'm having trouble extending it to my multi-file project with intermingled data types and … Software Development c++ | |
hi am stuck im trying to figure out how i can find the majority of numbers say in a list with the time complexity of O(n) say i have a given list of n elements finding all elements on the list that occur more then n/4 time. how would i … Software Development java | |
Hi guys, I have a normal .exe file written in visual basic 6. It's just many forms linked through a database. I want to put it online, so the users can use it online and my application only need to be installed in one central computer. How can I put … Software Development visual-basic | |
Hi guys! I'm currently building an online inventory system using mysql and vb6. I'm quite confuse on what method to use to finish this. The application will have a server that records on items and then gives it to its branches for sales. I would like it to record all … Software Development client-server visual-basic | |
I have to write a program that calculates the avg, min, and max. The program runs fine, but when a user decides he doesn't want to enter any scores (enter: -1) in the beginning it still tries to calculate the avg,min and max. I need the program to end w/o … Software Development c++ | |
When I am trying to connect to a MS Access database to display a data report, I am getting a dialog-box pop-up showing the different parameters for the connection string. Clicking on either the 'OK' or 'Cancel' buttons gives a "Couldn't find Installable ISAM" error. The database is not password … Software Development microsoft-access open-source visual-basic | |
I built this entire program and it does what I want it to except I want to use a bubble sort algorithm instead of the [CODE]std::sort()[/CODE] function I have right now. So please help me out on this. I don't really understand how bubble sorts work even after reading up … | |
Hi, I am going to start learning WPF. I have some experience building Windows Forms based application with SQL Server 2005 (Disconnected mode, datasets, adapters, e.t.c). What benefits will WPF give me, the developer, and the users of the app? If somebody who has worked with both (Forms 2.0, WPF … Software Development | |
Hi, I am trying by best to code this program which takes user input of ten different numbers and displays it's square and cube, from the below code I can display the square of input numbers but in cube i am having problem please help me solving this. [code] #include … Software Development c++ | |
I recently wrote a thread about help with classes. I got a lot of good responses but I am still struggling with more complicated stuff. I have an old project that I wrote a few weeks into learning python. I am now suppose to turn this project into a class. … Software Development data-science pay-per-click pdf python | |
ok guys what im trying here is to fill array with a big integer number(which is string) by using class-objects first i made two references n1\n2 to the objects entry and arr -constructor to assign entry to null i used a property ( as wanted in the question ) to … Software Development | |
I have this code now for inserting new ID into database: [U]IDs are all primary key.[/U] [CODE] MaxID = 0; string GetMaxID = "SELECT MAX(IDPerson) AS IDPerson FROM Persons"; SqlCommand cmd = new SqlCommand(GetMaxID, sqlConn); sqlConn.Open(); SqlDataReader reader = cmd.ExecuteReader(); if (reader.Read()) { MaxID = reader.GetInt32(0); } MaxID++; reader.Close(); sqlConn.Close();[/CODE] … Software Development | |
[COLOR="Red"][B]Hi everyone[/B][/COLOR] I had a problem with the datareports I am using MS access as database and VB 6 In the section 1 i had place text box and i want in text box the values value 1 - value 2. The code is given below Please help me Thanks … Software Development visual-basic | |
Hi, Can anyone fix this code that i have made here. the objective to the program is -to make an array for an unknown number of integers. -Quit value is -1. -Keep track of how many numbers in array -If array is full output full message (full is 25 numbers … Software Development c++ | |
So, what I'm trying to do is to check if a letter already exists within an array, so I use a for loop and it works very well. So if the character exists within the array, it will not add the letter you put in the input box into the … Software Development | |
hi, to read from a notepad i hv used the following code. bt the problem is, it will not read the next line. so how to read line by line..... [code] using (StreamReader sr = new StreamReader("c: \\key.txt")) { string s = sr.ReadLine(); //etc. Console.WriteLine(s);//its showing the output string[] variables … Software Development | |
Hi there, I'm trying to code a simple program whereby an object (in this case a boat) can move freely around the screen via the use of the arrow keys. Now the left and right arrows should change the angle the boat faces, while the up arrow makes the boat … Software Development java | |
I want to found more of area for (circle, square ..etc ) I'm using ( switch method). I read ( radius ,length ,width ,base and height ). but when I enter Area of square . it want enter ( radius ,length ,width ,base and height ) I mean all thing … Software Development java | |
Well, I've written a simple program that gives you info about your computer. The program runs perfectly fine, but the console window pops up and really does nothing. So I would like to hide the console window and only show the gui frame. Pointers on how to do this? | |
Hello, who can tell me how to format a string in Delphi? I must format 09-120-123456 into: 091200123456 it is, remove the dashes and insert additional 0 in the middle to make a 13 character long string. I searched Internet, but I can't find anything understandable... like: [Format(<qReportIzpis."acDoc">,the result???)] this … | |
This is a sample code I looked up. I am a rookie and I do not really understand it. [CODE]n = int(input('Enter an interger >= 0:')) fact = 1 for i in range(2,n+1): fact = fact*i print(str(n)+' factorial is '+ str(fact)) [/CODE] My biggest problems are: 1) for i in … Software Development python | |
Hi people, Can anyone helps me out. I need use C++ to do this: [U]"Use polymorphism to build an object which can be stored in a datastructure such as an stl::map but uses polymorphism to perform different actions depending upon the type. You may find an stl::map is also useful … Software Development c++ | |
Hi, I am trying to develop an application that has got a Jbutton and allows to search a file and then loads selected line of that file in the JTable. I am able to do that when I hard code it inside the code but when I try to let … Software Development file-system java java-swing | |
Hi all. I am very new at python and so i am having trouble with the simplest things, and i dont understand why this: newfile = raw_input('what do you want to name your new file?') text_file = open (newfile, "w") isn't working. Can somebody explain it? Thankyou Software Development python | |
[CODE]import Tkinter class converter(Tkinter.Tk): def __init__(self,parent): Tkinter.Tk.__init__(self,parent) self.parent = parent self.initialize() def initialize(self): self.grid() self.labelVariable = Tkinter.IntVar() welcome = Tkinter.Label(self, textvariable=self.labelVariable, anchor="w", fg="black", bg="lightgrey") welcome.grid(column=0, row=0, columnspan=3, sticky='EW') self.labelVariable.set(u"Hello there. Welcome to MAKK's currency converter.") self.entryVariable = Tkinter.StringVar() self.entry = Tkinter.Entry(self,textvariable=self.entryVariable) self.entry.grid(column=0, row=1, sticky='EW') self.entry.bind("<Return>", self.OnPressEnter) self.entryVariable.set(u"Enter currency here.") money … | |
[CODE]public class Getnumbers { private int num1; private int num2; public int getNum1() { return num1; } public void setNum1(int num1) { this.num1 = num1; } public int getNum2() { return num2; } public void setNum2(int num2) { this.num2 = num2; } } [/CODE] [CODE]import java.util.Scanner; public class Case { … Software Development java | |
hi I am working on HQL queries and writing an application in Java it is just in development phase so I am using a dummy database. But I am having troubles with displaying result using HQL queries. /** * Displays a report listing all companies that have no departments. */ … | |
I need to iterate through a TreeMap. I won't be able to use another collection instead of a TreeMap, I am merely changing some code in someone else's program. Is it at all possible to do this? I'm thinking: [CODE]while (Treemap.hasNext())[/CODE] or something similar. Is this possible in Java? Software Development java | |
hello, i'm new to this website and well only have a few months of python exp. i decided to make a small, simple rather easy if HUMOR game. When is started, i did not know a whole lot other than how to make lists and scenes and make a way … Software Development python | |
please, i am havin problems developing a setup file using ms interdev98. Need help urgently. Thanks. Software Development microsoft visual-basic | |
i have made a programe of queue in c++ code is : [code] #include<iostream.h> #include<conio.h> #include<stdio.h> #include<stdlib.h> #include<process.h> #define maxsize 5 struct que { int items[maxsize]; int rear , front; }; void insert(struct que *,int); int remove(struct que *) ; int empty (struct que *); void makenull(struct que *); void … | |
I'm trying to run my program but i can't find out why its giving me a segmentation fault. Please Help. [CODE]#include <cmath> #include <cstdlib> #include <ctime> #include <string.h> #include <fstream> #include <sstream> #include <stdexcept> #include <stdio.h> #include <ctype.h> #include <vector> #include <cctype> #include <algorithm> #include <iterator> #include <iomanip> #include <cstdlib> … Software Development algorithm c++ ios user-interface | |
How could I call function by clicking in the graphics window. I currently have a draw eyes function but i want to be able to call it by clicking on the graphics window and call 30 eyes in the same colour sequence of blue, green and brown? so i could … Software Development python | |
Hi y´all. I´m more than a little green at this and have been trying to get an understandig of Python. I came across WXPython and decided to try the first program in the tutorial by Fuze I´ve downloaded and installed python 2.6.3 and Wxpython 2.8.10.1. I´ve also got Python 3.1 … | |
Im making a chat application where one client will send a message to ALL other clients who are currently online through server. The problem is that I'm unable to make such a loop which can infinitely send n receive messages using server. Secondly can't we just use PrintWriter and BufferedReader, … Software Development client-server java | |
These three things are holding me back. 1. The new style class object parameter - [CODE]class MyClass(object)[/CODE] [INDENT]Note that I'M also also not familir with the old style[/INDENT] 2. The [CODE]_init_([/CODE] - constructor, or any constructs for that matter. 3. The [CODE](self)[/CODE] parameter. How is it different from the normal … Software Development python | |
hi: [code] Module Module1 Public objconcetion As New OleDb.OleDbConnection Public objcommand As New OleDb.OleDbCommand Public Function open_database() As OleDb.OleDbConnection Try Dim route As String Dim cnn As New OleDb.OleDbConnection route = Application.StartupPath & "\" & "video.accdb" If cnn.State = 1 Then cnn.Close() cnn.ConnectionString = "provider=microsoft.ace.oledb.12.0;data source =" & route & … Software Development microsoft-access open-source vb.net | |
Hey, I got a problem with my multi-threaded application. I have one thread that waits for an event to be signaled, when it happens it calls PostMessage and passes a handle of the main window created by the GUI thread with a custom message I handle in my window message … | |
hi daniweb guys i need to develop a web-based application in vb6. what is the best way to go? And if you don't mind how can i randomly generate passwords in vb6 i.e. like the way they do it in e-mail registration? thanks guys! Software Development visual-basic | |
Hi everybody, I'm trying to write a function that takes in 2 values, a min and a max, that prompts the user to enter a value within that range, and uses 0 as a sentinel to quit the loop. My issue is, I also want the loop to continue prompting … Software Development python | |
Hi all, i am making a c# window application,in which i am entering marks of students of individual subjects in database. Now, how can i pick these values from database dynamically and draw the pie chart and bar graph of these marks. I want that as i click on button, … Software Development | |
I am trying to complete an assignment for an introductory java class and need some help in getting past a "Exception in thread "main" java.lang.NullPointerException at Week5Assignment.PartyStock.main(PartyStock.java:70)" error. I'm sure I've forgotten to initialize something but can't seem to find what it is. Any help that you can provide would … Software Development java | |
I am trying to read from a text file which of size 1 MB, and contains 5000 lines of data. Following is the code of class which I am using to read from the file [CODE] public class PlayFile extends Timer implements ActionListener{ File filename; BufferedReader out; //float frameid,prev_frameid; public … Software Development file-system java java-swing | |
Hi all , I need the Textbox to display data from the Datagrid according to the columns data i wanted . Like Textbox1.Text = Datagrid Columns (1) I need Codes Thanks. Software Development visual-basic | |
Hi, im trying to calculATE DFT through this code, i dnt know what's wrong please enlighten. Thanks [CODE]#include<conio.h> #include <math.h> #include <complex.h> main() { int m,n,r,N,j; float l,o; float complex x[1000]; float real, imag; { for (m=1;m<=10;m++) { for (n=1;n<=10;n++) { for (j=1; j<=10;j++) N=1000; r=1/N; l=sin(3*j); printf("the value of … | |
I have some code i've written and i need to splita string and assign the results to 2 variables type and value The first part of the string up to the : would the type and what is after the : would be the value When i output the variables … Software Development c++ | |
I have a com component that logs error details. I wan't to delete the log files that were created one month back. Where this code has to be written ? I mean it should be run only once when the COM compponent is loaded for the first time. | |
hello guys, I get this error MSG and I can't understand what is the problem with my code. my program consist a menu with 5 options: 1. The program remove double digit from a given number. 2. The program rotate the first number to the right according to the second … Software Development c |
The End.