43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for 2344235643

Two different questions 6) write an application that displays the result of dividing two numbers and displays any remainder.the main () method prompts the user for values and sends them to the dividing method; the dividing method the calculation and displays the results. 8) Write an application that cal calculates …

Software Development java
Member Avatar for stultuske
-4
187
Member Avatar for lewashby

I'M reading "C++ FOR DUMMIES" 4th edition by Stephen Randy Davis and the chapter on arrays as just introduced this line -> `cout.width(3);` with absolutly no explanation to waht width is. I would like any of you guys to help me wout here but in addition to telling what .width …

Software Development c++
Member Avatar for lewashby
0
248
Member Avatar for aVar++

I have my battleships game working completely accept ships do not generate randomly. I have each point of the ship assigned to certain squares. Example: ship_1_1 = Grid[1][1] ship_1_2 = Grid[1][2] ship_1_3 = Grid[1][3] ship_1_4 = Grid[1][3] Randomly generating ships is harder than I thought. For these reasons: - Ships …

Software Development python
Member Avatar for woooee
0
464
Member Avatar for monching

Hi there, I have problem with my DropDownBox, my datasource is from MySQL database. My problem is this, I have already stored data in my database let's say 12 rows, but when I am trying to fetch it on to dropdownbox, only 11 data will be the item values of …

Software Development vb.net
Member Avatar for monching
0
178
Member Avatar for Programmer629

hey guys! i've been getting better at vb.net and i am very familiar with it now. im not an expert but i know some more vb.net now. anyway, i have some code here: 'Show status txtboxStatus.Text = "Playing Loading Sound" 'Play recording Me.BackgroundWorker1.RunWorkerAsync() End Sub 'This method is executed in …

Software Development audio vb.net
Member Avatar for Programmer629
0
3K
Member Avatar for somjit{}

this is an exam question i failed to answer properly, im trying to work it out. the code i came up with is below, it works ok, but i was hoping if anyone could help in improving it. iv read in various threads in daniweb itself about making a code …

Software Development c
Member Avatar for Adak
0
294
Member Avatar for JordanSimps

I kind of have an idea what to do, but I can't figure it out. The program needs to be able to get the students name and three test scores, then get the average score (percentage) out of the three scores. After that, you need to convert the score (percentage) …

Software Development python
Member Avatar for vegaseat
0
259
Member Avatar for stephgoesshazoo

So, I'm suppose to make a program following these guidelines. 1. Count all words in the file. A word is any sequence of characters delimited by whitespace, whether or not it is an actual English word 2. Cout all syllables in each word. To make this simple, use the following …

Software Development c++
Member Avatar for deceptikon
0
425
Member Avatar for IsaacMessi10

I'm working on a web browser and I need to know how to store history & bookmarks permanently as currently after the browser is closed all data is lossed. Should I put it on a DB? Suggestions? PS: They are currently being saved on a ListBox.

Software Development vb.net web-browser
Member Avatar for IsaacMessi10
0
147
Member Avatar for kshahnazari

I have a simple question about this code struct a { char key; a *next; }; a = here*; and in the function I check if here is NULL or not if (here->key==NULL) ... and Im sure here is pointing to an a(struct) but it gives access violation . what …

Software Development c++
Member Avatar for deceptikon
0
140
Member Avatar for clubberlangMayo

hi guys, writing a code in my first term at vb 2010, ive to create a guessing game, generate a number between 1 and 30 and let the user guess it. i must give hints along the way and record the amount of guesses made. i have the code written …

Software Development visual-basic
Member Avatar for clubberlangMayo
0
331
Member Avatar for phfilly

