132,726 Archived Topics
Remove Filter ![]() | |
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 … | |
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 | |
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 | |
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++ | |
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 ![]() | |
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++ | |
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 | |
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 … | |
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 | |
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++ | |
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++ | |
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 | |
What are the drawing functions in Java If possible explanation of these functions:icon_rolleyes: Software Development java | |
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++ | |
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# | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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, … | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 … | |
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 | |
![]() | 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 … ![]() |
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 | |
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 | |
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 | |
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 | |
[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 | |
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 | |
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 | |
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 | |
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 … | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 … Software Development microsoft-office open-source visual-basic | |
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++ | |
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 |
The End.