132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for shyla

i am having a problem to write the code for a project that i have i need to get the label to the picture attached to count how many oval and rectangle are in the picture i have the code for the rest i just cant figure how to arrange …

Software Development gui java
Member Avatar for JamesCherrill
0
274
Member Avatar for tracydo

I compiled this program with no error, but when I run it give me some kind of problem where I have: idNumber = inFile.nextInt(); //student ID number. Appreciate any help. Thanks [CODE] /* *Description: Writing own method, Switch Selection Control, String,Accumulating, *Counting method, array base on last reviews from previous …

Software Development file-system java
Member Avatar for jon.kiparsky
0
2K
Member Avatar for xanawa

Hi i have two values of type dateTime [CODE]DateTime dateOfEvent = Convert.ToDateTime(dtpReservationDate.Value.ToLongDateString()); DateTime timeOfEvent = Convert.ToDateTime(dtpEventTime.Value.ToLongTimeString());[/CODE] now i would like to assign these date and time to one variable of datatype dateTime. How can i do so? [COLOR="Red"]DateTime dateTimeOfEvent = ??????[/COLOR]

Software Development
Member Avatar for xanawa
0
148
Member Avatar for sha11e

I've seen some programs made with ncurses, and I think it would be really cool to use it in my project for school. Problem is, I have no idea how it works and can't seem to find much, if even anything, about it. Can someone maybe help me a bit? …

Software Development c++
Member Avatar for L7Sqr
0
80
Member Avatar for jasonchild

I have an XML page with the XSLT embedded in the file. I cannot have an external file for the XSLT in this application. Additionally I must reference the stylesheet in a way that the XML file's name can change. I can do this with... [CODE]<?xml-stylesheet type="text/xsl" href="#mySheet"?>[/CODE] ...where... [CODE]<xsl:template …

Software Development xml
Member Avatar for _gabe_
0
138
Member Avatar for apanimesh061

1.[CODE]int _tmain(int argc, _TCHAR* argv[])[/CODE] 2.[CODE]wprintf(L" ----------\n");[/CODE] This is syntax that I get when I make any Win32 Console Application in Visual C++. I cannot understand what are _tmain(), argc, _TCHAR* argv[]. Till now I have been dealing with void main() and int main(). I also want to know what …

Software Development c++
Member Avatar for Narue
0
193
Member Avatar for vedro-compota

Hello, athletes and champions ! )) Please tell me - what's wrong here - [CODE] public class LinkedSet<T> : ISet<T> { public LinkedListElement<T> Root; public LinkedListElement<T> Focus; public class LinkedListElement[B][U]<[COLOR="Red"]T[/COLOR]>[/U][/B] { public LinkedListElement(T value) { this.Value = value; } public T Value; public LinkedListElement<T> NextElement; public LinkedListElement<T> PreviousElement; } } …

Software Development
Member Avatar for vedro-compota
0
759
Member Avatar for Howdydoody

I have this program and im trying to get the addVertex method to access the list within the class and return the object "Vertex" whenever i use the brackets. Everything works fine but i cant modify the structure now when i use the brackets. I get an error dealing with …

Software Development algorithm c++
Member Avatar for Howdydoody
0
108
Member Avatar for lochnessmonster

I dont understand how the C/C++ language is portable? 1.) What makes a program compilable on 2 different O/S's? 2.) Doesn't this depend on the O/S manufacturer? How does Microsoft do this? 3.) What determines wether a language is portable or will only work on one operating system?

Software Development c++ operating-system
Member Avatar for JasonHippy
0
497
Member Avatar for maybnxtseasn

Is there ANY EVER reason why i would return an object or variable by reference? to me this doesn't make sense and is very bad.

Software Development c++
Member Avatar for Narue
0
160
Member Avatar for maybnxtseasn

i have a question where i should place #includes in a file? Here is what i tend to have example.h #include <iostream> #include <string> example.cpp #include <iostream> #include "example.h" ------------------------------------------------ Is This what i want? example.h #include <iostream> #include <string> example.cpp #include "example.h" What should i strive to achieve? 1.) …

Software Development c++
Member Avatar for Narue
0
112
Member Avatar for jeff4L

