Hi All, I have created an application that allows a user to select a diectory, where we parse the photos, and upload to a database. The issue that I am having is that I have a button on the form found in the newJFrame.java class called upload that when pressed will call a method from a class that has be initalized in the photouploader.java class. This class has the main function for the application. It is being used to initalize and instatiate all of my classes, such as: fileParser fp = new fileParser(); //create new fileparser fp.setFiles(matches); //send in all …

Member Avatar
Member Avatar
+0 forum 2

Im trying to call the method "public void insertCard(int p)" within the same class into the method " public void deposit (double amount) " My code for both methods is displayed below. the objective would be to have the deposit method return the last print statement if the card is not inserted/pin is not true. **Insert Card : ** public void insertCard(int p) { if (p == pinNumber) { card = true; System.out.println ("Hello " + firstName + " Welcome to LLS Bank!"); } else { card = false; System.out.println ("Incorrect Pin Number, Please Try again."); } } **Deposit Method: …

Member Avatar
Member Avatar
+0 forum 1

I have 2 classes. AddressBook and SingleAddress. AddressBook is supposed to contain SingleAddress. I'm omitting the #include and some of the extra functions. Here's SingleAddress.h class SingleAddress { private: string lastName,firstName,strAdd,city,country,email; int postCode,homeNum,mobileNum; public: SingleAddress( string s1,string s2,string s3, string s4,string s5,string s6, int i1,int i2,int i3); string toString(); }; SingleAddress.cpp SingleAddress::SingleAddress(string s1,string s2,string s3,string s4,string s5,string s6, int i1,int i2,int i3){ firstName=s1; lastName=s2; strAdd=s3; city=s4; country=s5; email=s6; postCode=i1; homeNum=i2; mobileNum=i3; } string SingleAddress::toString() { stringstream info; //last name, first name, street address, city, country, postal code, home phone number, mobile phone number, email address info<<"First name: " <<firstName <<"\nLast …

Member Avatar
Member Avatar
+0 forum 3

Here's my assignment question: > **Develop a Payroll class that consists of two user-defined methods, namely calculateNetPay() and printOutput() methods. The calculateNetPay() method is used to calculate the employee's net pay, as the formula follows: > > Net pay = gross pay - state tax and federal tax > > In the same class, print the net pay value in the printOutput() method. > > Then, develop a PayrollDemo class which consists of the main method. Inside the main method, prompt a user to insert employer ID, gross pay, state tax, and federal tax. Create an object to invoke calculateNetPay() …

Member Avatar
Member Avatar
+0 forum 8

Thanks for the support! I have been working on a program with 7 classes, one the main and one starts the program, and I have been troubleshooting for a few hours trying to see why for one of the output constructors I'm not getting the classes to update the output. A class called OfficeVisit calls the class Appointment, which then calls the classes MyDate and MyTime to output their data input by the user back through OfficeVisit's output cosntructors. But I'm not getting the right output for some detail(s) that I can't find. While other classes that use MyDate and …

Member Avatar
Member Avatar
+0 forum 1

Hi all, Requirement: - I have a perl script that I need to run for several hours, for a performance test. - I would like to create a second script in ANSI C to call the perl script. The C script should be able to parse any of the text output from the perl script at run time, one line at a time. - This C code will be used by the performance tool, Loadrunner. The processed output will be used as real time performance statistics of a database. - I do not want to have to rewrite/port the entire …

Member Avatar
Member Avatar
+0 forum 2

Hey there, Just hit a road block in my assignment. I won't concern you too much with the assignment itself but it's basically a number input operated menu with option's like "Display employee details" & "Input pay details." I'm up to a part where I need to get the section "Create Employee ID" working. Basically what it want's me to do is add a method to the class (MyString.java - seperate file to main assignment) called 'CreateID()' and this method's job is to accept lastName as a parameter and return it as a string to the empID() field. I'm using …

Member Avatar
Member Avatar
+0 forum 2

<?php function fun1($a,$b) { echo $b; } @fun1(123); //want to store 123 in $b without changing position of any argument...... ?>

Member Avatar
Member Avatar
+0 forum 4

I believe that my program in the attached file is almost finished. When I try to run the program,there are two error message that pop up. The error are the following: 1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup 1>c:\users\usr\documents\visual studio 2010\Projects\NEWLDIST\Debug\NEWLDIST.exe : fatal error LNK1120: 1 unresolved externals If you happen to know what is missing or needs to be changed,I would greatly appreciate the advice. This code is in C++ and I use MV C++ 2010 to run it

Member Avatar
Member Avatar
+0 forum 3

Hello everyone, I am a PhD student in Stockholm, studying VoIP technology. I am in the middle of writing my dissertation, about command line calling. As I'm doing my researches, I've already found some very interesting research material, such as this page: XxXwww.voip-sip-sdk.com/p_251-how-to-use-the-command-line-caller-example-with-ozeki-voip-sip-sdk-voipXxX (cancel the X-s) It would be great to find someone to discuss this program, or maybe a whole group, because it would really help me with moving on. Any advice is welcome! Thx gemma

Member Avatar
+0 forum 0

Hi All I am finding a solution for make a calls from pc. Let me to explain what I need to do exactly. <- What I have -> * I have a per recorded voice cut and I saved it on my pc. * I have a telephone numbers collection and those all numbers are local numbers. <- What I want to do -> * I need to make a call for that all numbers in my collection. I need to play that I saved voice track as my phone call. <- How I do That -> I need to …

Member Avatar
+0 forum 0

helo, my file r.csv is as follows 07 02 2011 09 05 2011 .. .. i don't know what is error. but the function is not being called.. [CODE] #include<stdio.h> #include<stdlib.h> #include<math.h> #include<conio.h> int calday(float,float); int main() {// main start FILE *in, *out; char *rdf,*wdf; char day[10],mon[10],year[10]; float Day,Mon,Year; rdf="A:\\r.csv"; wdf="A:\\mizoout.csv"; in = fopen(rdf,"rb"); out = fopen(wdf,"w"); if(in == NULL) { printf("Cannot open input file.\n"); exit(1); } if(out == NULL) { printf("Cannot open output file.\n"); exit(1); } fprintf(out,"%s\n","day,month,year"); while(fscanf(in,"%s %s %s\n,",&day,&mon,&year)>0) { //while start Day = atof(day); Mon = atof(mon); Year = atof(year); calday(Day,Mon); fprintf(out,"%f,%f,%f\n",Day,Mon,Year); } // while end printf("\nFile …

Member Avatar
Member Avatar
+0 forum 14

I have created a JFrame contaning a JTabbedPane. What I am trying to accomplish is the changing of tabs within my 'addCustomer()' class via an ActionListener. What I was trying was to call the method 'setTab(int c)' located in my 'BoatLog()' class, from my 'addCustomer()' class to set the index value of the private variable 'tabbedPane'. I want to be able to press the 'addBoat' button to switch to the tab of index value of 1. The following are my two classes. [CODE=java]package boatlog; import javax.swing.*; import java.awt.*; import java.awt.event.*; public class BoatLog extends JFrame { //Opens BoatLog class private …

Member Avatar
Member Avatar
+0 forum 3

Hi, I want to call my client at the overseas by using skype or any other software which able in the internet video call. The problem is: they don't need to see me. I want them to hear my voice, and I want to show my computer screen to them (I am running a software and presentation). I can use webcam and put it in front of my computer screen to capture my computer screen, but it doesn't look profesional. Do you know how to disable a webcam output and show them the monitor screen instead? thanks

Member Avatar
Member Avatar
+0 forum 2

Hello,im a beginner in c.How do we call a function in the main function?

Member Avatar
Member Avatar
+0 forum 2

struct Employee { /* Employee details */ char name[MAX_NAME_LENGTH+1]; /* name string */ char sex; /* sex identifier, either 'M' or 'F' */ int age; /* age */ char job[MAX_JOB_LENGTH+1]; /* job string */ struct Employee *prev, *next; }; static void menu_add_employee(void) { static struct Employee *employee_list = NULL; { struct Employee *new; new = (struct Employee *) malloc ( sizeof(struct Employee) ); strcpy (new -> name, "Sadra Mostashar"); new -> sex = 'M'; new -> age = 20; strcpy (new -> job, "Student"); /*add first employee to doubly linked list*/ new -> prev = NULL; new -> next = …

Member Avatar
Member Avatar
+0 forum 1

Hi all, I am trying to rotate adds that are from tradedoubler !! I have created a mysql db as follows id,add,link,title and i can succesfully connect via a php include and rotate my query to show a different add each time the page loads [code] $sql = mysql_query("SELECT * FROM table ORDER BY RAND() LIMIT 0, 1"); [/code] The problem im having is that add itself is not showing, Im new to php, but im learning each day new coding skills. I am yet to start using javascript. Is there anyone here that could help with successfully calling a …

Member Avatar
Member Avatar
+0 forum 1

OK, so I have this project to do and cant figure it out. I am not positive on calling functions correctly and I am kind of lost when it comes to parameter passing. So my program needs to read a text file 1 integer at a time, find out if it is odd or even, add 1 to either odd_tally or even_tally, and then display the total # of even and odd integers. I am only getting 3 Warnings right now and it is for unitialized variables (in_val, odd_tally, even_tally) [code]#include <iostream> #include <fstream> using namespace std; void examine(int, int, …

Member Avatar
Member Avatar
+0 forum 1

Hey guys, I have some code: [code='python'] import urllib2 as url import subprocess import os webs=open("url.txt",'r') read_webs=webs.read() def get_html(): try: req=url.urlopen(read_webs) res=req.read() return True except: print("<Error reading from the website>") def get_command(): if True: for x in res: if(x!='<'): command+=x else: break determine() command="" def determine(): format=command[len(command)-3:] print format get_html() get_command() [/code] The problem is: [quote] >>> Traceback (most recent call last): File "C:\Documents and Settings\Sravan\My Documents\Sravan\PYTHON\Accepshun.py", line 32, in <module> get_command() File "C:\Documents and Settings\Sravan\My Documents\Sravan\PYTHON\Accepshun.py", line 18, in get_command for x in res: NameError: global name 'res' is not defined >>> [/quote] I understand that get_command() doesn't know …

Member Avatar
Member Avatar
+0 forum 4

The End.