132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for pa_bruce_fan

Receiving error when compiling invalid operands of types `double[100]' and `double[100]' to binary `operator*' The code looks like as follows. Trying to submit for homework this evening, and I'm stuck!!! #include <cstdlib> #include <iostream> #include <fstream> #include <iomanip> using namespace std; int main(int argc, char *argv[]) { double employeeSalaryRaises[100]; double …

Software Development c++
Member Avatar for Akill10
0
115
Member Avatar for Nandomo

I am doing this silly program as practice but am having problems with the condition in the if loop... Please help me. The condition after the color question goes directly to its condition without accepting an answer. [CODE]// Add directories #include <cstdlib> #include <iostream> #include <sstream> #include <fstream> #include <iomanip> …

Software Development c++
Member Avatar for Nandomo
0
128
Member Avatar for bangor_boy

Hello all, I am writing a toString() i know how to do the basics off this but what im looking to know is how to put a line break between each set of information to get this public String toString() { return "ball pos:" + this.ball + "keeper pos:" + …

Software Development java
Member Avatar for jon.kiparsky
0
86
Member Avatar for Exercitus

Hello, I have a program assignment that is supposed to that converts decimal numbers to binary, hexadecimal, and BCD. I am having an issue with keep the leading zeros on the binary. I have used a recursive function to output a binary conversion. [CODE]#include <iostream> #include <iomanip> using namespace std; …

Software Development c++
Member Avatar for daviddoria
0
420
Member Avatar for buster2209

Is it possible to write to the windows dos screen and display the results in a GUI? eg; [CODE] Console.WriteLine("ipconfig"); Thread.Sleep(1000); for (int i = 0; i < 5; i++) { textBox1.Text = Console.ReadLine().ToString(); } [/CODE]

Software Development gui
Member Avatar for Diamonddrake
0
686
Member Avatar for ShadyTyrant

Recently I have been writing my own Python editor for fun. I have came pretty far but now I have some issues. My editor object is in my notebook but wont go to the bottom of my window. I can get it to expand across the screen but not down. …

Software Development python
Member Avatar for ShadyTyrant
0
105
Member Avatar for tonyfingures

Hi! Guys, My name is Tonie and i just joined Daniweb recently. I have a question that is puzzling me that i wanted to get input from other programmers. The questions is below. I have a friend who wants to have a party, lets call her Kim. She wants to …

Software Development java
Member Avatar for NormR1
0
1K
Member Avatar for eyeripper

Can somebody help on how to extract all the files with the index in the ALCHEMY version 4.1 of IMR. I'm trying locate the files stored in it but it seems like it is compressed in a .DAT file. Another thing: Is there a way for us to extract files …

Software Development vb.net
Member Avatar for eyeripper
0
100
Member Avatar for jtaylor-bye

Hi all this is my code :- [CODE]import pygame from pygame.locals import * from sys import exit from random import * pygame.init() screen = pygame.display.set_mode((640, 480), 0, 32) while True: for event in pygame.event.get(): if event.type == QUIT: exit() screen.lock() for count in range(10): random_color = (randint(0,255), randint(0,255), randint(0,255)) random_pos …

Software Development python
Member Avatar for redyugi
0
3K
Member Avatar for python_user

Hi guys, i have a problem here i have a situation where i need to save all the images opened using PIL I have no idea how to do without displaying images on screen one by one and saving them Can anyone please help how to save them without switching …

Software Development python
Member Avatar for python_user
0
5K
Member Avatar for NewOrder

the question is this. suppose that i have got rowstart=8 rowend=6 columnstart=8 columnend=8 b=0 [CODE] while(pieces[rowStart-b][columnStart]==null && pieces[rowStart-b][columnStart]!=pieces[rowEnd][columnEnd] && pieces[rowEnd][columnEnd]==null){ // CHECKS THE UPPER ROW. b++; }[/CODE]

Software Development java
Member Avatar for NewOrder
0
119
Member Avatar for Win Myat

I have a promblem with following case : i have a properties.txt that included: 10 Napier St. Palm Cove 350000 47 Darkien Cl. Smithfield Heights 265000 i want to write: On start-up, the program is to prompt the user for the property listings filename (the sample file provided is called …

Software Development c++
Member Avatar for Dazaa
0
7K
Member Avatar for Dazaa

Hi, I want to fill an array with enum Values but using integers in a loop. My set method accepts Enum types and not integers. But when I work with the enums I can use 0,1,2,3 etc. I am trying to fill a deck of cards using some loops. Is …

Software Development c++
Member Avatar for Dazaa
0
1K
Member Avatar for Mikahi

Hi experts, I'm total newbie with C# and I ran into challenge that must be simple to solve. I have defined several 2-dimensional arrays, named like Par1001, Par1002, Par1003 and so on. And now the challenge, how can I use a string variable to replace the 'Case' structure with function? …

Software Development
Member Avatar for mshauny
0
72
Member Avatar for nezbo

Hello guys I'm new to writing java but have some experience with other languages. I use Eclipse as my IDE but when i try to run a simple console program (exported to .jar using Eclipse) i am only able to run it from the command prompt. An example of a …

Software Development ide java
Member Avatar for NormR1
0
193
Member Avatar for N1GHTS

Hello, I have a problem with compiling my code... Platform: [b]Ubuntu Linux 10.04[/b] Compiler: [b]gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3[/b] IDE: [b]Netbeans 6.9.1[/b] My C program is required to exclusively deal with Unicode. I can use these functions just fine: [b][COLOR="Green"]wcscpy(), wcslen(), mbstowcs(), wcstombs(), snprintf()[/COLOR][/b] The problem seems to only be when …

Software Development c ide ubuntu
Member Avatar for N1GHTS
0
614
Member Avatar for flyingcurry

I have implemented a catch statement for both the InputMismatchException and the ArithmeticException, how come they are not working? Also, if the user enters "quit" for the numerator, the program should be able to exit. But my understanding is that as soon as the user enters something that is not …

Software Development java
Member Avatar for NormR1
0
208
Member Avatar for sera1989

Hi everyone. I'm a bit of a noob at C++, I took the first level of this class 2 years ago and I'm tying to remember everything. I'm having a problem with a program I'm trying to write. I need to average the grades of each student and then print …

Software Development c++
Member Avatar for Fbody
0
182
Member Avatar for ryan461

I'm learning perl, been reading some pdfs and such which doesnt really help sink the info. So i decided to do what I did to help me with python, build something of a poker game. The cards are successfully dealt, now im working on splitting up the card terms to …

Software Development perl
Member Avatar for mitchems
0
87
Member Avatar for .:Pudge:.

I am required to generate "n" random numbers of which each random number ranges from -10,000,000 to 10,000,000. I tried using rand() and changing the range, but it only has a max range of 32,000 or so. What is a good function or algorithm that I could use to achieve …

Software Development algorithm c++
Member Avatar for StuXYZ
0
383
Member Avatar for gayanthi

Hi. I'm relatively new to VB and I have a question that needs an immediate response.Can anybody help me with this.... Suppose a sequential file contains the information shown below. I need help to write a program to use the file and produce a new list where the teams are …

Software Development vb.net visual-basic
Member Avatar for codeorder
0
184
Member Avatar for abdelhakeem

Hello all, I'm very beginner in x86 assembly language, I saw that there are many assemblers avaliable, but which one to start with, regarding that I want to program in 32-bit pmode but without using any external APIs (e.g: Win32 as in MASM)... Thanks...

Software Development assembly
Member Avatar for abdelhakeem
0
114
Member Avatar for morancr

I'm taking a Java Class and this is the assignment: "..Modify your withdraw method so that it that checks the customers balance against a potential withdrawal. If the amounted requested for withdrawal exceeds the balance, deny the attempt to withdraw money and let the customer know." I have the if …

Software Development java java-swing
Member Avatar for jon.kiparsky
0
96
Member Avatar for mulevad

I am placing xml into a table in html and trying to sort based on a parameter, but my parameter's value is not being used. It uses the string "$sortkey" instead. Here is an xsl excerpt: [code] <xsl:for-each select="catalog/cd"> <xsl:param name ="sortkey" select="country"></xsl:param> <xsl:sort select="$sortkey"/> <tr> <td> <xsl:value-of select="title"/> </td> …

Software Development legal xml
Member Avatar for iceandrews
0
173
Member Avatar for apautz22

I'm having a problem with my code. I am doing [URL="http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=12&page=show_problem&problem=951"]Where's Waldorf[/URL] on the UVA site. I understand how I want to tackle this project, but am unable to get past a seg fault. My strategy is to pass the multi-dimensional char array of the search board to a function …

Software Development c++ ide
Member Avatar for apautz22
0
885
Member Avatar for Anon17

So I need to convert a hex string on my server which could contain any byte number from 0-255 into a byte to send it to my client. This works fine in most situations, but when converting to a byte with any hex between the range of 0x80 and 0x9F …

Software Development client-server
Member Avatar for Anon17
0
385
Member Avatar for doffing81

What do I need to do to make rules for user input? Say I want the user to choose a number 1-5. If they pick one, I want to go to the next step. If they don't I want to tell them that they have to pick a number between …

Software Development python
Member Avatar for snippsat
0
101
Member Avatar for acrocephalus

Hello, I have written this code, deleting those parts which are no needed to reproduce the error: [CODE]#! /usr/bin/env python # TestDialogs.py import wx, MySQLdb, wx.lib.intctrl, wx.grid ID_SPECIES=1 class SearchDlg(wx.Dialog): def __init__(self): wx.Dialog.__init__(self, None, -1, 'Search species', size=(400,400)) panel = wx.Panel(self, -1) vbox = wx.BoxSizer(wx.VERTICAL) hbox1 = wx.BoxSizer(wx.HORIZONTAL) hbox2 = …

Software Development python
Member Avatar for acrocephalus
0
243
Member Avatar for hidash_in

[B] hi all, i am trying to open a file with application using java. i faced many problems while processing it. 1. Using Runtime.getruntime.exec(); i faced the problem. i can open a file with application in the local system(server) where i have written the program. while by using the ip …

Software Development file-system java javascript
Member Avatar for Ezzaral
0
300
Member Avatar for JohnPhilipps

Good evening, I am trying to simply open a folder located on my local C:\ drive, to be exact just for testing purposes I am trying to open C:\temp folder. What I have is a JFrame with a single Jbutton and some code, however when I execute the button, nothing …

Software Development java java-swing
Member Avatar for ankurgecr
0
2K
Member Avatar for acrocephalus

Hello! I have designed a dialog that shows a wx.Grid with some data (full code at the end). Then, there is a search area. The other buttons are not working now. When you fill any search control with some data shown on the grid, it prints the index where the …

Software Development python
Member Avatar for acrocephalus
0
724
Member Avatar for itiwcsingkaww

[CODE]please help me in doing my project in one of my subject in college. it is all about getting the GCD of fractions... can anyone tell me the logic or the formula for getting it? tnxx in advance[/CODE]

Software Development c++ mathematics
Member Avatar for nbaztec
0
194
Member Avatar for ja0

Hi, I want to know how to get the total of rows (of myRead) after I executed: myRead = myCommnd.ExecuteReader(); The only way I get it is using a loop, but exist a command for that? Thanks!

Software Development c#
Member Avatar for ja0
0
133
Member Avatar for Talguy

I am trying to boost the performance of the startup of my realtime application. I have the interfaces laided out in a xml file that are parsed in and created into a data structure. Would it be worth while for me to struture my program so that once the interface …

Software Development c++ data-structure xml
Member Avatar for Talguy
0
87
Member Avatar for usustarr

I have a dynamic array which will be updated from a different test system. I am havign hard time with syntax. Can someone please help me here? Here is where I declare my vector [CODE]void TestSystem::Drive(U32 RunMode, U32 Options) { //U32 is unsigned 32 bit U32 condition; U32 i; U8 …

Software Development c++
Member Avatar for usustarr
0
238
Member Avatar for cableguy31

I'm writing a program that will parse and print packet information from a tcpdump file. One of the fields is the timestamp, which is in seconds. The program is reading the timestamp into an unsigned int type. I need to be able to convert the timestamp in seconds to a …

Software Development c++
Member Avatar for Ancient Dragon
0
147
Member Avatar for CPT

I need to implement a function which ads elements to a single linked list: -if the head(first element) of the list doesn't exist(if head is NULL), then the added(inserted) element becomes the head(the the data entered is of string type) -if the head already exists, insert it after the last …

Software Development c linked-list
Member Avatar for Ancient Dragon
0
158
Member Avatar for uan_Blr

Hi PERL-fans, I have a problem with an array while coding a histogram: The data is in an array [code=perl]@data[/code] I initialise my histogram array like: [code=perl]@histo=();[/code] Then, I loop over the datapoints and at each point compute in which bin that point would be: [code=perl] for(my $i=0; $i<scalar(@data); $i++){ …

Software Development perl
Member Avatar for uan_Blr
0
179
Member Avatar for Adrop

#include<stdio.h> #include<time.h> #include<stdlib.h> int paixu(int ,int);//洗牌声明 int main(){ int a[4][13],d,i,j,m,num=0,t=0,b[52]={0}; srand(time(NULL)); for(i=0;i<4;i++){ for(j=0;j<13;j++){ a[i][j]=j+1; } } for(;num<=52;){ d=rand()%52; for(m=0;m<num;m++){ if(d==b[m]){ break; } } if(m==num){ b[num]=d; switch(d/13){ case 0:printf("红桃");break; case 1:printf("方块");break; case 2:printf("草花");break; case 3:printf("黑桃");break; } num++; b[t++]=a[d/13][d%13]; printf("%2d%c",a[d/13][d%13],num%13==0 && num!=0?'\n':' '); } paixu(0,13);paixu(13,26);paixu(26,39);paixu(39,52); } }return 0; } int paixu(int m,int …

Software Development c
Member Avatar for Ancient Dragon
0
241
Member Avatar for packetpirate

I'm just starting to learn Java and I need help. I'm trying to draw a rectangle in an applet window and have it centered so that if the applet is repainted when it is resized, the rectangle will stay centered in the applet window. I know how to retrieve the …

Software Development java
Member Avatar for packetpirate
0
5K
Member Avatar for vihrao

I have problems in serializing a list. Here is my class: [CODE]public partial class ProblemType { private List<DateTimeType> dateTimeField; public ProblemType() { this.dateTimeField = new List<DateTimeType>(); } public List<DateTimeType> DateTime { get { return this.dateTimeField; } set { this.dateTimeField = value; } } } public partial class DateTimeType { private …

Software Development xml
Member Avatar for nick.crane
0
157
Member Avatar for Nathaniel10

Me Again! This program is for exercise 5) of chapter 9 in Stroustrup's book. It was a challenge for me. I gave up on trying to use [code]getline()[/code] because it required substantial parsing of the line before I could use the input. I will add it when I am more …

Software Development c++
Member Avatar for mrnutty
0
131
Member Avatar for aaronmk2

I'm getting error: no match for 'operator>>' in 'std::cin >> aTable[i][j]' for [CODE] #include <iostream> using namespace std; const int NUM_ROWS=15; const int NUM_COLUMNS=15; typedef int TwoDimArray[NUM_ROWS][NUM_COLUMNS]; void printTable(int rows, int cols, TwoDimArray aTable); int main () { int rows, columns; TwoDimArray aTable[rows][columns]; cout<<"Enter rows and columns"; cin>>rows>>columns; for (int …

Software Development c++
Member Avatar for Fbody
0
562
Member Avatar for saloth

Hi, i'm making a simple texteditor from VB6, and i use Visual C++ as my back end. i call a function where in I will read another text file and put it in a structure. this is the function: void loadR() { ifstream file; file.open("C:/CaseStudy/CaseStudy/Rsrvd.txt",ios::in); for (i=0; i<44; i++) { …

Software Development c++ file-system ios
Member Avatar for ftl25
0
194
Member Avatar for perryg30313

I have a combo box that needs to be autoupdatable. I know you can set the AutoCompleteMode to SuggestAppend and have the combobox suggest as you type values that are in a combobox's items list. My question is this, Is there a way to have this same functionality happen with …

Software Development dataset vb.net
Member Avatar for perryg30313
0
350
Member Avatar for Bhargavi V

My main idea is to link the three combo boxes I had taken appSet, app, package comboboxes Now when I select one iten in appSet then the remaining two comboboxes should show the data related to the selected item in the appSet and when I select one item in the …

Software Development dataset finance gui java java-swing session
Member Avatar for Bhargavi V
0
941
Member Avatar for TommyTran

Hi everyone, I'm back after 4 months without Dani! Today i just came across a problem about programming. The application I'm doing requires me to "enter the size of an array in a TEXTBOX, then click a button, a list of random number would show up, then re-arrange from Lowest …

Software Development vb.net
Member Avatar for cellus205
0
174
Member Avatar for Nidhi S.

how should i retrieve my images that i stored in column having Attachment datatype in access 2007 in my java program??

Software Development java
Member Avatar for Nidhi S.
0
87
Member Avatar for low_coder

Hey everyone! I'm writing some program and im using a vector tp hold pointers to objects.. i will create new instances of the objects and my code should automatically destroy each object present in the vector. theres three types of classes stored in the vector : BaseClass, ChildClass1(inherited from BaseClass) …

Software Development c++
Member Avatar for low_coder
0
121
Member Avatar for Pari13

Hi All, So much Helping Deniweb in during interuption in my code. Again for small query I hope it will give enjoyful result to Me. I want reguler expression which having "Only Numeric-Positive-Non Zero-and Must Non Empty" value. I have all ready Done expression "^[1-9]+[0-9]*$" giving result for Positive-Non Zero …

Software Development
Member Avatar for Pari13
0
950

The End.