199,114 Archived Topics
Remove Filter ![]() | |
program of strack -------------------------------------------------------------------------------- Hi, I,m Arvind .I have problem in stack programming,please tell me how to enter no's in a stack and how to check for overflow & underflow using push & pop function. arizona | |
Hi guys, I have a problem with the following syntax: [COLOR=DarkRed]T -> T , k , T T -> nil T -> number[/COLOR] This is a BNF rule for binary trees. Assuming that [B]nil[/B] and [B]number[/B] are tokens, I need to remove the ambiguity of this grammar without restricting the … | |
hi rellay i am new in you forum but i think that i will intersted with you... my quastion is: how can i compressed any file as zip by php? i have a file and i want from user to download it as zip file and i want to compress … | |
i wanna know how i can write in C a compiler for checking the multiplication and the division of course... ;) | |
am calling Form2 from Form1, and depending on the input in Form2, I want to enable/disable buttons in Form1 when I exit. However, because I need to call Form2 header before I define class Form1, Form1 is not defined when the compiler sees my call to it. If I therefore … | |
i am suppose to multiply the two matrices together using a for loop, but the only way i can figure it out is by using printf( a[0][0] * b[0][0] + a[0][1] * b[1][0]) 4 times to find each piece. Please help. #include <stdio.h> int main() { int i,j,k; int a[2][2]={{1,2},{3,2}}; … | |
hey guys, im in ap computer science (java) and now we are doing constructors, and i am lost, i dont know how to make a constructor, i am soooo clueless, im starting to pick up but no way near close to undresstanding, can someone give me a crash course in … | |
hello my name is Jools... im quite new to asp and have a problem... sorry if i am not ment to post it here... Basically I have a page with a form where the user can select details…. This then searches a database for the results and then each result … | |
hi all, i am a beginner in java programming.Could anyone please provide source code for the following program. A program that reads a integer and breaks it into a sequence of individual digits in reverse order.TQ. | |
Hello, I am trying to set up my website to be able to accept coupons. I am working in JSP and want to be able to get the current date and compare it to the date stored in the database. I have a field in the coupon table named 'Expiry' … | |
hi everyone, pls solve me the following problem. i need a java program that stores the following string in a two-dimensional char array : "Bell" "Dell","Hell" and "Sell".extend the programe to read the array and display each caracter in a console window. thank you. shantuli | |
I have a problem. I have this code but the problem is how do i put the results in a histogram form. Can someone please help. #include <iostream> using namespace std; int main() { const int arraySize=30, rangeSize=9; int gross_Sales[arraySize]= { 2430, 3500, 9400, 14300, 4200, 1250, 9990, 5410, 5400, … | |
I have to use a while loop to display everything 3 times and then i have to use a do while loop to do the same thing when i added my while and do while loop it keeps on repeating like a millions times and i cant stop it can … | |
Hi, ive only started to program in Java for the last couple of days. I picked up a disk containing JDK 1.3 from my uni so that I can compile programs at home. I typed up this very simple program which is shown below public class Hello { public static … | |
write a function begins(string1, string2) that reurns true if string1 begins string2. Write a program to test the function. program: #include<stdio.h> #include<string.h> char begins(char sentence1[],char sentence2[]) { int i,j=0; for(i=0;sentence1[i]!='\0';++i) { if(sentence1[i]==sentence2[i]) j=j+1; else if(j==i) printf("True\n"); } return(0); } int main() { int i, j=0; char string1[100],string2[100]; printf("Enter a sentence:\n"); … | |
This is really urgent ..... I would be very thankful for anyone who could suggest me and help me out! Hi all, Can I club two exe files while developing a software... Details are as follows: 1. I want to develop a software in which I want to add features … | |
im trying too build an array this is what i have so far am I on the right track? // Fig. 6.10: RollDie.cs // Using random number generation to simulate dice rolling. using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.IO; // enables reading data … | |
I am getting a -NaN message and I don't understand why? The program so far compiles okay. But prints "the value of lat1 is -NaN." Any help would be greatly appreciated. # include<stdio.h> # include<math.h> float get_lat1(); int main (void) { float lat1; get_lat1(); printf("the value of lat1 is %f … | |
I gotta write a program that reads a file and determines a customers priority number. The program then builds a priority queue using hte priority number and prints the list of people waiting. Here is what I have so far int main() { int myValue[3][3]; myValue[0][0] = 53,000; myValue[0][1] = … | |
[B]Is it possible to convert from VB code to C and what is the best way to do this?[/B] | |
HI there guys any one know how to create the correct tone for the sound using c++? i manage to know the basic only c 262 d294 e 330 f 349 f 392 a 440 b 494 c2 524 This is from a handphone ringing tone how do i know … | |
I don't understand how to used [B]Interfaces[/B] WindowListener and [B]Methods[/B] of it. Please for give me example. Thanks! | |
Hello Everyone, I was wondering if anyone could show me how to call a function from inside a boolean statement. Something like the example below. I know it isn't right and was wondering if anyone could give me a hint or an example of coding it correctly. Thank you, hill0ster! … | |
Well I got the whole substring thing working.. thanks a lot. Now I've gotta struggle with the "stdin.readline()" which doesn't wanna work for some odd reason :P I imported the java.io.* i created a new BufferedReader ... and it just doesn't wanna work. Are there any other ways of getting … | |
I'm learn c++ alone and need help to write programs plz help me :cry: [COLOR=Magenta]A.Write is the greatest number?[/COLOR] [COLOR=Blue]You have to stor. In an array, twenty integer number given by the user. One these numbers are stored in this array, you have to find the greatest number and print … | |
I am going to the nearest Barnes and Noble store this weekend, with the greatful help of you, I need some C++ recommendation books for beginners. I know I already asked, but just thought I'd ask again, I have $50 so no expensive books. Overall, anybody with help gets a … | |
I can not figure out what to do. I need one html file to read an asp file for these 4 variables (1) intHrlyRate, (2) intWeeklyRate, (3) intMonthlyRate, and (4) intAnnunalRate. I am suppose to use arithmetic functions to calculate the intWeeklyRate (based on 40 hrs per week and assign … | |
thank you for your replies but, I can't open the program. program doesn't work. If you have any different ideas please contact me. thanks.... | |
Hi can any one help me with the code to reverse 2 strings with [B]unequal[/B] number of characters in them...read the first line and secondline relpace the second line with reversd first line...and replace first half with reversed second line... thanks, zoey | |
Here is my code. As always I don't understand what beginning asp 3.0 . The book says to do this code, but doesn't explain what vartodaymonth means or varTodayDate = day(now()) means. I am suppose to make two files one html file and in it have the months of the … | |
Hi everyone, I am trying to save the entire jtable (as an object if possible) to my disk and then be able to read that same file in the same table. First there are two buttons on my frame one is "load" and the other "save as" when the save … | |
I need some help!! I need to have a user input a phone number and then spit it out using StringTokenizer. This is what I have so far: import java.util.*; import java.io.*; class Prob8_2 { public static void main (String []args)throws IOException { BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in)); … | |
Anyone out there pliz help me.am new to c++ and the program am supposed to write has to accept 1. 19 country names 2. there populations 3. growth const and i have to use a formula (population*growth const) to find the growth of the country. dispalay sholud be like as … | |
Hi all, I'm trying to understand the differences between the 2 & whether it's worth the headache finding someone who can do xml, or should I just leave my site to be coded in html & CSS? Even JavaScript seems to be an issue b/c not all people have JS … | |
Hi all, Michelle here. I want to know, objectively, LOL yeh right, who thinks Pearl is better than PHP & why & if it's just as easy to find a Pearl Programmer than a PHP programmer. This is for DB applications. Pls. only respond to this thread if you know … | |
| |
i have got to write a program to read a set of program n print out the average. it will start by prompting the user for the number of numbers to be read and will then prompt for the individual numbers with a prompt such as Enter Number 23 to … | |
hi!do you know how to make a program in C that can run the "*" 1.from left to rith? or 2.from rigth to left? 3.up to down? 4.down to up? 5.combination of all... pls...pls...pls....pls...help me.. :sad: | |
![]() | Hi everyone I am new to java and am writing a program thats meant to have the following terminal output... Enter a number: 29 29 is a prime number. Enter a number: -7 Please enter a positive integer. Enter a number: 45 45 is not a prime number. Enter a … ![]() |
hi, can anybody help me , i need the following program to be developed in J2ME. writting screen saver program using J2ME. so if anybody know about this , pls help me regards, prakash | |
I have a client with a site I have maintained for a while at: [url]www.firstdomain.com[/url] The client just bought another domain to attract another audience: [url]www.seconddomain.com[/url] The client does not want to host a site at the second domain. They just want people to be directed to the first domain … | |
ok...i am trying to figure out how to read input .... i am reading input from the command line [code] sh% ./a.out < input_file[/code] within the input_file, it looks like this: [code]0 4 6 7 3 1 3 6 7 4 3 6 2 3 6 7 3 2 4 … | |
Hello there, why do I have this message when I try to use subTwoComplex in my testing file? The addTwoComplex works fine but not the "sub"one. What's wrong? thanks error C2039: 'subTwoComplex' : is not a member of 'Complex' *********header file #ifndef COMPLEX_H #define COMPLEX_H class Complex { public: Complex( … | |
| |
Hi Everyone, We are trying to set up our application in VB6 which has some user controls. When we are trying to load project and add the .OCX controls thru components options it gives error [B]"filemovecontrol.ocx could not be loaded"[/B]. We tried to unregister and again register a copy of … | |
Ok i have gotten stuck on this program and I need help This program is supposed to calculate the balance of a checking account after the user has entered the type of action (withdrawl, deposit) they would like to do. My output should be a report that prints the beginning … | |
The problem is that SOMETIMES, my SID gets embedded in the URL, although at the begining of every page I have this code: ini_set('session.use_only_cookies', "1"); session_set_cookie_params(60*60); session_start(); session_register("blabla"); if (!$_SESSION["logged_in"]) session_destroy(); etc, etc; So there are days/times when the SID isn't embedded in the URL (and in the links of … | |
I need urgent help with the following problem: Suppose there is a class AirConditioner . The class supports the following behaviors : turning the air conditioner on and off. The following methods are provided for these behaviors : turnOn and turnOff . Both methods accept no arguments and return no value . There … | |
G'day.. Am new to this whole object oriented stuff. But keen to learn. Am trying to compile this class but keep getting the following error when i declare anything that 'implements'. i remove the declarations and all subsequent code references and she compiles.. any ideas?? *********************START_OF_ERROR********************** ChatClientApplication.java:6: ChatClientApplication is not … | |
Hi! I had 1 problem in C, now I have another one. :o Please bear with me. I am learning the C language. Please run the following calculation in a scientific calculator. When the "=" sign is shown at the end of the calculation, be sure to press the = … |
The End.