I'm suppose to translate a virtual address to a physical address with the use of a fully-associative page table. It compiles but it won't run. Can anyone help me and point out the errors :P THANK YOU! [CODE]# include<stdio.h> # include<stdlib.h> /* Declare global vars */ int ms; int ps; …

Software Development c
Member Avatar for abhimanipal
0
246
Member Avatar for MSoft

What are the drawing functions in Java If possible explanation of these functions:icon_rolleyes:

Software Development java
Member Avatar for cretaros
0
98
Member Avatar for clickspiker23

I am having trouble on figureing out on how to return more than one value for x and Y. I know you can only have one return statement but i need to return a value for x and y. I am a little lost on how to do this. This …

Software Development c++
Member Avatar for JasonHippy
0
140
Member Avatar for sachintha81

I want to add a custom configuration section to my App.Config file in my C# 2010 project. I want the section to look like the following. [CODE]<DmModules> <Module Name="Module1"> <add key="DbType" value="..."> <add key="ConnType" value="..."> </Module> <Module Name="Module2"> <add key="DbType" value="..."> <add key="ConnType" value="..."> </Module> </DmModules>[/CODE] Of course there can …

Software Development c#
Member Avatar for sachintha81
0
319
Member Avatar for novice20

Hi all, Is there any way to do forward referencing or function prototyping in python..? Being an interpreted language, is lack of forward referencing a drawback of python?

Software Development python
Member Avatar for novice20
0
4K
Member Avatar for rithish

consider a instance jtextfield t=new jtextfield(); jtextfield t1=new jtextfield(); jtextfield t2=new jtextfield(); i want to get the values of textfield t and t1 and display in t2 like i want to add values of t and t1 and store in t2

Software Development java
Member Avatar for JamesCherrill
0
161
Member Avatar for e-papa

I've tried to make a program that will sort the results of a competition, by asking the user the number of competitors, then the name and score of each one. It worked but now i have to make it recognize when two or more people get the same score (that …

Software Development python
Member Avatar for e-papa
0
221
Member Avatar for Insensus

Hello there forum, After a pretty thorough C++ course I've tried my hands at coding an actual project but have stumbled on a pretty big problem and here I am asking for your help. What I'm trying to make right now is a class which communicates with a gameserver through …

Software Development c++ data-structure xml
Member Avatar for Insensus
0
150
Member Avatar for thetwig

Hey guys, I have an integer validation problem.. i wanna validate integers for fractions where the numerator must be 0 <= num <= 20, and the denominator must be 1<= den <= 20.. and later on i want to multiply them together and simplify, but only the validation has a …

Software Development c
Member Avatar for BarSed
0
158
Member Avatar for lynnajoe

Hi, I have checked examples and tutorials but never seem to get a direct answer to a couple of questions. When using a Gui with a JButton (Netbeans)where does the code for the array go in order to be displayed? Here is the code for the array and I just …

Software Development gui java
Member Avatar for JamesCherrill
0
97
Member Avatar for KazenoZ

Hello, I've been looking into implementing a simple networking option to a program I'm working on, and have looked around at what my options are. The program is made in Managed C++(.NET), and so far have worked great. Browsing my options, I've found that .NET is also capable of networking, …

Software Development asp.net c c# c++
Member Avatar for KazenoZ
0
224
Member Avatar for yongj

I'm trying to create a C console program that produces a directory listing (one filename per line) of all files matching a specified filename pattern. I'm kind of clueless as to where to start and was wondering if someone could give me a boost? I'm mainly a C++ coder but …

Software Development c
Member Avatar for Ancient Dragon
0
164
Member Avatar for akki_k

I want to create a file by entering its name at runtime through command line argument..But i am not getting any idea about how to do that?? Please provide some help.. THANKS

Software Development java
Member Avatar for JamesCherrill
0
114
Member Avatar for lochnessmonster

