199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hayesmark

public class XClass { private int u; private double w; Public XClass () { } Public XClass ( int a, double b) Public void func() { } public void print() { } } XClass x = new XClass (10, 20.75); Q1. How many members does class XClass have? Q2. How …

Member Avatar for MrScruff
0
185
Member Avatar for MMX

Hi, I`m writing a mod for a forum but I`m getting an error with a piece of Javascript which checks the length of text typed into a text area. The error only happens in IE and not firefox/mozilla This is the JS [code]<script type="text/javascript"> function check_length( l_max , textBox ) …

Member Avatar for js-x.com
0
147
Member Avatar for dcving

:o [COLOR=Red]When I start the program it just spits out a continuous line of numbers; Can anyone give me any suggestions, OR better yet, just tell me how so I can start my Thanksgiving break early?[/COLOR] :o [CODE]/* Program Description: The program will read a file named Scores.dat, and will …

Member Avatar for jwenting
0
112
Member Avatar for tigerxx
Member Avatar for nevets56

I've created a program that counts the amt. of characters, words, and lines in a text file...I also need it to count the number of blank lines and the number of vowels in the text document. I don't know why, but I cannot seem to get it to work. If …

Member Avatar for mcclth
0
98
Member Avatar for Jackie001

Hi everyone. At the moment i am doing my thesis for my degree. The title is: "Compare and contrast Oracle client/server technologies with oracle web technologies. Design a business application and depoy it in both. " To compare the applications i am going to use java. I am going to …

Member Avatar for Jackie001
0
215
Member Avatar for Asif_NSU

I need to add a recursive function, called [B]findaverage()[/B] into BST class that takes as input the root of the BST and returns the average of the entire integer items stored in that BST of integers. Plz help me with this function especially without using any static variables.

Member Avatar for Asif_NSU
0
2K
Member Avatar for SquirrelProdigy

I just can't figure out why this program isn't reading in the entire file. It will only read in the second line, nothing else. Here are my read and write functions: bool Write(string Text,string FileName){ fstream Write; Write.open(FileName.c_str(),ios::out|ios::app); if(!Write){ cout<<"Error in opening file"; return 0; } Write<<Text; Write.close(); return 1; …

Member Avatar for SquirrelProdigy
0
163
Member Avatar for Asif_NSU

Hi guyz, I am about to start my third semester in my university. I have options to take Data Structures(CSE 225) or Discrete mathmatics(CSE 173). I am not sure which one take to before the other -- I will be doin both though. What do u guyz think. Will taking …

Member Avatar for Asif_NSU
0
1K
Member Avatar for kendallniall

Public class Prog1 { static final char = BLANK = ` `; static final char ONE 5; public static void main (String[] arg); { a = one + 5; b = a + blank; cc := a + one * 2; ONE = b + c; System.out.println(''a = '' + …

Member Avatar for jwenting
0
168
Member Avatar for onauc

You know, when my brother was learning C in college I took an interest and learned a little (that was back in 1998. I have forgotten C by now) but shall I tell you what really put me off ? In his class, they were teaching him one version of …

Member Avatar for jwenting
0
113
Member Avatar for chunguy

hi anybody out there, i need help, how do i change the value of a URL argument? Example: URL: http://localhost/main.php?name='abc'&age='24' how do i change the value of argument "name" and resend the information back to main.php without changing the age value.

Member Avatar for chunguy
0
227
Member Avatar for pgwolfe

[font=Times New Roman][size=3]I have been experimenting with developing an application in FoxPro 7.0 for my personal use

Member Avatar for mano
0
511
Member Avatar for agtmulder17

Hi, I am working on a project using Java and embedded SQL in the Java. I have gotten the SQL to successful do what I need it to (In this case, create tables and insert data into them). However, I am having a difficult time with IO. The goal is …

Member Avatar for jerbo
0
113
Member Avatar for nowmn

sorry my bad english and maybe if u can write this source so give me ? (use a stack and tree) :cool:

Member Avatar for alc6379
0
90
Member Avatar for matt_5104

I'm having a problem whereby I create an instance of a class called Calculations.class in one of my main classes, but cannot access that instance from any other class. Here is the code public class Parameters{ //code// Calculations calc = new Calculations(); //some calculations done using variables in the calculations …

Member Avatar for jerbo
0
141
Member Avatar for sweety engineer

hi every body can any one help how to start with this project using the c++ ADT class ,write aprogram that simulates the operation of telephone system that might be found in asmall business, such as your local pizza parlor.Only one person can answer the phone(aingle server queue). but there …

Member Avatar for jasweb2002
0
144
Member Avatar for Chris Norton

I can recieve data into my .asp pages from my access database but when I try to write to the db I get the following errormessage : HTTP 500.100 - Internal Server Error - ASP error Internet Information Services -------------------------------------------------------------------------------- Technical Information (for support personnel) Error Type: ADODB.Recordset (0x800A0BB9) Arguments …

Member Avatar for Lafinboy
0
195
Member Avatar for b3h_05

hi..im new here and i am having trouble with my program..using DOS-based C++, i have to create a program that will use a mouse pointer but unfortunately i don't know how to create one because that is beyond our topic..so if anyone could help me..please give me the code and …

Member Avatar for jwenting
0
133
Member Avatar for dontcare

Days since 1/1/1800,that day was Wednesday. Need to convert a date in the form mo/dy/year into this single number. Need a function to print out the day of the week, and a function to print out the date in the form month day, year where the month is completely spelled …

Member Avatar for jwenting
0
172
Member Avatar for Sideshow Bob

I am working on a project which involves a server/client model running over a network. The server is written in Java, and the client is a C++ addition to an existing product (which is written in VB and C/C++). I chose to write my section in Java simply because I …

Member Avatar for Sideshow Bob
0
172
Member Avatar for jordanmc31

Can anyone give me a basic script that takes a string and converts it into a characters using the nexttoken command to get the next char for searching purposes.

Member Avatar for MrScruff
0
187
Member Avatar for liliafan

Hi guys It has been quite a long time since my last post, but I am having some very weird behaviour on a program I am writing and I was hoping to get a little community feedback ;) I am writing a class that basically opens a pipe to ksh …

Member Avatar for liliafan
0
885
Member Avatar for mattcplusplus

Hi i need an explanation of the following array declaration: GLfloat colours[][3] Why are the square brackets empty, does it imply a default value? so it has say 1 row and three columns? Thanxfor your help in advance it is much appreciated

Member Avatar for Chainsaw
0
159
Member Avatar for skamen

Hi, This is really a logic problem more so than a stright up C++ problem. For class I have written a program that takes dates from a text file and then finds the number of days from January 1st 1800 that days is. The program also has to be able …

Member Avatar for vegaseat
0
2K
Member Avatar for JoBe

Hello ladies and gents, could someone explain what I'm doing wrong here, the ideas of this excercise is: - Declare an array with 10 firstnames using pointers! - Show the array on screen using a function! - Sort out the names alphabetically and show the array again sorted! I want …

Member Avatar for JoBe
0
193
Member Avatar for Louisinho

[FONT=Verdana]New Member[/FONT] Hi everyone. I am brand spanking new. Like, just a few minutes born to the new kid in the DaniWeb block. Today I will just get the feel and browse. However, I will host a lot of questions that my experienced curiosity has brought to mind and many …

Member Avatar for Louisinho
0
92
Member Avatar for crystalattice

This is kinda like "part 2" of my other post. Have also been working on this one for about 3 weeks. A suggestion was made that I should consider using the map container to accomplish what I want. My textbook doesn't talk about maps but I found some info on …

Member Avatar for jwenting
0
129
Member Avatar for crystalattice

I've been fighting w/ this problem for about 3 weeks. My school's forum and another programming forum I belong to have been unable to help me (I can't get ahold of my instructor but the school is looking into that). When running the attached program, I get the errors /home/cody/Projects/wavelength/src/wavelength.cpp:19: …

Member Avatar for Chainsaw
0
190
Member Avatar for jamievmi2

I'm trying to complete the following problem: write a problem that generates a table showing tuition and fee costs. the table continues to print up to and including a maximum number of credits that has been input by the user. The program should check that this value is between 12 …

Member Avatar for jamievmi2
0
153
Member Avatar for smalltalk

a ball have radius 20 when i press a button once the radius increase by 5 subsequent clicks have the same effect until a max radius of 30 is reached after this the effect of click is to reduce the radius by 5 until it reach 10. after this a …

Member Avatar for jwenting
0
154
Member Avatar for jifiii

I got a question one of my friends asked me to make a program that you type in the number 1-27 on the command line, and get the corresponding letter for it. Like if you enter 1 as the arguement you would get an A as an output, and if …

Member Avatar for harshchandra
0
113
Member Avatar for harshchandra

Can anyone tell me the complete algorithm analysis of Tower of Hanoi for n pegs and n disks.I really need it :sad:

Member Avatar for harshchandra
0
270
Member Avatar for Dani

Hey everyone. I actually have a homework assignment that is due Tuesday afternoon that I've been struggling all weekend with. The assignment is located at: [url="http://cs.hofstra.edu./~cscsxd/hofstra/teaching/cs155-04/course_info/project/Recursion.cpp"]http://cs.hofstra.edu./~cscsxd/hofstra/teaching/cs155-04/course_info/project/Recursion.cpp[/url] As you can see, the function we have to write is: [code]int *Rectangular_Shortest_Path(int startx, int starty, int endx, int endy, int r[][6], int a[][6]) …

Member Avatar for Chainsaw
0
192
Member Avatar for gradstudt

hi , i need a program for tollbooth simulation using arrays implementing queues in C++. can some one please help me out. prashant

Member Avatar for jwenting
0
100
Member Avatar for j206

A method i have to write finds and prints "magic squares" which are numbers that are perfect squares and a sum of consecutive numbers (1+2+3,etc.) Ex. the first 2 magic squares are 1 and 1225 it seems simple, but what i have doesn't work and i don't know y or …

Member Avatar for j206
0
75
Member Avatar for onauc

Hiya ! I want to see how the following types of files’ Interpreters are built into a browser : 1. Un-compressed Image files 2. Compressed Image files 3. Un-compressed Animation files 4. Compressed Animation files 5. Un-compressed Audio files 6. Compressed Audio files Question 1 : So, can anyone tell …

Member Avatar for onauc
0
122
Member Avatar for Alfy

[code] struct student { char name[20]; int age; int id; }; struct student *sp, st[3],temp ; void sort(struct student *p) { *sp=st[0]; p->age; for(i=0; i<3; i++) { if(st[i].age<st[i+1].age) continue; else if(st[i].age>st[i+1].age) { temp=st[i]; st[i]=st[i+1]; st[i+1]=temp; }break; } } /* switch case junk */ case 1: /* sort by age */ …

