132,726 Archived Topics
Remove Filter ![]() | |
Hii All, i am a begginer at c programming in the first semetser of study, and i am trying to doing my project what is: Diff — The program should compare two text files and list the differences, i.e. lines and columns of the beginning and the end of a … | |
Please explain the difference between the two mentioned above.what is assembly in a c# program? Thnx Software Development assembly | |
I am currently working on a program that asks a student to answer 5 simple maths questions after each question it will state whether the answer is right or not. which it will out put a grade and grade average percentage. Currently I'm stuck on the if statement where it … Software Development java java-netbeans | |
Hello DaniWeb community! I recently posted a question asking about the character creation screen and that it is all set! I then continued with form validation, and storing values and spitting them back out in a message box. Then I made the create a character screen close, and open the … Software Development | |
package deviation; import java.util.Scanner; public class Deviation { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Enter n: "); int n = input.nextInt(); System.out.println("Enter " + n + " numbers: "); double[] x = new double[n]; int i; for (i = 0; i<n; i++) { x[i] = … Software Development java | |
Filter and process data Download the file population.txt from webcourse. The file is a formatted text file with 3 columns: country, city and population. Read the file and create a short c program to do the following: a.display the name and the population of the city with the highest population … Software Development c file-system | |
#include <iostream> #include <string> using namespace std; { int counter=0; string Username; string Password; string InvalidUser; int opt; system("cls"); cout <<"\n\n"; cout << " ====== MEDICARE HOSPITAL LOGIN ======="; cout<<"\n"<<endl; cout<<"\n"<<endl; cout<<"\n"<<endl; cout<<" *** ****** ******* ************* **** *** "<<endl; cout<<" *** ******** ********* ************* ***** *** "<<endl; cout<<" *** … Software Development c++ | |
Can someone check if I am doing these right please, thanks ? int a=3, b=5, x; x= a/b + b/a +a%b + b%a; cout << x; // x=0+1+0+1= 2 y=float(b/a)+ float(b)/a; cout << y; // y=1.6+1=2.6 z=a*b/2; cout << z; // z= 4 w=pow(b, a)+sqrt(a+b); cout << w; // w=125+2sqrt(2) … Software Development c++ | |
i can show an icon on notify area: NOTIFYICONDATA NID; //on main NID.cbSize = NOTIFYICONDATA_V2_SIZE; //if i use the NOTIFYICONDATA_V3_SIZE //the compiler enters on conflits NID.hIcon = test2; NID.uCallbackMessage = WM_USER + 1; NID.hWnd = a; NID.uID = 01; NID.uVersion=4; NID.uTimeout=500; NID.dwInfoFlags = NIIF_INFO; strcpy(NID.szInfoTitle, "Test Title"); //NID.hBalloonIcon=(HICON)test2;//no member strcpy(NID.szTip, … Software Development c++ | |
So I have this so far, not sure how to make dollars * e^(rate*time) #include <iostream> #include <cmath> #include <iomanip> using namespace std; int main() { //declare identifiers double rate = 1; double time = 2; float dollars; float total=0.0; //initialize identifiers total= pow(exp(1.0), rate*time); cout << fixed << showpoint … Software Development c++ motherboards-cpu-ram | |
Sorry for the misleading question guys, I know how to generate two random numbers but I want to use them in One JOptionPane input Dialogbox so the user can add the two numbers. Below is my code of what I have done so far I know it's not a lot … Software Development java java-netbeans java-swing | |
![]() | I want to read text from a file and display it in the win32 Edit(ReadOnly). I am having problems converting from std::string to w_char*/LPWCSTR. The program reads the text from the textfile into a vector<std::string> object. I want to display each item in the vector on a new line inside … ![]() |
hi all i am doing a programing and got stuck on two condition. here is the code that I have done so far. it is as far as i reach. for(int i=1; i<=3; i++){ System.out.println("please enter the employee id number"); emp_idnum = input.nextInt(); System.out.println("please enter the employee first name"); empfirst_name … Software Development java | |
Hi Guys, Im a bit puzzled on the best way to store data which will later be saved to a csv. I am doing a record search on a database table which will get cycle through each employee and get the relevent information. Once I have done this I will … Software Development sql | |
Hi I'm new to this site so please forgive me if this is the wrong forum. I am developing a program which takes data from a reader (impinj) and displays results on a form. The Datatable is filled on a separate thread to the main form, and as such I … Software Development vb.net | |
i want to hide the other button when i click the btnSnacks/btndrinks buttons: btndrinks, btnSnacks table: tbldrinks, tblSnacks [I use MS access] heres the code that i tried: ~[i use the same code in btnSnacks, i just replace the database with tblSnacks] Private Sub btndrinks_Click(sender As System.Object, e As System.EventArgs) … Software Development vb.net | |
Hello DaniWeb community! I am trying to learn c# by going through a few tutorials on how to make an RPG game game using windows form, but I cant seem to get the hang of making the create a character screen. I tried to get the value of a track … Software Development | |
Hi All, I'm trying to use bools to sync between two threads. I cant' use C++11 and I thought mutexes would be slightly heavy for this. So, I do something like this: // ================================== // Thread A .. do some stuff .. // wait for signal. while (!signalFromThreadB) { pthread_yield(); … Software Development c++ | |
Hello, Thank you for your time! I am trying to understand the Quick Sort algorithm. I have some questions about the partition method. I found the following implementation online: import java.util.Scanner; public class QuickSorts { public static int partition(int a[], int left, int right, int size) { int pivot = … | |
I have a JTable that has four columns. In the second column I have assigned a JComboBox to be the cell editor of my column.The problem that I encountered is that I cannot handle the combobox the way I want. **What I want is that after a user select an … Software Development java java-swing | |
Hello I am new to Java & I am trying to find ways(in built Java objects/ways) to parse HTML. Can you suggest some objects in the Java Standard Library? I have extended the object HTMLEditorKit.ParserCallback but when parsing a web pages' source code it literally takes 2 minutes or more! … | |
Goodevening, I'm starting coding in C and I've done a little program to understand "struct" function, but... I receive this message: Segmentation fault: 11 I've understood a bit what this problem is about, but I can't understand where it borns on my program. Can you help me? I tank you! … Software Development c | |
hey all. I'm designing a new software and working on login system with online database. this is the code that I wrote, it work well Mysqlconn.ConnectionString = "server=db4free.net;Port=3306; user id=****; password=d****; database=****g" Mysqlconn = New MySqlConnection Dim READER As MySqlDataReader Try Mysqlconn.Open() Dim Query As String Query = "SELECT * … Software Development vb.net | |
Here i have my deposit class: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; namespace CollectionAccounts { public class DepositAccount : Account,IDisplayable { private double interestRate; public DepositAccount(string id) : base(id) { interestRate = 0; } public double InterestRate { get;private set; } public void AddInterest() … Software Development | |
hello guys.. i hope you can help me for this codes.. im trying to make a program that will accept username and password in c++. im using turbo c++ ide 3.0 "not dev c++". here is my code.. but the problem is.., i want to use * to appear as … | |
![]() | here is my code and i have tokenized the data in my .txt file.I want to insert them into a database. import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.StringTokenizer; public class test1 { public static void main(String[] args) { BufferedReader br = null; try { String sCurrentLine; br = new … Software Development java |
Hello , I want to scan each row and find in each column the max element and the corresponding index. Then , swap this column with the column which belongs to the main diagonal ( if a condition is valid ). Finally , do the same for the rest rows. … | |
I have worked with HTML in the past, but am new to XML. I think my code is mostly correct however I cannot figure out how to fix the remaining errors. I think my brain is stuck on HTML mode. Any help would be great. This form just has to … Software Development xml | |
This tutorial is meant to be a helpful guide in order to successfully **create a tripwire application in C# which can be used for security purposes.** At the beginning you can find the background information to be fully familiar of the subject of this implementation. After this, we will put … Software Development c# computer-vision gui ide monitoring-software robotics user-interface visual-basic visual-studio webcam | |
<html><head></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import java.text.DecimalFormat; import java.util.Scanner; public class BookBillSystem { public static void main(String[] args) { //create the Scanner instance for taking input from console Scanner scanner = new Scanner(System.in); //take input customer name System.out.print("Customer Name: "); String customerName = scanner.nextLine(); //take input noOfBooks purchased System.out.print("No of books … Software Development java | |
I'm trying to write 2 dimensional array of int type to a binary type file. int array[3][3]={Some data}; ofstream f; f.open("nameoffile.dat",ios::binary||ios::out); for(i=0;i<=3;i++) { for(j=0;j<=3;j++) { f.write((char *)&array[i][j],sizeof(array)); } } f.close(); Above code is not complete. I only wrote a part of the code where I need help. Is this code … | |
int subroutine (char *input, float *buffer) { *buffer = malloc(...) buffer is calculated from input } or flot subroutine (char *input) { *output = malloc(...) buffer is calculated from input return(buffer); } int main(int argc, char *argv[]) { float *data; subroutine(argv[] ...) ... free(data) } 1) which subroutine is recommended? … Software Development c | |
Hi guys, New to this place, so hi to all! OK, I am also new to C# so please excuse my n00b like questions. So, my first question; I am writing a kind of Notepad alternative. I want to have the ability to have the Textbox opacity set to 0, … Software Development | |
I'm using Excel interop and it seems that this functionality needs to run in the User Interface thread. So I execute that from the ProgressChanged backgroundworker event. Is there a way to have the dowork event (that invoked the progress changed event) interrupt execution until the ProgressChanged event is finished? … Software Development multithreading user-interface | |
When I try to type in a set user to add to the friends list, it shows up blank via [[]]. I know I'm missing something or it's the way I set up the input, but I can't figure it out. Main Driver import java.util.*; public class main { public … Software Development java | |
my image class can read animated gif's. using a timer i can change the menu item image. but when the menu item is showed, how can i refresh it? (i have tryied the DrawMenuBar() and SetMenu() without sucess. the image is, only, updated when i move the mouse from 1 … Software Development c++ | |
Hello , I wanted to ask why this works? int *p = new int[ 1 ]; for ( int i = 0; i < 5; i++ ) { p[i] = i; } for ( int i = 0; i < 5; i++ ) { p[ i ] = 2 * … Software Development c++ | |
I have a server chat use socket and multithreading but i can't show data of client to my textbox, I only see that data when i use "Msgbox", I only take a warning about cross-thread...blah...blah but i think it's not my problem so i dismiss it by code: System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = … Software Development multithreading vb.net | |
I want to ask >>what is the use of (string args[])??? and how can I use system.exit >>without intially import the package (java.lang) ? thanks ^^ import javax.swing.JoptionPane; public welcome1 { public static void main (stirng args[]){ JoptionPane.showMessageDialoge(null,"welcome to java"); system.exit(0); } } Software Development java java-swing | |
Python helps in real life situation to automate things. This program helps you to prep up your kids ability to go over/under ten, which is essential not only by itself, but also when calculating with bigger numbers. Program is not any special, but shows how useful Python can be in … Software Development mathematics python | |
QTY-QUANTITY The Price is not increasing. I want to multiply the QTY to PRICE , when QTY is Increasing The PRICE need to increase to depends on the QTY. Private Sub clickMe(sendr As Object, ByVal e As EventArgs) Dim btn As Button = CType(sendr, Button) Dim ProdMatch As Boolean = … | |
how to write a c program that allows the user to input grade and get the mark range using the switch statement,and the program only terminates when the user presses the esc key | |
![]() | I am trying to read a file and follow instructions based on its contents, add them to a linked list. I have the all the file handling written but am still having trouble with pointers and linked lists. The instructions from the input file would go like this i n … Software Development c linked-list |
Hi, I'm conducting a research in web hosting and I've just found a sample online which is a simple web server, its works fine but the only problem is that the browser only display texts and the images are not loaded I don't know what could be the problem, I … Software Development vb.net web-browser web-server | |
Hey what's up everyone? I'm about 3 days into hitting an extreme amount of brick walls and I'm about punch drunk. Currently I've spent 4 hours on this alone and I'm still not getting anywhere. Does anyone have some code samples that I might be able to use to put … Software Development api google google-api json vb.net | |
ms access[tblmonthly - month, total] month = lbldate [actually my date format is ` lbldate.Text = Date.Now.ToString("MMMMMMMMMM dd, yyyy")` , im using this format for my daily sales and i can save and update at the same time, but in Monthly sales i want to use the same format but … Software Development vb.net | |
Hi, I'm looking for a library which provides edge detecion on color image. For example i have an 200x200 color image and i need to a table form it: bool is_edge [200][200]; Where is_edge[x][y] == true when there is edge in pixel [x,y] Sorry form my english, waiting for some … | |
here's my code Dim sql As String = "INSERT INTO tbldailysales(date, totalprice)VALUES(@date, @totalprice)" cmd = New OleDbCommand(sql.ToString, con) cmd.Parameters.AddWithValue("@date", lblday.Text) cmd.Parameters.AddWithValue("@totalprice", lblstotal.Text) cmd.ExecuteNonQuery() Software Development vb.net | |
![]() | i am using eclipse to write code that allows me to take a text file containing data (in my case it looks something like this :20 30 40 50 etc).i want to write the code in java and i am using eclipse as my IDE.i need the database to be … |
How to copy Table1 data from client to server database in LAN connection? Software Development c c# c++ client-server |
The End.