Hi all! I just have a quick question about the execution of a copy constructor. This is the code i'm testing my work with as I'm busy learning for a test. Class file: Clock :: Clock (int h, int m, int s) { hr = h; min = m; sec …

Software Development c++ oop
Member Avatar for can-mohan
0
294
Member Avatar for bumsfeld

There seems to be many ways to create a dictionary, which one do you prefer?

Software Development python
Member Avatar for Umar Suleman
3
410
Member Avatar for can-mohan

Hi, while executing below programme on my Dev-c++ 4.9.9.2 compiler , i was bit amazed as it should have not run properly due to use of deleted object (obj). can anybody let me know instead of crashing , it is getting executed without any memory issue. ~Mohan #include<iostream.h> #include<conio.h> //virtual …

Software Development c++
Member Avatar for can-mohan
0
134
Member Avatar for riahc3

Hello Im currently creating BMPs as a bufferedimage as following: BufferedImage bufferedImage = new BufferedImage(320, 320, BufferedImage.TYPE_INT_RGB); Thing is that black and white is more than enough for me so would I do this: BufferedImage bufferedImage = new BufferedImage(320, 320, BufferedImage.TYPE_BYTE_BINARY); ? Thanks

Software Development java
Member Avatar for riahc3
0
86
Member Avatar for toomutch

Hi All, I am trying to store a link to a document in a mysql database using VB.NET. I open a file browser for the user to select the file, and if I output the returned filename to a messagebox it looks fine, but when I write that filename string …

Software Development sql vb.net
Member Avatar for toomutch
0
333
Member Avatar for chdboy

I'm trying to get values from DataGridView to the another form in textboxes and in Picturebox ,data in textboxes are there ok, but when I try to get a picture in a picturebox from DB it gives me this error. Buffer cannot be null Parameter name :buffer and here is …

Software Development open-source vb.net visual-studio
Member Avatar for chdboy
0
3K
Member Avatar for silvercats

I can't find the error. Logical error. Total and tax comes as 0. After logging in,enter a desired item number. press 0. then total comes as 0. #include <iostream> #include <conio.h> #include <string> #include <cstdlib> using namespace std; void mainfunc (); void Exit(); struct menuItemType {int itemno;double price;string menuItem;}; void …

Software Development c++
Member Avatar for silvercats
0
172
Member Avatar for nesa24casa

Hello people, i have made this .bat few years ago and its working fine for changing gateway getaway 192.168.1.1 @echo off netsh interface ip set dns name="Local Area Connection" source=static addr=192.168.1.1 netsh interface ip set address name="Local Area Connection" source=static addr=192.168.1.11 mask=255.255.255.0 gateway=192.168.1.1 gwmetric=0 exit getaway 192.168.1.5 @echo off netsh …

Software Development dns
Member Avatar for nesa24casa
0
181
Member Avatar for Ancient Dragon

I know how to create a function with variable argument list, but how do you create one when the argument type is unknown, something like MyPrintf(...) ? From what I've read CLR/C++ only supports known argument types, such as int, `MyPrintf("...array<Int32>^ arr)` and the calling function int main() { MyPrintf("One", …

Software Development c++
Member Avatar for triumphost
1
687
Member Avatar for m_ishwar

Hey this bit of code is giving a lot of trouble. I am new to python and have no idea why I am getting an error like this : Traceback (most recent call last): File "D:/Python27/saved/digital_filter.py", line 83, in <module> app=Application(root) File "D:/Python27/saved/digital_filter.py", line 23, in __init__ self.create_widgets() File "D:/Python27/saved/digital_filter.py", …

Software Development gui python tkinter
Member Avatar for m_ishwar
0
196
Member Avatar for yossi.hazan.5

im keep getting ror: expected identifier or '(' before '.' token|error: expected expression before what am i doing wrong? #include <stdio.h> #include <conio.h> #include <stdint.h> int main() { typedef struct { char name[20]; char year[20]; int inout[20]; }movie_rent; movie_rent[20]; int i,sum=0; FILE *myfile; if ((myfile = fopen("mov.txt", "rt")) == NULL) …

Software Development c
Member Avatar for yossi.hazan.5
0
118
Member Avatar for Bile

-->>SOmething is Confusing Me or Doesn't provide Me with actual Results I needed... -->>I want to Calculate some Numbers and Its result if It has more than 3 decimal places... -->>I want it to be rounded only to 2 decimal palces... -->>What I dont want is that when I use …

Software Development visual-basic
Member Avatar for AndreRet
0
303
Member Avatar for Ashenvale

Hi everyone! I'm new to using VB and apparently I'm having a problem with the value being displayed in a textbox Here's the thing: Private Sub btnRemove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRemove.Click If DGV2.SelectedRows.Count = 0 Then Exit Sub End If DGV2.Rows.Remove(DGV2.SelectedRows(0)) Dim Sum As Decimal …

Software Development vb.net
Member Avatar for Ashenvale
0
633
Member Avatar for hueikar

Hi, I would like to export data from datagridview into excel? Can show me some example to do it? Appreaciate it!

Software Development visual-basic
Member Avatar for softwareskill
0
1K
Member Avatar for somjit{}

this code gives the correct result upto size 6 (i'v run this a few times, and 6 seems to be the boundary), although the intermediate steps are all insane! then onwards, from size 7, it returns minimum value 0 /*minimum of an array using recursion*/ #include<stdio.h> #include<stdlib.h> int findMin(int* arr,int …

Software Development c
Member Avatar for somjit{}
0
362
Member Avatar for achinthaadd

im junir for vb 2010, im tring to make small program, which when select picture in opendialog,( give path of image into text box(txtGrupAddNewArtWrokUploadImage.Text) ) copy to folder(ArtWork) which in application installed folder. i try to filecopy command using give target path like"c:\temp\image.jpg" command is working but when i chenge …

Software Development assembly vb.net
Member Avatar for achinthaadd
0
284
Member Avatar for XEN0

Just wondering here what is a efficent way to communicate between a Windows Form project and a console application. So far im using Visual Studio 2012 and the System.IO.Pipes namespace,to send bytes between the application. In the windows form(as client) Dim pipes As NamedPipeClientStream pipes = New NamedPipeClientStream("A Digital Whirlwind …

Software Development gui microsoft vb.net visual-studio
Member Avatar for XEN0
0
362
Member Avatar for VernonDozier

I am looking for a portable method of checking whether overflow has occurred when multiplying unsigned integers. The way I have always done it in the past is to turn my unsigned integers into uint64_t's, multiply, then create a uint64_t with a value of 2 to the 32nd power and …

Software Development c++
Member Avatar for deceptikon
0
176
Member Avatar for aVar++

Hi guys, I got this from my teacher and im really confused. could anyone point me in the right direction? Thanks > What does it do? > > This time I'm looking for an overall summary, in one sentence, with the word "by" in the middle: > "This function ..........., …

Software Development algorithm python
Member Avatar for Lucaci Andrew
0
234
Member Avatar for raaif

Hi again, I am trying to read an XML file in this format; [ICODE] <?xml version="1.0" encoding="utf-8"?> <words> <word id="Apple" def="A fruit" /> <word id="Dinosaurs" def="Now Extinct Animal" /> <word id="Giant Panda" def="An Endangered Animal" /> <word id="Asia" def="The Largest Continent" /> ..... </words> [/ICODE] I have more than 3000 …

Software Development apple vb.net xml
Member Avatar for softwareskill
0
237
Member Avatar for buffalo0

Hi I have what I think is a simple problem but after much searching cant seem to find a solution. I have an xml file stored on an web server and I need to read the data using vb.net for a smart device application. I also need the ability to …

Software Development asp.net vb.net xml
Member Avatar for softwareskill
0
5K
Member Avatar for initialise

Hi All, I have two major problems and they may or may not be linked. My main problem is with an application that I am creating. So far, I have only created the GUI using Netbeans 6.8. When I run the app through Netbeans then everything works fine. However, when …

Member Avatar for adisri
0
448
Member Avatar for notconfirmed

Hello, I develop a simple script that capture the product using .net WebBrowser control. this is the link http://www.groupon.cl/descuentos/multiple-locations/desde-39900-por-8-sesiones-de-depilacion-ipl-en-axila-rebaje-de-bikini-con-opcion-a-zona-facial-en-estetica-carola-rodriguez-hasta-90-off I have a problem in getting the time in jquery count donw control. Please help me to find a solution. Regards, jeffrey

Software Development asp.net javascript-jquery web-browser
Member Avatar for cursedbustah
0
262
Member Avatar for mateusz.baran1

Hello I would like to ask how to change button "Open" to "save" when iam using JFileChooser public void actionPerformed(ActionEvent e) { Object zrodlo =e.getSource(); if(zrodlo == mSave)//zapisywanie pliku { JFileChooser fc = new JFileChooser(); fc.setSelectedFile(new File(fileName)); fc.setFileSelectionMode(JFileChooser.FILES_ONLY); FileNameExtensionFilter filter = new FileNameExtensionFilter( ".txt and .java files", "txt"); fc.setFileFilter(filter); if …

Software Development java
Member Avatar for mateusz.baran1
0
1K
Member Avatar for nUmbdA

#include <iostream> using namespace std; int main() { //declare variables const double FEE = 10.00; double total_fee, charges, checks; //display header information cout << "Chapter 4 Homework\n\n"; //request input from user cout << "Enter number of checks written this month "; cin >> checks; cout << "\n"; if (checks = …

Software Development c++
Member Avatar for nUmbdA
0
153
Member Avatar for A Haunted Army

i'm having a bit of a problem getting my collision handler to work correctly, my collision detection works fine but handling the movement after the collision is where things have gone a bit buggy. the idea is that if the object is colliding horizontally it will be moved back before …

Software Development c++
0
79
Member Avatar for Minko

Hello, In the form1 load event I am running this code Dim NewCalendar As New MonthCalendar NewCalendar.Name = "DateSelecter" NewCalendar.Size = New Size(80, 80) NewCalendar.Location = New Point(100, 100) NewCalendar.Visible = True AddHandler NewCalendar.DateSelected, AddressOf DateSelecter_DateSelected Me.Controls.Add(NewCalendar) However I can not work out how to get the value from the …

Software Development vb.net
Member Avatar for Minko
0
263
Member Avatar for mshefa

How do I modify the split function to consider the punctuations as words? He = 1 word. said = 1 word , = 1 word " = 1 word Well-done = 1 word . = 1 word " = 1 word Contents of the test file: He said, "Well-done." #!/usr/bin/perl …

Software Development perl
Member Avatar for mshefa
0
191
Member Avatar for codechrysalis

Hi everyone I have a issue where I have written the entire program but couple little tweaks are needed for me to get the program done. I have my super class here "Pet". I have created couple objects in Main, "myRobin" , "myCow", "myBlackMamba" and passed some arguments to them. …

Software Development java
Member Avatar for codechrysalis
1
168
Member Avatar for Violet_82

Hi there, I have opened another thread even if the program is very similar. I have modified some code I have produced earlier and now I am getting some runtime errors, and I can't quite understand why. Now, here's the code: EmployeeClass.java public class EmployeeClass{ private String firstName; private String …

Software Development java ubuntu
Member Avatar for Violet_82
0
4K
Member Avatar for totalwar235

I am having problems with pointers and i am getting two errors saying "invalid argument type of 'unary *'" float getProfit(float* bushels, float price) { int i = 0; for(i = 0; i < 20; i++); { *bushels[i] = *(bushels[i]*price); } return 0; } any ideas on a solution? i …

Software Development c
Member Avatar for deceptikon
0
128
Member Avatar for shanki himanshu

i want to print a 'double' variable upto 8 decimal places without trailing zeroes. for eg: if a= **10.1234** then print **10.1234** if a= **10.00** then print **10** if a= **10.11111111111** then print **10.11111111** (max of 8 decimal places). how to do it? i searched for it and found this: …

Software Development c
Member Avatar for deceptikon
0
153
Member Avatar for anumash

I understood that when you pass the name of the array as an argument to a function we are actually passing the base address of the array, which inturn gets collected by a pointer variable and thus s[i]=*(s+i)=*(i+s)=i[s]. The problem begins when we turn to 2-D arrays. When we want …

Software Development c
Member Avatar for anumash
0
180
Member Avatar for notconfirmed

Hello, I have a application created in windows using c# language. Now my client wants to run the executable file on the centOS server. Do you have idea on how to run my executable file into centOS server?..please help me. I appriciate some suggestion. Regards!

Software Development c#
Member Avatar for deceptikon
0
1K
Member Avatar for boher

Hi I need a code block to accomplish the following task : There is a flolayoutpanel in my form with 3 panels in it. I want my submit button to count the panels and create a stopwatch control named after each panel. Here is what I have so far : …

Software Development vb.net
Member Avatar for Reverend Jim
0
197
Member Avatar for joel.hahn

How do i stop a running function using a button or menu. Do I use a try catch? for some reason its boggling me.

Software Development vb.net
Member Avatar for Reverend Jim
0
1K
Member Avatar for Suzie999

background. I usually test my code in both debug and release mode each time I make changes, but forgot for half a day and now I have errors. I had gotten carried away thinking I was in the zone, and left it in release mode, when I realized and tried …

Software Development api c++ gui queue windows-api
0
78
Member Avatar for azareth

I'm having this kind of error: *Could not find a part of the path.* For Each subfolder As String In Directory.GetDirectories(sourceDir) Dim destDir As String = Path.Combine(destinationDir, Path.GetFileName(subfolder)) If destDir = destinationDir & "\peanutButter" Then 'do nothing Else Directory.Move(subfolder, destDir) End If Next I suppose i get this error because …

Software Development vb.net
1
71
Member Avatar for <M/>

Is there a way to get Visual Studios for Mac without partitioning your computer and getting windows 8? If there is no way, can someone point out a tutorial in doing so? I can't find anything useful... (If i am unable to do so, i might as well get a …

Software Development visual-studio
Member Avatar for <M/>
0
169

The End.