132,726 Archived Topics
Remove Filter ![]() | |
Using a dbexpress component to connect to a mysql DB. If I want to commands like Insert, Delete and UPDATE I use a query. The question is How can I let the user Write the commands into a Richedit or Memo, what ever is the best. And then load those … Software Development pascal | |
Hello guys, i m working on a program that stores details of a book collection. Following are the things that should be there: [CODE]• Write a new class ‘book’ to represent details of special book objects. A book consists of (for example) the title, number of copies, author, (“The Davinci … Software Development java java-swing | |
ok so my code will output the message its suppose to if it doesnt receive any arguments and im 100% sure the problem is the if statement with the argv[1] because i always have problems with char type for some reason. :( [code] #include <iostream> #include <string> #include <sstream> #include … Software Development c++ | |
My problem is: I want to call the method, but I don't know at compile-time which arguments I want to pass.Is there some way by which I can create the va_list during run time and pass it to the fucntion. Eg Code: total(4, 1,2,3,4) ;//Where 4 is the number of … Software Development c | |
public class OurList <E> implements OurListInterface <E> { // I. Local classes: // PURPOSE: To hold one data element in the linked list. class Node <E> { // I. Private member vars: E item; Node next; Node prev; // II. Constructor(s): Node (E newItem) { item = newItem; next = … Software Development java linked-list | |
[CODE]# include <iostream> using namespace std; void init(int *Ptr, const int &s); void display(int *Ptr, const int &s); void sort(int *aPtr, int s); void swap(int *v1Ptr, int *v2Ptr); int index_of_next_smallest(int *aPtr, int *SiPtr, int s); int main() { int size, count; int *nPtr; cout << "Enter the size: "; cin … Software Development c++ | |
[CODE]new File("config.ini");[/CODE] 1. When used via eclipse, the correct file is found in the root of the project. 2. When used via a runnable jar, it looks in C:\users\ME\config.ini How do I make it look at the file outside of the jar? New Folder: - program.jar - config.ini Software Development java | |
hi can anyone help me with this code that ive created for a login form, im having trouble with the username and password, ive highlighted the part that's giving me a problem. Error Message: The name 'inputName' does not exist in the current context : The name 'inputPass' does not … Software Development dataset microsoft-access open-source visual-studio | |
what is the counterpart of [CODE]start program.exe[/CODE] in c++? Software Development c++ | |
Hi, I wish to source a 'StopWatch' Application (Prefer source re-compilable) with Start/Stop/Clear buttons. Anyone here done something like that and would like to share the code with me? I use Delphi 6&7 Greetings, GjL | |
Hello, I am not able to compile it on windows. It compiles fine in linux but not on windows. Well actually it compiles if i change a few things but there are many linker errors. Could someonline please tell me where the problem is at. Thanks [CODE]// Project: B*-trees floorplanning … Software Development c++ | |
Hi folks - I think I'm almost there... I have files with data in this format: ID1 ID2 Dist 1 a 50 2 b 20 3 c 10 2 c 100 4 c 80 4 a 70 1 a 90 2 a 34 3 b 5 2 b 6 1 … | |
Hi. I have some beginner questions related to C# in general, as well as my first home assignment in C#. When the .exe file is opened, a window pops up and asks user a question. He has 2 answer options (2 buttons). The task is - make it impossible for … Software Development legal visual-studio | |
Hi , I am new to c# , I want to know how to develop ActiveXControls in c# ,Can you let me know some samples if you have. My Requirement is : to run an Exe which is residing on the Client machine . I.e in the web page i … Software Development | |
Hello all! Firstly, sorry, it's been a while since I've been programming and I'm relatively new to VB My question is this; I want to change the number in an object identifier to what ever number the program picks at random. Roulette, 37 spots on the wheel, random number 1-37, … Software Development visual-basic | |
ok so my original code was: [CODE] Patient patient = new Patient(); patient.setId(1); patient.setName("luke"); patient.setAddress("100 test"); patient.setTelNumber("01484710204"); patient.healthproblem.setBrainProblemName("Brain Cancer"); patient.healthproblem.setDateDiagnosed("30-03-1990"); patient.healthproblem.setPatientHealth("Poor"); Patient patient1 = new Patient(); patient1.setId(2); patient1.setName("john"); patient1.setAddress("100 test"); patient1.setTelNumber("01484710204"); patient1.healthproblem.setLungProblemName("Lung Cancer"); patient1.healthproblem.setDateDiagnosed("12-02-1991"); patient1.healthproblem.setPatientHealth("Poor"); patient1.healthproblem.setLungProblemSide("Left"); if ("luke".equalsIgnoreCase(patient.getName())) { out.writeObject(patient); } else if ("john".equalsIgnoreCase(patient.getName())) { out.writeObject(patient1); }[/CODE] so when the … Software Development java | |
Hi, I made a game and i would like to have a client server, ive been able to use TcpListener with internal ip such 127.0.0.1 or 192.168.1.100. But when it comes to make it work through internet (external ip) it does not work. Anybody would know why? Thanks for your … Software Development client-server | |
The program should tell user how many vowels occured on each word in a given string. The string was "Once upon a midnight dreary, while I pondered weak and weary." The output generated by the codes below was: [COLOR="Green"]Enter string(s): Once upon a midnight dreary, while I pondered weak and … Software Development java | |
I am trying to put a terminal into my tk gui program as a widget. I figured out how to have the output of a command sent to a text widget: [CODE] root = Tkinter.Tk() tfield = Tkinter.Text(root) tfield.pack() for line in os.popen("run_command", 'r'): tfield.insert("end", line) root.mainloop() [/CODE] But how … | |
I have a python assignment that has to do with character occurrence. I have to extract all the characters (letters to be precise) in a poem and count how many of each letters there are. For an example: Bobby goes to school blahhhh blahhh blahhh To: B---6 o---5 y---1 ...etc … Software Development python | |
Hi, My problem here is that, I want to add up the total of the few different items that are entered. I have no idea how to add them up, please offer some suggestions, thanks [CODE]#include<iostream> #include <windows.h> using namespace std; float weightcount(float w); float distancecount(float d); int main(void) { … Software Development c++ | |
Hi, Wonder if anyone here can help with this: I'm trying to split each line of data from a text file into a list or tuple. The lines contain a mixture of ints, floats, and strings (with spaces). I can do it easily enough using split() twice - once by … | |
somebody help me... im using VB6.0 for my project and badly i need a littlE help,, the program should goes like this: --==>>>when yOu input a number in a textbox and click a command button label with"ADD" the number you input will automatically add to the listbox but should be … Software Development visual-basic | |
Hi, I want to find number of elements of each type in a double dimensional array For example A:{ 1 1 1 1 1 1 1 1 2 1 2 2 1 1 3 2 3 1 4 5 } So the result should be P1 =5 P2=0 p3 = … Software Development c | |
Hello, i want to understand these methods as a programmer. The only difference i know is that "get" sends the parameters via the url while "post" does not. But what actually happens in the source code? How can i implement it? I found some source code concerning the post method … Software Development first-post java xml | |
I've been coding a little program which works perfectly, but I decided to upgrade it and add a few checkboxes. Now since i've never made one before I'm having trouble and I can't seem to find anywhere that can solve my problem. [code] void TheAppDlg::OnFirstcheckbox() { if(OnFirstcheckbox !=0) { m_cCharSet.SetWindowText(_T("123")); … Software Development c++ | |
| |
need some help. just wanted to know if my code is right can some one read over these instuctions and tell me if my code is right like the directions public boolean add(double value) If the size of the array is less than its capacity, then the value is added … Software Development java | |
Hi, we started doing programing at uni and i got interested so am learning some python at home. just started on generators and thought i'd write a function to generate prime numbers, as you do: [CODE] def primes(p=2): while True: for n in range(2,p): if p % n == 0: … Software Development python | |
The code below will throw a RuntimeException which will be caught by the first catch block that handles the RuntimeException. Then why is it that the second catch block is attempting to handle the RuntimeException. Is it because a RuntimeException and an ArithmeticException are both unchecked exception?. [CODE] public class … Software Development java | |
[CODE]#include <iostream> using namespace std; class sMatrix { public: sMatrix(int,int); sMatrix (sMatrix&); int getR(); int getC(); bool rValid(double); bool cValid(double); void setEl(double,double,double); double getEl(int i,int j); int getVal(); void print(); void add(sMatrix&); private: int nr, nc; //number of row and cols int nent; //number of entries int nmax; //the max … | |
Hi I am using Rougewave library for one of my program. I am using the RWHashTable from it. during the startup of my program, I will load this hashtable with information read from database. so, I have the hashtable filled with data. and during runtime, I need to print all … Software Development c++ | |
Hi, This is the code segment: [CODE]template<class type> void merge_sort(type inputs[], int p, int r, int (*comp)(type, type)); typedef struct { vertex vertices[MAX_VERTEX]; int number_vertices; int adj_matrix[MAX_VERTEX][MAX_VERTEX]; } graph; int compare_vertex(vertex v1, vertex v2) { if (v1.f < v2.f) { return -1; } else if (v1.f > v2.f) { return … Software Development c++ | |
Instructions: You are required to design and write an application that will analyze an input file (InputFile.txt); the file contains a date on each line. Your algorithm should output all the missing dates, excluding Saturdays and Sundays. You should not cater for public holidays. Also keep in mind: each leap … Software Development algorithm | |
MSG msg ; HWND hwnd; WNDCLASS wc; to me this syntax looks like msg hwnd and wc(all lower case) are variables is this right? and with the exception of wc would changing the other 2 change anything? Software Development c++ | |
Can someone help me with the code to display the second largest value in a set of numbers using '[B][U]while loop[/U][/B]'??? I have done programs using [B][U]while loop[/U][/B] to display the largest value, as well as the largest and smallest value.But this seems a bit tough for me. Software Development c++ | |
Hello , Please help me, i am facing problem to divide the xml in two parts. The xml is <aa> <x>1</x> <x>2</x> <x>3</x> <x>4</x> <x>5</x> <x>6</x> <x>7</x> <x>8</x> <x>9</x> <x>10</x> </aa> the x element contain some attriubte and child elements. and i want to divide the xml into two parts … Software Development xml | |
Hey Guys I've got a Python function that is slowing the efficiency of my program down and was wondering if anyone could give me some pointers on how I could make this function more efficient ? The function is used for converting a integer to a base 16 number. [CODE]def … Software Development python | |
Hi All, I am newbie to the C# programming and we have to design a situation with the following use case. We would like to control the text boxes visibility using a checkbox. When ever we check the checkbox the textbox should not be visible and when we uncheck the … Software Development | |
I have the following code: my add function and M.add(N) statement keeps turning up errors I'm not sure how to fix it. I also need a getVal function but I'm not sure what to do with it. [CODE]#include <iostream> using namespace std; class sMatrix { public: sMatrix(int,int); int getR(); int … | |
how do i write a java code preferably using the 'while-do', 'if-else', 'for' statements to get these outcomes? n is the input and the system prints triangles of height n? n=2 . * *** n=5 ........* ......*** ....***** ..******* ********* ignore the dots, they are to align them properly thanks … Software Development java | |
Here's what I'm trying to do: I want my program to spawn a Msgbox on the first day of every month with some information for the user. Please walk me throught it EXACTLY, as I'm a beginner :icon_mrgreen: Software Development c++ | |
I type 2009 in mask edit box and select August from a combo box. then I press report button for report. then show this msg: "run time error 713 Application - defined or object defined error" another thing when I run the exe of this project in another pc then … Software Development visual-basic | |
[b]Split from - [url]http://www.daniweb.com/forums/thread37592.html[/url] [/b] Hi, I want to do following two steps. I am already done with first step. But I can't do the second step. Could anyone give me any idea how to do it? Step 1: After serialization, I load XML file's data in a datagrid in … | |
e.g. [CODE] class B { public: virtual ~B() {printf("Base class Destructor");} }; class D { public: ~D() {printf("Derived class Destructor");} }; [/CODE] Is it somehow possible to altogether avoid printing 'Base class Destructor' when an object of class D is destructed (of course without causing a memory leak).. If you … Software Development c++ | |
whats the best way to make gui programs write all code your self or use the gui creator from netbeans? dont you get crappy code from the creator ? Software Development gui java java-netbeans java-swing | |
[CODE] Private Sub Form_Load() With db .Provider = "Microsoft.Jet.OLEDB.4.0" .Mode = adModeReadWrite .Open (App.Path & "\DBAddress.mdb") End With End Sub[/CODE] Guys that's my code and I think that code contains no error. What's happening is that when I'm starting to execute the code. It shows a Run Time Error: Could … Software Development visual-basic | |
Now, I am sure there are more than 3 problems with this thing, and it's been sort of butchered into pieces with me attempting to solve this issue. Regardless, outside of the three problems I'd appreciate any input. My book tasks me with creating a program for a zoo that … Software Development c++ | |
Hello everyone, im writing this post because im in need of some help or guidelines. My programs function is to be able to store cars, with this i mean being able to: add, delete and view the list of cars added. Everything is supposed to be stored in a txt … Software Development java | |
Hello, can someone please help me with my code. I'm working on a program to calculate the monthly cost for excess minutes from two different cell phone companies. I still have a lot more to add to my code, but I am stuck on this particular part. I am reading … Software Development c |
The End.