132,726 Archived Topics
Remove Filter ![]() | |
I want to calculate several floating point functions that are a function of two variables, i.e. a(x,y), b(x,y) etc. x and y can be represented as x=i*delx and y=j*dely. So a(i,j) or b(i,j) is what I would actually calculate. How do I code a and b as functions of i … Software Development python | |
Ok the admin said to me not to post in C++ if my problem is in C language. Ok here's my problem with my program now. #1 If I put this in a array what should I change? #2 In my looping I needed to press double enter to enter … Software Development c | |
I have spent 3 days trying to get two new functions - GetText() and PutText() to function correctly with no success. Would someone be kind enough to look over my code and see why they do not work. I must have missed something? Software Development c++ | |
Hi guys can you help me in this one? I can add cell values in Datagrid using their column address or column name but I want to add the columns which contain a specific word for example I want to add all cells with a column name containing "Amount" Dim … Software Development vb.net | |
Hi, When I initialise then access the `g_spMyLog` shared pointer, from within the `CSingleton::CreateLog` member function, it works ok. Accessing the SP from the static member function of `CSingleton::Create()` causes an `access violation` in the original project and an abort in this sample project displayed below. In the original project … Software Development c++ | |
using System; public class RollDie { public static void Main( string[] args ) { Random randomNumbers = new Random(); // random number generator int[] frequency = new int[ 7 ]; // array of frequency counters // roll die 6000 times; use die value as frequency index for ( int roll … Software Development | |
// Shortest function to convert an ascii hex digit to binary // (assumes a valid hex digit 0-9, A-F, a-f) char asciihex2bin(char ascii) { if (ascii > 0x40) ascii += 9; return (ascii & 0x0F); } Software Development c | |
Hello im making this xml reader that outputs links to listbox, the xml code is like this. <item> <title>file1</title> <category>myfiles</category> <link>http://google.com</link> </item> <item> <title>file2</title> <category>myfiles</category> <link>http://yahoo.com</link> </item> My code looks like this, it works but i would like that i could click the File1 in listbox and it would work … | |
i am creating a form in vb.net, the aim is to be able to insert data to the sql server from the form interface. the form's textboxes fields include Name, DateofBirth, Address, Telephone, PostalCode, Nationality, DateofRegistration Sex (ComboBox), plus two buttons names, Submit and Cancel. kindly assist with a code … | |
I am using Qt5.2.1 and I made a program that stores some data into a file and then reads the data. it stores some variables values. After I restart my program... I want to read those values and re-store the values of those variables... How can I do this? I … | |
I working on a mips code as extra credit for my Computer Organization and assembly class. The instructions are: Write a program) that will define the following string manipulation functions. Each is analogous to the corresponding C++ string function. STRLEN( Str &, Len &) Sent the address of a string, … Software Development assembly | |
import random while True: dice = random.randrange(1,5) dice2 = random.randrange(1,7) dice3 = random.randrange(1,13) sides = int(input)("Which sided dice would you like to roll? You can choose a 4-sided dice, a 6-sided dice or a 12-sided dice. Type 0 to exit the loop.") if sides ==0: break elif sides ==4: print … | |
I have a question. I am trying to sere into my brain how pointers work and just when I think I got it a new problem arises. So I think I understand pointers pretty good when working with primitives and such. Now I am trying to understand working with objects … Software Development c++ | |
 Hello there! Newbie here! It is my first time to post something here! Can somebody help me please with my problem on my codes. I have already build/created a **Log In Form** but my problem is I created an **On-Screen Keyboard** which must be use for that **Log … Software Development vb.net | |
Hello, i've been searching quite a while but haven't found the solution i'm after. I have a project where I need to show clients in a listbox imported from a XML file so far that is what I have but I also need to able to show the related data … Software Development vb.net | |
please help me how to close the window. code: JButton quit = new JButton(); public Mainmenu() { setLayout(new FlowLayout()); Icon quitb = new ImageIcon(getClass().getResource("quit.jpg")); quit = new JButton(quitb); add(quit); quit.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { } }); | |
hey all once again i have a little issue ... i'am really having a hard time with this issue i have a datagridview that contain one column as a text and another column as a combobox i would like to populate the combobox from MS Access Table and as a … Software Development vb.net | |
i searched a lot ol across web , could'nt get a solution to my problm ... viewed many articles but only found manual apps or s/w's to record a selected area of my desktop ..... can anyone guide me telling hw can i do it programatically in my form on … Software Development video | |
#include<stdio.h> #include<math.h> #include<conio.h> #include<string.h> #include<stdlib.h> int main() { int i, n, diff; int x=rand() % 100; int bMoveHigher = 0; int bGuessedCorrectly = 0; printf("Welcome to Guess a Number Game\n"); for(i=1; i<=6; i++) { printf("ATTEMPT %d: Enter your number: ", i); scanf("%d", &n); if(n==x) { printf("Congrats! You have guessed the … | |
I am trying to develop the genetic algorithm to solve Traveling Saleman problem and part of my challenge is to generate random tours long enough and write a fitness function to evaluate the cost incurred for each of the random tour. I have attempted to write the following. My objective … Software Development artificial-intelligence-llm java seo | |
I'm learning python 3 and I'm having problems with string related excerises. One exericse I'm working on is to write a program that cycle through a string and dispaly it like this: s u p e r n a t u r a l u p e r n a … Software Development python | |
hi good afternoon, hi good afternoon, am creating one point of sale software in vb.net ,today only i realize that i need a backup for the database i have attached with this project,after change my project as executable file how can i or my clients can take the backup for … Software Development vb.net | |
is it possible to create an online database using c# with a specific plug-in? | |
what are the advantages of using radio button lists and checkbox lists instead of individual radio buttons and checkboxes? Software Development | |
hello guyz im afraid if i understood this assignment unproperly: could you give me the output of it plz? (how should the output of this assign be) The monthly results for the best 3 employees of the month in a company are sent to the IT department for analysis and … Software Development c++ | |
im creating a voting system that add votes to the database but it seems that my update/submit button don't add numbers(INT) in my database. what could be the problem here?help my database schema: | cid | cpos | cfname | cmname | clname | cyr | cparty | votes | … | |
I have a Form with a Datagridview, beneeth this I have Textboxex who shows data from a few columns but restricted to row nr 0. The problem is when I enter data into the datagridview in other rows than 0 or changes the focus inthe datagridvew from row 0 the … Software Development vb.net | |
So I have this: private void GetSuppliersList() { ds = oDAL.GetSuppliersList(); cmbSupplier.DataSource = ds.Tables["SuppliersHeader"]; cmbSupplier.DisplayMember = "SupplierName"; cmbSupplier.ValueMember = "SupplierID"; } And I need to display SupplierAddress from my SQL database into a textbox so I thought I might need to get the ID (Supplier ID) of the SelectedValue (Supplier … Software Development | |
For example, How do I use this custom print method to display something in the main method? public static void print(Stack<String> myStack ) { int count = 1, sizeOfStack = myStack.size(); System.out.println("\nYour stack has size: " + myStack.size()); for (String myString : myStack) {System.out.print(count + ". " + myString); if(count!=sizeOfStack) … | |
Im always getting Invalid Column, check the database and it's all correct. Dim borrowed As String = "Yes" dataopen() comm.Connection = conn comm.CommandText = "UPDATE Equipment SET Borrowed = '" & borrowed & "' WHERE EQID = '" & eid & "'" comm.ExecuteNonQueryAsync() comm.Dispose() conn.Close() Software Development vb.net | |
The scenario was there should be any or multiple TextBox that is not empty and display it on the DataGridView. I think my SQL is incorrect. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Command1 As New OleDbCommand Dim i2 As Integer Dim sql1 As … Software Development microsoft-access open-source vb.net | |
Hi Dw I've recently created an application in java on this post:www.daniweb.com/software-development/java/threads/458306/how-to-work-with-jpos and now I just want to improve this by enabling a feature of mixing the cash notes when dispensing the required amount. The machine has these bills notes: 10, 20, 50, 100, and 200 so now what I … Software Development java | |
#include <stdio.h> #include <math.h> #include <conio.h> #include <process.h> #include <string.h> void main() { int i, n, diff; int x = rand() % 100; int bMoveHigher = 0; int bGuessedCorrectly = 0; printf("Welcome to Guess a Word Program\n"); for (i = 1; i <= 5; i++) { printf("ATTEMPT %d: Enter the … | |
Hi everyone, i'm try to build windows application about: read real time data from serial port and filter. But i don't know how to build function filter signal in c#. Can you help me? Pls! Software Development c# | |
I'm writing this code for one of my projects. can you please help me with line #6,#7 and #10? I'm not sure if I am writing the code for those correctly. package waffles; import java.util.Scanner; import java.util.Stack; /** * */ public class Waffles { /** * @param args the command … Software Development java | |
Hello please i have a problem with my compiler. When ever i try compiling a program it gives me warning saying" Source code not compiled" I use Devc++ compiler. Do i change the compiler or what do i do? This is the program i typed in it Software Development c | |
how to draw 2 parallel line in visual baisc 6.0 which have same height.. suppose picture box height is 200 then first line starting cordinate is 0,100 and second line cordinate is 100,200.. how we draw.. Software Development visual-basic | |
Write a shell script that will take a filepath and a string as command line arguments. The script should find lines which contain the given 'string' in the given file. It should create an output file in "/tmp" directory with the name in the pattern as below. "NN_15Nov2013_12Hrs_32Minutes_20Seconds.txt" Software Development shell-scripting | |
Hi,I want to come up with an online booking system for vehicles in a certain institution.right now am stuck coz am not sure how to go about the many approvals needed before the booking.e.g approval from the dvc/aa,finance,the head of department.there is also diffent kinds of booking e.g staff,students,academic trips … Software Development finance | |
Hello Im trying to display a label when my program starts, to check the server status.. For example if the user is successfully connected to the server it should say on the label "Connected" and if not the label should say "Not Connected" , my Database is located on a … Software Development mssql sql vb.net visual-studio | |
package die.java; import java.util.Random; class DieGame2 { private final int sides; private final Random generator = new Random(); public DieGame2(int s) { sides = s; } public boolean throwDie() { int faceValue = generator.nextInt(sides) + 1; System.out.print(faceValue); return faceValue == 6; } public static void main(String[] args) { DieGame die1 … Software Development java | |
I am implementing Priority QUE as a doubly linked list. My structs: typedef int kintyr; typedef struct qElem { struct qElem *prv; kintyr *dat; int *priority; }qElem; typedef struct que { qElem *fr,*bk; int cnt; }que; And this is my functions to create empty PQ, and to insert elements: que … Software Development c linked-list | |
Hi All, I need help in displaying a list (Sl.no) from a database to combo box. Please help me.... |
The End.