43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Ant695

Every time I try to compile this code I get the same error but it doesnt seem to make any sense. This is the code: public class Software Development { public static void main(String[]args) { System.out.println("Hello World"); System.out.println("2name"); System.out.println("name: \n"+name); System.out.println("\"name:\""+name); } } And this is the error: Software Development.java:1: …

Software Development java
Member Avatar for stultuske
0
131
Member Avatar for Faissalelbarhami

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 …

Software Development c c# c++
Member Avatar for Faissalelbarhami
0
392
Member Avatar for Nataliya_1

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
Member Avatar for Moschops
0
216
Member Avatar for cambalinho

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++
Member Avatar for cambalinho
0
835
Member Avatar for Search_not

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 …

Software Development c++ display
Member Avatar for Search_not
0
906
Member Avatar for jessica_10

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
Member Avatar for JZZZ
0
236
Member Avatar for gangsta gama

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
Member Avatar for gangsta gama
0
383
Member Avatar for myk45

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++
Member Avatar for myk45
0
1K
Member Avatar for sciprog22

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 = …

Software Development algorithm java
Member Avatar for sciprog22
0
232
Member Avatar for Nation

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
Member Avatar for mKorbel
0
2K
Member Avatar for Marz_1

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
Member Avatar for Marz_1
0
208
Member Avatar for glao

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. …

Software Development algorithm c
Member Avatar for glao
0
210
Member Avatar for Swalih

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 …

Software Development c++ ios
Member Avatar for Swalih
0
3K
Member Avatar for cambalinho

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++
Member Avatar for cambalinho
0
217
Member Avatar for glao

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++
Member Avatar for glao
0
109
Member Avatar for shahera.arafat

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
Member Avatar for JamesCherrill
0
130
Member Avatar for jez9

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 = …

Software Development listview vb.net
Member Avatar for jez9
0
593
Member Avatar for jez9

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
Member Avatar for jez9
0
282
Member Avatar for 35nando

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 …

Software Development c c# c++ image
Member Avatar for Abheek88
0
2K
Member Avatar for jez9

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
Member Avatar for jez9
0
320
Member Avatar for Mr.M

Hi Dw I'm new in C++ and I'm trying to develop an interactive app. I want for instance to run the app and have options printed then I choose one option then the app load relevant screen. Suppose it an ATM app where you chose what transaction you want to …

Software Development c++
Member Avatar for Mr.M
0
190
Member Avatar for silent.saqi