Member Avatar for Alfy
0
147
Member Avatar for naya

[COLOR=DarkSlateBlue]undefined[/COLOR] hi, i m naya.i m student of telecommunicatin engineering.i have a lot problems in "C PROGRAMMING".plz tell me the codes to find max,min values....to print factorial of a number...how copy an array to other.....to print tables of numbers....n how to swaps in array.. plz they all codes should be …

Member Avatar for harshchandra
0
122
Member Avatar for skeet123

I am having trouble coming up with code for removing a node in a binary search tree. This is what I have so far: [CODE] void remove(int n) { node *current=root; node *gptr; while(current != NULL){ if(n<current->key){ gptr=current; current=current->left; }else if(n>current->key){ gptr=current; current=current->right; }else if(n==current->key){ if(gptr->right->key==n){ cout<<"1st ==key = "<<gptr->key<<endl; …

Member Avatar for Narue
0
132
Member Avatar for vexer007

Hi, I've run into absolute brickwall and am really desprate for your help please. I have a MYSQL Database with two Tables called user_comment and the second user_table. When a user register with the site, their details are kept in the user_table. the second table user_comment is so that users …

Member Avatar for Roberdin
0
158
Member Avatar for missy

how do you convert to binary. i have to write a program that will prompt the user to enter an unlimited(user defined) number positive intergers, the program will convert each positive interger(base 10 value) into its equivalent binary representation and displat each conversation. to exit the program, the user is …

Member Avatar for Narue
0
117
Member Avatar for Nyika

I am writing a turtle graphics program and I need help with 2 characters to show when the direction of my turtle is up or down. I am using cout << ">"; cout << ">"; for right and left and right directions. Any help will be greatly appreciated since my …

Member Avatar for vegaseat
0
1K
Member Avatar for server_crash

I keep getting a null pointer exception with this code: It's suppose to load a text file into a textArea. [Code] JFileChooser chooser = new JFileChooser(); int returnVal = chooser.showOpenDialog(this); String getFile = chooser.getName(); if(returnVal == JFileChooser.APPROVE_OPTION) { try { FileReader filegetter = new FileReader(getFile); BufferedReader br = new BufferedReader(filegetter); …

Member Avatar for server_crash
0
144
Member Avatar for hockyfan

I run a music discussion board and could use a bit of technical assistance (installing/arranging) in regards to a portal (for vB). If anyone thinks they can help me out with that I'd be most appreciative. :) h

Member Avatar for Zachery
0
595
Member Avatar for dcving

[COLOR=Red]How do I get the student names in all lowercase chars except the first letter which is capitalized?[/COLOR] [code] #include <fstream> #include <stdlib.h> #include <time.h> using namespace std; int main() { // Step 1: Declare ofstream OutFile; int NumStudents; int NumChar; int NewScore; char NewChar; // Step 2: Initialize OutFile.open("C:/Scores.dat"); …

Member Avatar for Chainsaw
0
118
Member Avatar for onauc

BUILT-IN Web-Language Interpreters If we put Html, Dhtml, Xml and Javascript codes onto our webpages and view them on a browser then we do not see the “text of the codes

Member Avatar for onauc
0
122
Member Avatar for Dani

I am using the local invocation code with phpAdsNew. However, I would like to make the code that it outputs XHTML compliant. Does anyone know where I could edit this in the code? Thanks!

Member Avatar for Dani
0
472
Member Avatar for josirucu

WHAT IS WRONG HERE?WHY WON'T THIS SORT? public class bubble { public static void main (String[] args) { boolean Finished; int[] intRand = new int[11]; int[] unSorted = new int[11]; int intStore; int i; Finished = false; i = 1; while (i < 11) { intRand[i] = (int)(java.lang.Math.random() * 100); …

Member Avatar for MrScruff
0
126
Member Avatar for ld834

I'm having a bit of trouble working out what sort of loop to use in a program I'm writing. Basically, I have a file with 2 lists of numbers separated by ";" e.g. Name ;Magnitude 2713.0;21.546 2713.0;19.564 2713.0;20.102 2713.0;20.959 2714.0;22.031 2714.0;18.46825 2714.0;15.323 2715.0;22.808 2715.0;19.345 2715.0;21.357 2716.0;21.473 on so on up …

Member Avatar for ld834
0
103

The End.