log.h [CODE] namespace stuff { class log { .......... friend std::wostream& operator<<( std::wostream& oss, const log& error ); }; } [/CODE] log.cpp [CODE]std::wostream& stuff::operator<<( std::wostream& oss, const stuff::log& error ) { oss << log.m_message; // log.m_message is a std::wstring return oss; } [/CODE] 1>c:\users\oso\documents\visual studio 2010\projects\moduleinjector\moduleinjector\cdllinjection.cpp(147): error C2679: binary '<<' …

Software Development c++ visual-studio
Member Avatar for NicAx64
0
133
Member Avatar for smrati.katiyar

i have written a class to add matrices ,line 51 of the code has problem. debugger is showing segmentation fault there . please suggest the correction. [CODE] #include <iostream> using namespace std; class mat { int row; int column; double **a; public: mat(){} mat(int r,int c) { row = r; …

Software Development c++
Member Avatar for smrati.katiyar
0
122
Member Avatar for akki_k

import java.lang.reflect.*; import java.awt.*; import java.lang.*; class SampleField { public static void getField(Class c) { //Class c= Class.forName(s); Field f[]=c.getFields(); for(int i=0;i<f.length;i++) { System.out.println(" "); Class type=f[i].getType(); System.out.print(type.getName()); System.out.print(""+f[i].getName()); } } public static void main(String... s1) { try{ Class c= Class.forName(s1[0]); getField(c); }catch(Exception e){System.out.println(e);} } } I have written the …

Software Development java
0
65
Member Avatar for vedro-compota

hi there!) mates, I had a class - something like that - [CODE]public class asd() { public int filed; }[/CODE] please tell me - what is the difference between next two ways of memory allocation (as I undestand they both can be compiled...) - 1) [CODE] static void Main() { …

Software Development
Member Avatar for vedro-compota
0
96
Member Avatar for oliviars22

I need to read data from a file into an array of structs. The info is arranged in the file like so... Spear of Extreme Whaling January 1851 Captain Ahab Each member of the array has a name, month, year, and first and last name of creator. This is the …

Software Development c++ file-system
Member Avatar for thelamb
0
259
Member Avatar for chester1908

Hello all. I seriously need some help with eclipse for C installation because i haven't got this stuck and angry since 10 years ago when i was a kid and got my first pc,and couldn't install audio drivers :P. Okay,lets get to the point.Here are the issues: I used to …

Software Development audio c ide
Member Avatar for yashsaxena
0
203
Member Avatar for shawn130c

Hello, I need help saving data into an access 2007 database from a program created in vb 2008. I am making a basic "game" that allows you to move a "robot" up,down,left, right and will save the movements/positions into an access 2007 database. I already have the basic movement created …

Software Development microsoft-access vb.net
Member Avatar for shawn130c
0
230
Member Avatar for ghost_from_sa

Hi guys, Im pretty dam stuck at the moment on an assignment Im meant to do. Its my last question so everything is pretty laid out, but the question (to me is not useful) so if you could just help me out it'd be much appreciated Ok so what i …

Software Development c++ oop
Member Avatar for ghost_from_sa
0
978
Member Avatar for msqueen082

Hello In my code I am trying to come up with the following messages using a try/catch Unhandled exception has occurred in your application. If you click continue, the application will ignore this error adn attemp to continue. If you click Quit, the application will close immediately. conversion from string …

Software Development vb.net
Member Avatar for msqueen082
0
160
Member Avatar for adot76

I cannot figure out number 3 and 4. Median and standard deviation. I think i am close but not getting the right answer. Any ideas? Thanks. /* 37 April 2011 Assingment: Project 2 I revision 1,2,5,6,7 and comments and formatinng done.. need 3,4 Description: Implement a menu system managing an …

Software Development c
Member Avatar for abhimanipal
0
984
Member Avatar for srw0801

Hello, so I'm fairly new to python and I have become stumped on this one problem. As much as I would like you to solve the problem for me, I do not want you to do so without explanation, I would much rather have a step by step procedure. After …

Software Development gui mathematics python
Member Avatar for srw0801
0
442
Member Avatar for CrazyProgrammer

Hi, sorry I have been trying to get my head around the simple concept of dll files what they are used for and please don't give me the answer that it is a dynamic link library that blah blah please not that answer that doesn't really tell me much :( …

Software Development
Member Avatar for gusano79
0
249
Member Avatar for rithish

[CODE]import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public abstract class login extends JFrame implements ActionListener { public static void main(String[] args) { JTextField firstField = new JTextField(10); JPasswordField middleField = new JPasswordField(10); JButton b1=new JButton("ok"); JLabel firstLabel = new JLabel("username", JLabel.RIGHT); firstLabel.setDisplayedMnemonic('F'); firstLabel.setLabelFor(firstField); JLabel middleLabel = new JLabel("password", JLabel.RIGHT); …

Software Development java java-swing
Member Avatar for rithish
0
167
Member Avatar for Akill10

Hey, I'm not too sure what the problem is here, I have never had trouble using fscanf before. The following shows the code I use to check the file, and the result. [CODE]while( true ) { int vals_read = fscanf(fileHandle,"%[^;];%s",&name,&pass); if( vals_read == 2 ) { // process the line …

Software Development c++ file-system
Member Avatar for Akill10
0
171
Member Avatar for zachattack05

Anyone know the rule for naming fields with the abbreviation "ID?" I notice that MS is inconsistent, they have "PlatformID" and "ApplicationId." I thought the rule was is the abbreviation was 3 characters or more, only the first letter is capitalized. Like Guid instead of GUID?

Software Development
Member Avatar for zachattack05
0
107
Member Avatar for Joeflims

Hey everybody. I was reading some code on the website and I saw this: [CODE]with open(FILE) as number_file: lucky_numbers = [set(line.strip().split('-')) for line in number_file] [/CODE] What does "with ... as ..." mean? What is it used for? How is it used?

Software Development python
Member Avatar for Joeflims
0
138
Member Avatar for yongj

I've been trying to code an array where its size is dynamically allocated. It's been a while since I've coded and so I was wondering if you guys could give me some help? There's also a randomize function that allocates the array with a random set of numbers (the quantity …

Software Development c++ dataset
Member Avatar for ravenous
0
109
Member Avatar for Noxer

Im a fairly fresh programmer, and I often run into problems like most of us. Most of the time I get it solved in 10 minutes by some google power, but this time Im stuck for real (spent the last 4 hours looking around the web). I first ran into …

Software Development c++
Member Avatar for ravenous
0
626
Member Avatar for gedas

hey, i have been working on my final year project, the program is finished and now i have do the testing. i have finished black box testing but i have no clue how to do white box testing. i have looked around the web but there is only definition of …

Software Development java
Member Avatar for gedas
0
96
Member Avatar for shyla

i am trying to solve this question, second part of it 5b and is very confusing i cant show all the details on the form on the form [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace EmployeeExceptionDemo { public partial class …

Software Development gui
Member Avatar for ddanbe
0
166
Member Avatar for Learn_Pyhton

hii..m stuck in an issue...and need a help I have Try.c file having contents ValidateFunction() { ...... ...... print } .... I want to print data between the braces {....}. Also i do not want to read the contents of file line by line because file is of very big …

Software Development python
Member Avatar for TrustyTony
0
154
Member Avatar for croker10

Hi all, More of general question, than just about drop down objects, but that's where I noticed first, so I'm using that as my example. In the project I am working on, one of the programmers created a new drop down item using [CODE] new ListItem() {Text = "stuff", Value="someValue"}; …

Software Development
Member Avatar for croker10
0
140
Member Avatar for axn

Errors when compiling. its seem to be complaining about line 52 and i do not get output of second file.(data.words) strarray[numStrings++]=strdup(word); $ gcc -Wall -ansi prt.c -o prt In function ‘main’: warning: implicit declaration of function ‘strdup’ warning: assignment makes pointer from integer without a cast [CODE]#include <stdio.h> #include <stdlib.h> …

Software Development c
Member Avatar for Ancient Dragon
0
2K
Member Avatar for Qpido

Dear Helpful Members of Daniweb, I have been working on several projects to automate work in the company I am working for and have come to the following problem: I have a VBA6 program I have successfully programmed to calculate the costs of our fasteners and anchors, now it is …

Member Avatar for monarchmk
0
354
Member Avatar for C++ Beginner

Problem: Write a program that uses a loop to display the characters for each ASCII code 32 through 127. Display 16 characters on each line with one space between characters. I have tried solving this problem several ways. I either get blank screen or numbers 1-16. Can anyone lend a …

Software Development c++
Member Avatar for furyrichie
0
2K
Member Avatar for dyingatmidnight

Just when I think I understand this stuff some else crops up to bite me. This part was supposed to be the easy part of the overall project so this does not bode well... What am trying to do is create an array of 32 variables that will be filled …

Software Development c c# c++ visual-studio
Member Avatar for mike_2000_17
0
281

The End.