please help i am confused plz plz plz [CODE] using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Data.SqlClient; public partial class handler : System.Web.UI.Page { protected void Page_Load(object sender, System.EventArgs e) { if …

Software Development
Member Avatar for myaccount
0
8K
Member Avatar for Niloofar24

Hi everybody. How can i install ttk module on linux? When i try to import and use it on my Tkinter window, the error says sth like there is no module named ttk. So it means i should install it right?! I'm using python 2. I want to use ttk …

Software Development python tkinter
Member Avatar for Gribouillis
0
12K
Member Avatar for SyncMaster170

So heres my issue: My works VB program uses Code 3 of 9 to put a barcode on a members card; This issue only pertains to one computer, all other networked computers print member cards just fine with the barcode on them. BUT, when I go to print a member …

Software Development vb.net
Member Avatar for allensmith2
0
174
Member Avatar for fasihahshaharil

help me please to answer this simple coding...i'm very weak in coding...pleasee,tomorrow my lecturer want to see my work.... :( help me frienddsssssssss..............help meee

Software Development c++
Member Avatar for rubberman
0
105
Member Avatar for Search_not

I am writing to a file using a pointer variable that points to my File object, which includes the method used to write to my text file. When I try to delete the memory my program crashes... The error does not occur when I comment out the "delete file;" line. …

Software Development c++
Member Avatar for rubberman
0
146
Member Avatar for Matthew_10

Hello All, I am working on a project for class and I have everything work except for one little thing. I can compile there is no issues with running the program. However, when get prints the information I get a null as the value for the Mobile OS. I do …

Software Development java smartphone
Member Avatar for Slavi
0
245
Member Avatar for brandon66

Hey guys, seems like im doing something wrong here 2 occurs 4198861 times* in an array of size 100, i need another set of eyes if anyone can point me in the right direction #include <stdio.h> //proto void printOccurrence(int countArray[], int countSize); //main int main(void) { //variables int arraySize = …

Software Development c c# c++
Member Avatar for Moschops
0
200
Member Avatar for angel6969

I am having some trouble with this program .. if input is abaabcdbab output should read abcd.... program is supposed to delete the repeated characters and output only one of each character but it is not working .... and ideas would be welcome //Reads the letters in an array and …

Software Development c++
Member Avatar for Ariel_2
0
1K
Member Avatar for jez9

i created a simple keyboard in vb.net , the problem is i got 2 textboxes, but when i tried to use the keyboard that i've created in textbox1, i got the same result in textbox2[ in short what i type in textbox1 it also textbox2] if textbox1.[dont know what to …

Software Development vb.net
Member Avatar for jez9
0
2K
Member Avatar for ZFPuhi

Hello to all, i am new at this and i am just learning, i have a scholl project to make a program that needs to have discount base on how much they buy like 5 - 10% | 15 - 25% | 25 - 40% and ofc here is the …

Software Development vb.net
Member Avatar for Reverend Jim
0
219
Member Avatar for Brandon_7

I'm in AP Computer Science A* I was doing the following problem: int i = 1; while ( i < 10 ) { int j = 10; while ( j > i ) j--; i += j; } System.out.print(i); The output is 16, but can someone please explain why it …

Software Development java
Member Avatar for rubberman
0
202
Member Avatar for Smn

Beginner's question : How is c different from c++? what are the differences? Which one shoul i go for , if i know basic oops (just basics)? **plz provide some genuine answers rather than simply "google"ing ..... I have searched a bit and not yet satisfied.**

Software Development c c# c++
Member Avatar for rubberman
0
141
Member Avatar for Anil_7

Why graphics.h file doesn't work in dev c++ and code blocks?

Software Development c++
Member Avatar for Moschops
0
110
Member Avatar for jez9

Syntax error. Im not really familiar in using parameter so i dont know whats wrong with code . i used ms access. Private Sub btnupdate_Click(sender As System.Object, e As System.EventArgs) Handles btnupdate.Click Dim name As String = txtfname.Text Dim pos As String = txtpos.Text Dim address As String = txtadd.Text …

Software Development vb.net
Member Avatar for jez9
0
135
Member Avatar for Niloofar24

Hi friends! I'm coding a program; i have a Tkinter window with a view button and i can add names with entry box and add button into a list that will be saved on a db file. Now i want the program to show the list names otomaticly when the …

Software Development python shell-scripting tkinter
Member Avatar for Niloofar24
0
259
Member Avatar for jez9

hello again :) heres the code for declare button: Sub table_load() Dim CMD As OleDb.OleDbCommand = New OleDb.OleDbCommand("Select * from tblnumber", con) Dim rd As OleDbDataReader = CMD.ExecuteReader() If rd.HasRows() Then Dim pos As New Point(5, 5) Dim sz As New Size(50, 50) Do While rd.Read() Dim tblnum As New …

Software Development vb.net
Member Avatar for jez9
0
95
Member Avatar for Niloofar24

Hello! My this time question is about breaking a list. I have a list with the name favorite_movies. Here is 2 functions of all functions from the file: def add(): load_favorite() favorite_movies.append(ent.get()) dump_favorite() #print (colors) def view(): load_favorite() from Tkinter import * v = Tk() v.geometry('300x300') v.configure(background = 'white') top …

Software Development gui python tkinter
Member Avatar for Niloofar24
0
573
Member Avatar for Niloofar24

Hi everybody. How can i creat e text file to use as a database in python? I want to save my project's data changes into hard disk. What should i do?

Software Development python
Member Avatar for snippsat
0
5K
Member Avatar for alan91

How to write a program using nested for loop to display the following output: 0 * * 0 1 2 * * * * 0 1 2 3 4 * * * * * * * * * *

Software Development c++
Member Avatar for Lardmeister
0
2K
Member Avatar for aliasadullah
Member Avatar for Niloofar24

Hello friends :) This is my code: #!/usr/bin/env python3 # -*-coding: utf8-*- def callback(): lbl.configure(text = 'button clicked!') import Tkinter window = Tkinter.Tk() window.geometry('300x300') window.configure(background = 'PeachPuff3') lbl = Tkinter.Label(window, text = 'Nothing yet!') btn = Tkinter.Button(window, text = 'add', command = callback).pack() window.mainloop() Why it doesn't work?

