132,726 Archived Topics
Remove Filter ![]() | |
Create a non-GUI based Java application that calculates weekly pay for an employee. The application should display text that requests the user input the name of the employee, the hourly rate, and the number of hours worked for that week. The application should then print out the name of the … Software Development gui java user-interface | |
• Create a non-GUI based Java application that calculates weekly pay for an employee. The application should display text that requests the user input the name of the employee, the hourly rate, and the number of hours worked for that week. The application should then print out the name of … | |
i have the following struct [code] typedef char * typos_stoixeiou; typedef int metritis; typedef struct korifi *kdiktis ; struct korifi { typos_stoixeiou dedomena; metritis counter; int kleidi; int arithmospaidiwn ; korifi *a[100]; }; [/code] if i try this [code] for(int s=0;s<size;s++) { root->a[s] = (kdiktis)malloc(sizeof(struct korifi)); root->a[s] = NULL; }[/code] … Software Development c | |
why doesn't /usr/bin/time command return maximum resident set size (instead it returns always 0) and how to measure it then? Thx Software Development shell-scripting | |
I'm wondering what steps I have to take to make progress in my programming skills. I am just starting my first semester as a computer engineer, and I picked up a lot of the syntax relatively quickly but I still have trouble solving a lot of the problems we get. … | |
Hi, I'm trying to retrieve data (CLOB, string, integer) from a stored function. My example code looks like: $dbh = DBI->connect(....) or die "can't connect"; $stmt = 'BEGIN :cursor := foo; END;'; $sth = $dbh->prepare ($stmt); $sth->bind_param_inout(":cursor", \$refCursor, 0, { ora_type => ORA_RSET } ); $sth->execute(); while ( my ($clob, … | |
Well, hi, I wanted to make a program, which turns normal words into a Caesar shift. So... HELLO BECOMES; JGNNW That is with a shift of two. I did not want to include IF statements in this, as that is 'lazy programming' I have made a program which will convert … Software Development pascal | |
I need to write wrapper functions for fork and signal functions. These functions will handle errors by fork() and signal() and exit, if an error occurs. The problem is I am not sure exactly what to check for on either function. Here is some sample code for both of them. … Software Development c | |
Hi! Up until today I've been writing C with Borland C dos version. Only g-d knows why the school I go to teaches us C on that. I want to start using MS's Visual Studio and I'm totally lost. It's a whole new enviornment of work. All their tutorials and … Software Development c++ visual-studio ![]() | |
Following is a C++ client(Network Programming) code, I need to translate it to TCL, if anybody can help me, I shall be thankfull ... [code=cplusplus] //<CLIENT.CPP> #include <iostream> #include <conio.h> #include <string> #include <winsock2.h> #include <fstream> using namespace std; void main() { string ip = "127.0.0.1"; int port = 6789; … Software Development c++ client-server socket-programming | |
I have a Generic List that I populated in one class, I want to return this List to the main form. Is this possible? In other words I want to pass a Generic List from one class to another, how would I do this? Software Development vb.net ![]() | |
Hello all, My assignment is to write a quadratic equation solver. I have written the function, and it compiles well. However that is not the issue. The requirements are that it follows a command line interface specification as follows: <program name> -r <quadratic equation> In other words, the user is … Software Development c++ user-interface | |
I am writing a server function and an error message is defined as: [code] #define UNKNOWN "Unknown" [/code] I have a function: [code] void search(int sockfd) { FILE *file; char arg1[MAXLINE], arg2[MAXLINE], title[MAXLINE], line[MAXLINE]; file = Fopen (PATH, "r"); while (true) { if (Readline(sockfd, title, MAXLINE) == 0) return; Fgets … ![]() | |
I have to print out the numbers -2.3 to 2.9 in increments of 0.4, and then add the poss and neg number EX: -2.3 -1.9 -1.5 -1.1 -0.7 -0.3 0.1 0.5 0.9 1.3 1.7 2.1 2.5 2.9 Sum of negative values: -7.8 Sum of positive values: 12 i have gotten … Software Development c++ | |
hello. i'm new here and new to C programming so would appreciate any help with a problem i have. how can i copy the contents of a command line argument e.g. argv[1] to a string declared within main() e.g. filename[30] cheers..... PS this isn'y my homework:lol: Software Development c | |
What i need to do is convert the first letter of ever word into a caps letter. I know that in ASCII the lower case letters are between 97 and 122 and all i need to do it -32 to get the caps version. Now my problem is how do … Software Development c++ | |
Hi, I am very new to Python, I know how to write a basic program, but i know nothing about drawing graphs. I need to write a program to test a random number generator by putting dots on a coordinate graph. Can someone tell me how to make a coordinate … Software Development python | |
Hi, I have the following structure to read the file data with fixed format of my binary file. Now I want that every time my ReadFromFile function is called with 'counter' variable it should 1. return me frame specified in the 'counter'. 2. The file needs to be closed only … Software Development c++ data-structure file-system ios | |
Hi All. I've got a small App (VB.Net) that adds Files and Folders to a List and then uses a Do.. ..While Loop to copy each item in the list to a new Directory (not unlike a backup program). I thought it would be good to add a ProgressBar to … Software Development vb.net | |
Can someone plz give me the C++ code for the following: (1) linear probing (2) separate chaining (3) quadratic probing (4) double hashing I know the theory behind it but i dont seem to be able to put it into code! plz help me P/S: im not asking you to … | |
hi all, sorry for posting the same question,i have to this because my last post was really a mess. now i will try explain my problem in concise i have variable [CODE]my %HeaderHash=();[/CODE] and i have passed values to the HeaderHash successfully but while i try to print the HeaderHash … Software Development perl | |
Hello I am having no problem while returning 1 dimensinal array But am having trouble with 3 dimenional array No problem with this code [CODE]float Mat[][][]; float Mat[]; float *funct1(void) { return Mat; } void funct2() { float *Mat; Mat=funct1(); } [/CODE] But this doesnt work [CODE] float Mat[][][]; float … Software Development c | |
hi folks, i want some help with dlls i want to create dll which will take image file path as input string do some processing, and five different strings as output. how to use it. can anyone give sample code thanks Software Development visual-basic | |
Can anybody give me the source code of ANY of the following programs.... me newbie to C.... 1. Write a program which takes 10 numbers as INPUT and tell which one is GREATER. 2. Write a program which takes 10 numbers as INPUT and tell which one is SMALLER. Software Development c | |
Hi, There is a memo field called [B]'Particulars'[/B] in my [U]exp[/U] table [U]exp1[/U] database. I have placed the field in my Crystal Report. The length of memo field by default is set to 250 characters. If I extend the field size horizontally in crystal Report my other field will go … Software Development visual-basic | |
[B]I try to use trayicon in delphi 5, but I can't hide the main form completely as which contain a MDI child form. Any solution for it? [/B] :( | |
I am using Delphi 5. I've add a trayicon in application and need to make the trayicon bright or change colour in different status. Anyone can help? Thanks and Thanks.:$ | |
hello anybody know how can i make a search button?? im having a problem on the syntax or coding i need, i mean, for example if i put a word on a textbox(txtUN), then i click on the cmdbutton(cmdSearch) it will retrieve all info about the data that is been … Software Development visual-basic | |
[code=c++]#pragma once #include <string> #include <iostream> using namespace std ; class Document { public: Document ( ) ; Document operator= ( const Document & d ) ; void setText ( ) ; string getText ( ) ; protected: string text ; } ; #include "document.h" Document::Document ( ) : text … Software Development c++ | |
Below is the code for my merge sort - It doesn't like my temporary array c and I can't get anything to sort - I get all 0 in my output. [code] void merge(int low,int mid,int high) { int size, p, q, i, r; size = high - low + … Software Development c++ | |
Hello, I have a script I've used on pre-Solaris 10 that works just great. Now on a Sol10 box, it is bailing on this line with this error: syntax error at line 27: `|' unexpected Here's the 'offending' line: [code]creation=`echo $backupid | sed 's/^.*_//'`[/code] I'm a bit confused as to … Software Development shell-scripting | |
Hello EVeryone... I really need some help with this problem... A certain CS professor gives 100 - point quiz graded on scale 90 - 100:A 80 - 89:B 70- 79: C , 60 - 60:D <60 :F I need to write a program that eccepts an exam score as input … Software Development python | |
hey all i have a real problem with fibonacci numbers i have calculated max fib(47) with my codes but i have a project that i need to calculate the n'th fib number which is get from the user and print the fib valu to the screen the numbers must be … Software Development c ![]() | |
I am trying to use fairly simple C++ code to complete this problem: The user will input a number of the Fibonacci series, and through a function called whichfib(), the program will then output the number using long double data type. I have gotten the code to work until the … Software Development c++ | |
In my Java class, we have to randomly create basketball teams and random scores, then average the scores for each team, and average the scores for each game. I am not sure how to average the score for each game, meaning adding scores vertically in a vector versus adding scores … Software Development java | |
why am i not able to pass two values between pages in first page for submit_btn.click() [COLOR=#0000ff]Dim[/COLOR] url [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]String [/COLOR]url = [COLOR=#800000]"Project.aspx?" [/COLOR]url &= [COLOR=#800000]"id="[/COLOR] & id_txt.Text & [COLOR=#800000]"" [/COLOR]url &= [COLOR=#800000]"age="[/COLOR] & age_txt.Text & [COLOR=#800000]"" [/COLOR]Response.Redirect(url) ---------------------------- In second page called Project.aspx: sub page_load() txtid.Text = [COLOR=#800000]"id:"[/COLOR] & … Software Development vb.net | |
This program will build/compile but not run. I get an error message [B]Code:[/B] [CODE] java.lang.NoClassDefFoundError: midterm1/Main Exception in thread "main" Java Result: 1 [/CODE] Now I am very new to java and all of the logical errors and messages that come with them. Please bare with me. Can anyone take … Software Development java java-swing window-manager | |
Hello I am making a "Superclass" that provides a programmer easier means of constructing a java panel by providing a template so as not to reuse code over and over. I have reached a point where I am trying to allow the programmer to call one method with in my … Software Development java java-swing | |
hi everybody, Iam using mysql.I have a login form in which user vl enter his name and password.Now when he/she types upper-case or lower-case in the username field,mysql unable to check the case.Is not mysql 4.0 not a case-sensitive.can anyone suggest how to solve it. | |
case 'q' : case 'Q' : cout << "Computing your totals" << endl; break; default : cout << "Invalid choice!"; } } /* This is where it should break out of but it is not */ // while (choice != 'Q' || choice != 'q'); - this is what I … Software Development c++ | |
I keep getting this warning every time I compile the following code. Can anyone please tell me what I am doing wrong. Also, the printf(head->data) keeps saying that printf's argument is invalid. How do I print head's data? Any help is appreciated. Thanks, [CODE]#include<stdio.h> #include<malloc.h> typedef struct { int data; … Software Development c | |
Theese are error i am getting .. please help.. thanks in advance [code] F:\JAVA\Java Files\lab 9\MyCustomer.java:12: cannot find symbol symbol : method addaccount(Account) location: class Customer cust1.addaccount(account); ^ F:\JAVA\Java Files\lab 9\MyCustomer.java:13: cannot find symbol symbol : class Savingsaccount location: class MyCustomer cust1.addAccount(new Savingsaccount(5000.0,0.05)); //saving accountNo= 2 ^ F:\JAVA\Java Files\lab 9\MyCustomer.java:14: … Software Development java | |
Good day folks. I have a simple question anout structs. Say for example i have the following: [CODE] struct foodmenu { char letter; string food; double cost; }; [/CODE] We just started a look at struct and it's really not too clear. So with regards to my example above...how does … | |
Ok, i made a psot earlier but my code is alot different and different question so i didnt know where to put it. My question is thiss... in my calcScore function. This is my requirement: Design and implement a function double calcScore() that calculates and returns the average of the … Software Development c++ | |
Hi Can someone help me, I have been trying to fix this for a while without any luck. I am new to JAVA programming though I have coded in many languages. What I am trying to do is use the JFileChooser class in a Windows 2000 environment, the user can … Software Development java | |
Hello, I want to know how to return an entire object using API binary search. Not the index of where the object was found but the actual object. My WaketechFile class is just like the File class. Can anyone please help? import java.io.File; import java.util.ArrayList; import java.util.Collections; import java.util.*; /** … | |
Whats going on is an address book. There is a search function in the program that takes in a string for the phone number. The file is read and if the string exist, it file is reread and the characters infront of it are sent to output.... basically showing who … Software Development c++ | |
After i establish the connection through url i want to post the data . After posting the data there is no change in client Can anyone help me import java.net.*; import java.io.*; import sun.net.[url]www.http.HttpClient;[/url] import javax.net.ssl.*; public class classname{ public static void main (String[] args) { try { URL u … Software Development first-post java | |
Im trying to Separate First Name, Middle Initial, and last name into Textboxes, with a function of a button. Example : Full Name : Tony J Holley First Name: Tony Middle Initial: J Last Name: Holley All I have is this, and is for the first name Separator: ' determines … Software Development vb.net | |
Hi, I am currently studying programing, and have become some what stumped with Visual studio 2003. I have written a number of application using the console, however currently i am trying to clear of text that has already been written to the console.....but can not find any command or code … Software Development c c# c++ visual-studio |
The End.