132,726 Archived Topics
Remove Filter ![]() | |
I have to do this : Task 2 (23%): Write a function that prompts the user to input data for a new employee; the function should return an employeeType struct to the caller. Declare employeeType variables him and her in the main function. Call your function with actual parameter him … Software Development c++ | |
I've got a helper class to convert an enum into a list. [CODE] class EnumHelper { public static List<T> EnumToList<T>() { Type enumType = typeof(T); // Can't use type constraints on value types, so have to do check like this if (enumType.BaseType != typeof(Enum)) { throw new ArgumentException("T must be … Software Development gui | |
#include<iostream> using namespace std; { int main() //declare variables char total amount = ' '; int rate = 0; double registrants = 0; //determine if registrant cout << "Are you a seminar registrant: (Y/N)"; cin >> registrant; registrant = toupper(registrant); if (registrant == 'R') { //determine rate cout << "what … Software Development c++ | |
Hello, am new to the real programming but i have very much interest. As a first real java project am trying to develop a P2P network application which can be used for chatting, but the problem is: Should it load as a server.and if so how do i get it … Software Development client-server gui java socket-programming | |
Please, someone, help me out to check the errors in this code. What is the proble? I'm new to Java applet and I'm using notepad. I copied this code from a site to test but it is not working with me in the notepad and command prompt. import java.applet.*; import … Software Development java | |
Hello, I have writen a C++ program to read 37 text files. The content of the text file is interger numbers. The program was working fine in VC++ 6.0. Now i could not find the free version of VC++ 6.0. I downloaded the free version of VC++ 2008 expression edition … Software Development c++ file-system | |
I am reading the book "Python Programming 2nd Ed. for the absolute beginner" and I am having some trouble with a very simple program. I was instructed to download and install pygame and the livewires package as I have done. This program is meant to display a grahical window, that's … Software Development python ![]() | |
[B] Hi, i written a code for delete particular file which it was saved in some folder "temp" which it was shown in the below. [CODE] try{ java.io.File objFile = new java.io.File("F:/temp/FirstPdf-022.pdf"); objFile.delete(); } catch(Exception e) { } [/CODE] In the above code, i delete the file "FirstPdf-022.pdf". But i … Software Development file-system java pdf | |
hello guys, I am trying to add the harvest plugin and do a checkout using that via cruisecontrol, this is how i have written the config.xml file <cruisecontrol> <project name="harvestTest" buildafterfailed="false"> <plugin name="Harvest" classname="net.sourceforge.cruisecontrol.sourcecontrols.AllFusionHarvest" /> <plugin name="harvestbootstrapper" classname="net.sourceforge.cruisecontrol.bootstrappers.AllFusionHarvestBootstrapper" /> <listeners> <currentbuildstatuslistener file="logs/harvestTest/status.txt"/> </listeners> <!-- Bootstrappers are run every time the … | |
Splitting data using xslt here my case I have structure like this <header> <F1> <F2> <F3> <item1> <F1> <F2> <F3> <item2> <F1> <F2> <F3> <item3> <F1> <F2> <F3> <item4> . . . . <item n> the target i want to create is in the first file <header> <F1> <F2> <F3> … Software Development data-structure xml | |
[B] Hi guys, [CODE] if(IsColor.equals("Y")) cell.setBackgroundColor(new Color(240,240,255)); table.addCell(cell); [/CODE] This [U]cell.setBackgroundColor(new Color(240,240,255));[/U] is for set back ground color as a blue. I need Green color. So, is there any values for green. Please contribute your advice... [/B] Software Development java | |
Hi, I need help. I've been looking all around and i have not found a appropriate solution for my question. Here it is. I've a database table which has the field "username" and "password" and within the "username" field, there would be users like "admin","cashiers" etc. I would like to … | |
Hi, I have been wondering about how implementation/extension works : Let me give you an example and then ask you my question : [CODE] public abstract interface A_int {} public abstract interface B_int {} public class A implements A_int, B_int {} public class B extends A implements A_int [/CODE] okay … Software Development java | |
Hi,code anyone could tell me what is the difference between these two I know that the C# compiler makes a managed code and C and C++ compilers make unmanaged codes but what is the exact difference? Software Development | |
Hey all, i am currently working on a system that detect the value input and carry out an action is the value is accepted but rests everything when the value is denied. i have an algorithm but i don't seem to be able to transfer it into coding. Start. Set … Software Development c++ | |
I can use vb.net or c# on this part of the project and i was hoping someone could tell me a little about updating an active directory field. i found in searching system.directoryServices in google this bit of vb code. user.Properties("title")(0) = employeeTitle.SelectedItem.Text which i think is this in c# … Software Development | |
Hy everybody, I want to use Directx 10 to create 3d things in c++. I download it but it doesn't have this files d3dx10.h d3dx10async.h d3dx10core.h d3dx10math.h d3dx10mesh.h d3dx10tex.h I don't want to download it again. So who can send me those files Thanks Software Development c++ | |
[CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace DataClerk { public partial class Form3 : Form { public Form3() { InitializeComponent(); } private void btnClear_Click(object sender, EventArgs e) { txtPNo.Clear(); txtPName.Clear(); txtSiteName.Clear(); txtJCNo.Clear(); txtRequired.Clear(); } private void btnSave_Click(object sender, EventArgs e) … Software Development open-source | |
Helps to filter objects by interfaces and annotations their contains/implements with respect to parental relations. Software Development java | |
I'm doing a project on geometric hashing. Of which i am unsure about the basis generation (meaning, finding only a pair coordinates that coincide with the X-axis) from all the invariant points in the coordinate file of a given 2D model which would have been hashed already. This case being, … Software Development java | |
Hello everyone hope all is well. So I'm learning java and been at it all night and this is my last hope. I can't figure out why a certain part of my code is not being executed after the conditions of my if statement is true. [CODE] /** * @(#)mathsoftware.java … Software Development java | |
ola, i need help fast plz, the printing function in java .print() works i.e. [CODE] jtextarea.print(); [/CODE] the problem is, if the jtextarea is longer than 1 page it will print the extra pages on some computers and not on others. I thought it a printer setting, but when the … | |
There will be two posts minimum... First, I'll refer you to the Knowledgebase Articles that give the needed information, and second I'll give you code samples to run a report given the methods I use. Specifically, I access a SQL or Access database via ODBC, but either database will work … Software Development asp pdf visual-basic | |
I have several output files (*.out) contain a lot of information. I would like to have a program can just sort specific data from each output file and save them to the same filename with txt extension file. While reading each line (from *.out) if you are on a line … Software Development pascal | |
I want to make a c++ program which scan all drives and generate list of all files and folder. how can i do it in c++? Plz help me...... | |
In c programming language, When the compiler compiles a program, the obj file is created. When that object file is run, an .exe file is generated. That .exe file contains the machine language instructions that are understandable by the underlying processor. If we run that .exe file on another kind … Software Development java | |
Hey there. I have a project that i am working on that goes along the lines of this: We have a program that records customers and dvds for a local dvd store. This program must be able to enter New Customers , Search Customer's , Modify Customer Details and Delete … Software Development pascal | |
The objective is to add all the prime numbers before an arbitrary input. I am wondering what exactly this person has done through this code. I am not this advanced, and I do not how to work with particularly the int[] a variable. What is the int[] a command called? … | |
[CODE] public static void main(String[] args) { int[] out; for (i=0;i<args.length;i++) { String number_string=new String(); if(args[i].equals("-i")) { if(i+1<args.length) { i++; number_string=args[i]; } StringTokenizer number=new String Tokenizer (number_string,','); int chip_number=number_string.replaceAll("[^,]","").length(); chip_number++; int k=0; while (number.hasMoretokens()) { number_int[k]=Integer.parseInt(number.nextToken()); k++; } } } for(i=chip_number-1;i>=0;i--) { for(j=0;j<number_int[i];j++) { out[j]=j; } //should be a double … Software Development java | |
actually im starting to using C++ in image processing. i need some tips on template matching using C++ . For the template matching, what concepts that need to be used and how????? Please help meeeeee......Im very very early on this... | |
Anyone know how to get a third party application's installation directory? Software Development vb.net | |
I am a newb, do not go to college and am learning Java on my own time. This little project is a learning exercise so I ask that any help just points me toward a right direction. It is a character generator for a table top game, that may or … Software Development java linked-list | |
I have to make a program that read this : (name) (test1..2..3...etc) Johnson 85 83 77 91 76 Aniston 80 90 95 93 48 Cooper 78 91 11 90 73 Gupta 92 83 30 69 87 Blair 23 45 96 38 59 Clark 60 85 45 39 67 Kennedy 77 … Software Development c++ | |
I have an assignment where I have to have seven different lottery numbers ranging from 1 to 35. A separate powerball number should also be generated. The powerball number should be within the range of 1-10. I have to write a java program that gives eight sets of seven numbers … Software Development java | |
Hi All, I am trying to do a record search feature in my datagrid, but I can't find any reference for this. What I want to do is I can search any of the row that contain the text that type in TextBox1 by clink on Button1. Anyone can help … Software Development vb.net | |
Hi everybody, I would like to know how can i read the header of all sort of of files. to be more specific, i want to write a function in c# that returns header of any local file. I wanna call it like this giveMeHeader("c:\folder\mytextfile.txt") or giveMeHeader("c:\folder\song.mp3") and that returns … Software Development file-system | |
Hey everyone I have been working on this problem for awhile now and I am pretty stuck in my code...I don't think I approached it the right way. It isn't complete, but I have been staring at it for about an hour now and also looking through the web to … Software Development c++ | |
Hello all...incoming newbie question. I'm new to building desktop apps after a couple of years using ASP.NET online. I'm using MS Visual C# 2010 Express to play around and learn with. In order to test something that would be of real use to our company I want to be able … | |
Hi, I'm doing some stuff about stacks (classes). I've done a function, wich will invert the string, however, the VC++ gives a dumb error and I don't know why. I have alot of libs so, i think it's not because of that. Anyway heres the error: 'CPilhaInteiros::Inverte' : cannot convert … Software Development c++ | |
I really do apologize but I didn't know what part of the forum to post this in, and tutorials didnt have a post new thread link. But I noticed most beginners are still trying to understand how file processing works, streaming I/O to a file, read/write etc. So I wrote … Software Development c++ file-stream | |
Hello everyone. I am trying to write a simple program that shows me at a glance what services were given to my clients over the last year. I am trying to teach myself C++ as I go. The problem I am having is reading a text file into a class. … Software Development c++ file-system | |
Alright, I'm pulling hair out of my head trying to figure this out. I have Data coming in through a serial port and it consists of pretty much all numerical values except for a few begining response characters. Its a Load Cell which spits out Tension in Pounds. I'm making … Software Development vb.net | |
I think I found a bug in the combobox control. I can get the combobox.selectedvalue to be different from the value shown in the combobox. Try to run the code and see for your self how it acts. When running the form I have included a description of how to … Software Development vb.net | |
I am a new student using MS Visual C# 2008 Express Edition. I am trying to run an example from my textbook. The VS new console application creates the following code and I add the new code as per my comment below: I get the following error twice: Error 1 … | |
I need code to generate a random number between -95 and 95. The code I'm currently using is seeded with the time, so when I call it over and over again rapidly, my cube (part of a game I'm working on) goes left to right, then starts over. Could someone … Software Development c++ | |
Can somebody take a look at these and tell me why the boat class will not inherit from the transport class, i keep getting these errors, i have the two classes in the same source file folder, ive tried putting them both together with no luck either.. help !! error … | |
I need to do some math operation in my code. I'm doing something like this: [CODE] kapaerror_list[i] = sqrt(4*((LDerror_list[i])**2)*((LDmean_list[i])**2) - (error_list[i])**2) print "%s\t%g\t%g\t%g\t%g" % (indexvalue_list[i],mean_list[i],kapa_list[i],LDmean_list[i],kapaerror_list[i]) [/CODE] but i'm getting the following error: print "%s\t%g\t%g\t%g\t%g" % (indexvalue_list[i],mean_list[i],kapa_list[i],LDmean_list[i],kapaerror_list[i]) TypeError: float argument required The funny thing to me is that when i erase … Software Development python | |
In my code below, I want to display the text contained in the variable finalscore. I know how simple it sounds, but I can't figure it out. Thanks! [code] #include <glut.h> #include <cmath> #include <cstdlib> #include <time.h> #include <string> using namespace std; GLfloat tplayer; GLfloat tobject; time_t Start_t, End_t; double … | |
I am trying to setup a simple dll that will allow me to run C++ code from Java, to start I chose to create the function HelloWorld, I can get the library to compile and load but when Java calls the native method "hello()" it throws the exception java.lang.UnsatisfiedLinkError. How … Software Development java |
The End.