Software Development python tkinter
Member Avatar for Niloofar24
0
10K
Member Avatar for jez9

here is my code: With RECEIPT For i = 0 To MENUORDER.lvorder.Items.Count - 1 .LstOrder.Items.Add(MENUORDER.lvorder.Items(i)) 'dont know what to do next Next i .ReceiptNo.Text = Me.lblos.Text .lblTotal.Text = Me.lbltotal.Text .lblCash.Text = Me.TextBox1.Text .lblChange.Text = Me.lblchange.Text .ShowDialog() End With [forms : RECEIPT, MENUORDER] i dont know how to display listview subitems …

Software Development listview vb.net
Member Avatar for jez9
0
188
Member Avatar for jez9

hi, I want to Count how many times i click a button and display the number in listview. but i dont know the syntax for counting a button, can someone help me with this problem?

Software Development listview vb.net
Member Avatar for jez9
0
11K
Member Avatar for Nation

I am developing a java application that uses a jtabe to allow the user to capture data. This data would be written to a text file later. The application is working fine. Good. However, I wanted to add a button such that when a user click this button, the application …

Software Development java
Member Avatar for JamesCherrill
0
570
Member Avatar for batoolhussain

hi everyone. I have two array, array1 is two dimension and array2 is one dimension. I want to compare each number in array1 to array2 and if the number is not existing in array2 i want to add this number to array2. I am using vb.net2010. please help me

Software Development vb.net
Member Avatar for batoolhussain
0
112
Member Avatar for jez9

database table : tblsale fields : id [autonumber], name[text], TOTALQTY [text], TOTALPRICE[text] lvlist column: QTY, NAME, PRICE this is my code sql = "UPDATE tblsale set TOTALQTY = TOTALQTY + lvlist.FocusedItem.getTOTALQTY AND TOTALPRICE = TOTALPRICE + lvlist.FocusedItem.SubItems(2).getTOTALPRICE where name = '" & lvlist.FocusedItem.SubItems(1) Dim acscmd = New OleDb.OleDbCommand(sql, Con) acsdr …

Software Development vb.net
Member Avatar for jez9
0
385
Member Avatar for Smn

I have created a sample program on C.When i try to run on a different system (win 7 64 bit) it is asking for x64 version of the file (of the executable file created ). P.S. - I am not talking about the compiler, but about the executable file created …

Software Development c
Member Avatar for mike_2000_17
0
3K
Member Avatar for reyarita

hey guys ! good day! guys i have a thesis project,enrollment system in high school den i have confuse with how to process in sectioning. sample guys if one student will enroll in one section (section galatia)den if the staff will click save button den if its done. then another …

Software Development visual-basic
Member Avatar for Vers20
0
871
Member Avatar for ivel

Is it possible to solve this problem in c++? Write a program that counts the numbers from 3 to 117. But for multiples of three add 3 instead of 1 and for the multiples of five add 5 instead of 1. For numbers which are multiples of both three and …

Software Development c++
Member Avatar for NathanOliver
0
293

The End.