132,726 Archived Topics
Remove Filter ![]() | |
I'm not getting any errors but can't get the print out I should. Any Idea's? Pseudo code first, then Program Code, and the printout look; [B]Design, code and thoroughly test the following programming problem: A company pays its salespeople a base weekly salary plus a commission based on gross sales … Software Development java | |
Hey guys Just joined up the forum, I've been looking for a good community of python users! I'm 17 and I'm in colleg right now getting my transfer degree so I can go major in software development. I've worked with mostly web based langauges for the last couple of years … | |
I tried searching the forums but I've come up dry. Can anyone help me with this simple coding excercise. I wanted to template my datatype in my class, but it's coming up with errors. [code=c] //template <typename T> //----> i want to use this class typeClass { private: int myArg; … Software Development c++ | |
If I have an integer like x = 12345, how do I separate that into individual integers 1, 2, 3, 4, 5? Software Development python | |
I hope this thread does not offend anyone. I get the impression that most of us are college age prog5rammers, so this might be easily solved. I am attempting to make a menstrual cycle calculator for my fiance. To begin with, I thought about going about it in the following … Software Development python | |
![]() | So if I want to store a list of items (such as a bunch of instances of a class), what's better to use: tuples or lists? I understand that lists are mutable, so what are the advantages to tuples? Software Development python |
GreekWord1 EnglishWord1 Notes1 GreekWord2 EnglishWord2 Notes2 , EnglishWord3 Notes3 GreekWord3 EnglishWord4 Notes4 GreekWord4 EnglishWord5 Notes5 . EnglishWord6 Notes6 GreekWord5 EnglishWord7 Notes7 GreekWord6 EnglishWord8 Notes8 ? EnglishWord9 Notes9 GreekWord7 GreekWord8 GreekWord9 The above made-up example above may lose its formatting here but I think you will get the drift. Column A … Software Development visual-basic | |
When my program runs on a machine with XP sp2 installed and with off 2003 the following goes wrong In a table in Word f.e. 3 rows the 1 row is good with the data i presume row 2 has two sentences the 1 line has the coorect data and … Software Development visual-basic | |
Hi All, I am a total java novice and i am having a real problem running the following code: [code=java] import java.util.*; public class Methods { public static void main( String [] args) { Date independenceDay = new Date ( 7, 4, 1776 ); int independenceMonth = independenceDay.getMonth(); System.out.println("Independence day … Software Development java | |
I need to format a 4 byte numeric value that decodes results = (byte1 * 256 * 256 * 256) + (byte2 * 256 * 256) + (byte3 * 256) + byte4 can it be done :?: /jondo Software Development visual-basic | |
i wanna know how to draw text over picture box in multiple lines using print method if i used label control over picture box to draw text in multiple lines then i dont know how to save picture with label if anybody hve solution of my problems then pls reply … Software Development visual-basic | |
Enter the miles driven, use -1 to end: Enter the gallons : The miles / gallon for this tank was Enter the miles driven, use -1 to end: Enter the gallons used (-1 to end) : The miles / gallon for this tank was Enter the miles driven, use -1 … Software Development vb.net | |
Hi everyone, Can somene please explain to me how to run a [B]telnet[/B] command using Java.I mean how can I achieve the following in Java : [B]telnet mailServer PORT[/B] (where mailServer and PORT will be supplied)...and subequently capture response from the server. Thanks . Software Development java | |
Hi, I need to be able to call a function from all the C++ files included in my project and i am not sure how to do it.. everytime i try something (such as exporting a class or function) i get multiple function declaration errors and it fails to compile, … Software Development c++ data-structure | |
Hi, I'm studying for my CIW perl exam, I've come across this question in my exam software, but it doesn't make sense, and my solution is different to the solution given. Here is the question: The following RE matches what patterns? /[[^TMC]ow/ Not Mow Mow at the beginning of a … Software Development perl | |
hi guys i need a little hint on how to break an integer into its component so if you have like 1567 i need to get 4 integers with 1,5,6,7. Thank you Software Development c | |
Hi there, i'm trying to convert a C++ code about Hashtable in Java but i get these errors messages: - array required, but java.lang.String found & - array required, but java.util.Vector. Here is the C++ code first : [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] "Hash.h"[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <cmath>[/COLOR] [COLOR=#0000ff]using[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]namespace[/COLOR][COLOR=#000000] std;[/COLOR] [COLOR=#0000ff]int[/COLOR][COLOR=#000000] key;[/COLOR] [COLOR=#0000ff]char[/COLOR][COLOR=#000000] z;[/COLOR] [COLOR=#0000ff]int[/COLOR][COLOR=#000000] … Software Development java | |
I have a question about manipulating an array in C++. In my program, a cstring is entered. The string is printed. Finally, the string must be printed in reverse and displayed. The final part is where I am having my problem. I have the strlen function determine the legnth of … | |
hi, i'm new to java (being studying for a few days now) and i'm stuck on the following program. it's supposed to bring up a screen and ask me to input a number...but it always say there's something wrong with the line [inlinecode]userInput = TextIO.getInt();[/inlinecode]. can anyone help me out...thanks … Software Development java | |
Hey guys, I'm just about done with a program and I need to know how to launch an IE window (or any browser I suppose) from the command prompt. Can anybody help me? thanks!:cheesy: Software Development python | |
[code=c]struct DATA { pid_t pid; int lenth; char buff[128]; }; main(int argc, char* argv[]) { int pos,chlds,fd[2],ifd,ofd,i,n,nofreads[50]; struct DATA data; pid_t pid,child[50]; FILE *fp; pipe(fd); chlds=atoi(argv[1]); ifd=open(argv[2],O_RDONLY); for(i=0;i<chlds;i++) nofreads[i]=0; for(i=0;i<chlds;i++) if((pid=fork())==0) { // ONLY CHILD COMES HERE close(fd[0]); data.pid=getpid(); while((data.lenth=read(ifd,&data.buff,128))>0) { write(fd[1],&data,sizeof(data)); //sleep for random time (0-chlds seconds) sleep((rand()%10)+1); } … Software Development c data-structure | |
Hi all, I'm new to C++ and am having a problem with a piece I am writing for an assignment. The problem area is below. [code] //arrival process on the corporate links if (clock % 4 == 0) { double randomno randomno = randgen; // Generate random number if (randomno … | |
hi i need some help developing a rationaltest project in java. package rationaltest; import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; public class RationalDH extends Rational{ // fields protected int top; protected int bottom; BufferedReader in = new BufferedReader( new InputStreamReader(System.in)); public RationalDH(){ super(); } public RationalDH(int numerator){ super(numerator); } public RationalDH(int … Software Development java | |
![]() | I was looking through the "beginner projects" looking for a way to use dictionaries so I could understand them better. I saw the caesar cipher suggestion and decided to run with that. I created a working one, but (as I saw in the "If...else") just because something works doesn't mean … Software Development python |
Hi All, I am currently writing a perl program for linux which needs to run another perl script with a commandline option half way through, 'myscript.pl -h'. If it didn't have the '-h' I would use require. I could use backticks to shell out, but this is slow. Is there … Software Development perl | |
dll problem,help me:) i create dll project ,the dll is Use MFC in a Static Library i hope exe call ListCtrl class from dll ==================DLL==================== <<<<<<<<<<ListCtrl.h>>>>>>>>>>>>>>> [code=c] #pragma once class AFX_EXT_CLASS ListCtrl :public CListCtrl { public: __declspec(dllexport) ListCtrl(); __declspec(dllexport) ~ListCtrl(); public: DECLARE_MESSAGE_MAP(); public: afx_msg void OnNMClick(NMHDR *pNMHDR, LRESULT *pResult); }; … Software Development c | |
The problem is that when I enter the choice, nothing happens and the answer remains 0. Please help I'm new at this and I tried everything!! Thanks [code=c] #include <stdio.h> #include <conio.h> main () { int a,b; float answer; char choice; clrscr(); printf ("\nEnter a number: "); scanf ("%d",&a); printf … Software Development c | |
In the following code, how do I change the line under [code] cout << "\nThe value of bogus in num1 is " << num1.bogus;[/code] to get it to compile correctly. I know its calling for theValue which is private. Not sure what to change to make it work: [code] #include … Software Development c++ | |
i want to get token from string using string class. i know that using cstring, i can use strtok.can i use it? [CODE] #include <iostream> #include <string> using namespace std; void echo(string message) { cout << message << endl; } int main() { cout << "Enter your word: "; string … Software Development c++ | |
In response to Hike34's thread to add a \ character to a CString, I think the \ character has a meaning in such strings and to use it in a string it should itself be preceded by a \ character CString word="hello world"; word+="\"; // or "''" doesn't work... Instead … Software Development c | |
Hello, I am new to perl, and am using perl on windows 98, i have tried writting a program, but the problem i experiencing is how to run the program. 1 i am using active perl 5 which came with an installer 2.i use note pad for the program and … Software Development perl | |
I created a file that some vice presidents are looking at. They are very inexperienced with excel and I am trying to think of every possible error that could happen. However I know of an error but do not know how to fix it. They open the file, and it … Software Development visual-basic | |
hi..im new here and to java...im supposed to align the prices of a receipt in a system.out.println..and i dont kno how. i am supposed to align the prices on the right hand side, considering the length of the item name and length of price. Again, i dont use things such … Software Development java | |
[code=c] #include<stdio.h> #include<math.h> # define I 0.0765 //Interest Rate char fname[20]; char lname[20]; float loan = 0.0; int years; double PB; //Prototypes double Mortgage_Calc(void); void Financial_Report(void); int main() { printf(" *******************Caribbean Mortgage Company*************\n\n\n\n\n"); printf("Enter the Customer's Name (First Name and Surname)\n"); scanf("%s%s",fname,lname); printf("Enter Requested Loan Amount\n"); scanf("%f",loan); printf("Enter Number of … | |
This sounds awful but I've never ever done programming before in my life and I'm being forced to design 2 games (or applications maybe..) One is supposed to evaluate a maths expression (using composite design method whatever that is...) and the second is a simple Connect 4 game using either … | |
Hi i hav executed the following c code..the inner printfs executes first and prints some garbage value...why dont the outer printf prints anything... i got only one garbage value y dont two garbage values....wt s the order of precedence in printf function and in nested printfs.... the c code is … Software Development c | |
Hi all, I need help turning this: W = 35.74 + 0.6215t - 35.75 (v0.16) + 0.4275t(v0.16) into code. I guess the real problem is the how to turn v to the .16th power using this function: double pow(double [I]x[/I], double [I]y[/I]) I know how to open a file with … Software Development c++ | |
Hello I'm kinda new to vb programming and am trying to set it up on my computer. I keep recieving this message C:/WINDOWS/SYSTEM32/AUTOEXEC.NT. the system file is not suitable for running ms-dos and microsoft windows applications. Do you know what this means and how to fix it? Any help you … Software Development microsoft-windows vb.net | |
[B]Is their a way of using windows98/Me to make a chart?Or lines goes up or sqares?Or how can i make a chart?[/B] Software Development c++ | |
Hello, This may not be the right forum for this but here goes...I am a student and am taking programming classes( JAVA ). It seems that I can compile my programs but cannot run them. My professor said my path was incorrect and gave me the correct path settings. I … Software Development java | |
hi all. i am going through the hibernate tutorials from http://www.hibernate.org but i cant build my project with the ant as specified, i have used ant befor now .there is no problem with ant. the error given is as follow ; compile: [javac] Compiling 2 source files to C:\Documents and … | |
I am using Dev c++ IDE for c and c++. When i run an aplication the running window disappears quickly. What should i do? | |
Hello can anyone help me with the following The below will actually display the Name found part, even though no name actually exists and its just blank, how do i get round this, the string name will contain blanks, but i need to check if blank, then treat as blank. … Software Development c | |
In a particular system there are two threads T1 and T2. T1 is the master thread that periodically sends messages to the worker thread T2. The system is time-critical and hence T2 must react to every message that T1 sends. None of the messages must be lost.T2 performs time consuming … Software Development | |
Hi, Once I had a similar problem when I tried to read a binary file on a pc and I failed, but I was able to read it in Linux (there were actually different versions of the file), so I figured it's a corrupted file, thou the hex dump looked … Software Development c | |
Hi Folks, In trying to build a class that consists of several controls placed on a panel, I've encountered two problems. With the exception of a RadioGroup, I've been able to succesfully create the object and surface properties from the various controls. However, the radio buttons for the RadioGroup are … Software Development pascal ![]() | |
Is there any way to insert an animated .gif image into a Delphi form? The image component only seems to accept jpeg, bitmap, and icon files, plus a couple I've never seen before, but it's my understanding that none of those can be animated, and what I'd like to do … ![]() | |
How do I stop a thread immediately, in perl? Should I use the SIG interrupt or someone show me hints. thanks. Software Development perl |
The End.