199,114 Archived Topics
Remove Filter ![]() | |
Memory allocation of variables declared in a program is ------ a) Allocated in RAM b) Allocated in ROM c) Allocated in stack d) Assigned in registers. which one is correct please tell me the answer in 24 hrs... | |
I have come across a slideshow I want to use on my site. I am using coldfusion to write the site, but know very little javascript. I cannot figure out how to get the text to show up and change with each slide. I am posting all of my code. … | |
hi can anyone tell me what do we mean by: system( "PAUSE" ); and system( "CLS" ); in C++ thanks | |
Hi, I'm very new to C++ and I am getting the following error when I try to compile: [Linker error] undefined reference to `CSerial::CSerial()' [Linker error] undefined reference to `CSerial::Open(char const*, unsigned long, unsigned long, bool)' [Linker error] undefined reference to `CSerial::~CSerial()' . . . etc. This is the code … | |
Hey everyone, this is a big one. The question has asked that I define functions and then write the function main to test the functions I wrote. I keep getting the following error at my first cout in main: error C2679: binary '<<' : no operator found which takes a … | |
Here is my problem I have a league system, however to input a teams score, I select the team via input of an int ID number (int) however I need to enter a the Team name (String) from the array. I cannot get it to work. Can someone please help … | |
[I]hi..[/I] my system should select the maximum QuestionNum from one of the my table in the database. after all, i would like to increment the value QuestionNum to 1... but i keep on receiving error [B]"[I]Cast from type 'DBNull' to type 'String' is not valid." [/I][/B]this is my code... Public … | |
Hi, I am going to ask a question which is small bit silly but for me not as i want to grasp this information in mind. The question is i have seen samples of different codes which have as following [code] Class A { int [] arr=new int[5]; public A() … | |
Can someone recommend quality script for news/article portal? Thanks. | |
Hi i basically new to visual c# and i want to create a stock portfolio program to store my stock information, i have decided to use SQL server 2005, but i'm not sure if i should use mangement studio that comes with sql server to create the database or a … | |
I was executing a simple core java application using JDK1.5 I wrote code and complied using javac it gave some errors that i fixed and at last it got complied successfully But when i tried to exeute it using java it gave me an error message Error in thread main.NoSuchMethodFound … | |
Is it possible to have a perl script and a bash script in one file? Like: [code] #!/bin/perl print "This is perl"; #exit perl #!/bin/bash echo "This is bash" exit 0 [/code] This is probably just a complicated solution to a simple problem. I have a perl script, and at … | |
I have a very specific problem. Does s/// work with strings that are contained in single quotes? I've been debugging and I'm trying to replace a string that contains a $ in it. If I use double quotes, it works for the string up until the $. If I use … | |
Hi friends I am using mete tage to redirect the page in my php script.but the latest version firefox only not support the meta tag page redirect option -- unable pass the query string values. but older version its working correctly. How can i fix the issue . Please advice … | |
[B]i want to disply the database content on webbrowser . The program writeen syntax free but it can not display anything on web browser [/B] [B]why ? [/B] [B]i can use the MS Access 2000 database[/B] [B]plz help me [/B] [B]code is ..[/B] [B]#!usr/bin/perl[/B] [B]use Win32::OLE; use Win32::OLE::Const 'Microsoft ActiveX … | |
<html> <head> <title>student details</title> <script language="JavaScript"> function sum() { window.document.form1.total.value=parseInt(s1.value)+ parseInt(s2.value)+ parseInt(s3.value)+ parseInt(s4.value)+ parseInt(s5.value); } function grd() { var s1,s2,s3,s4,s5,avg; s1=parseInt(window.document.form.s1.value); s2=parseInt(window.document.form.s2.value); s3=parseInt(window.document.form.s3.value); s4=parseInt(window.document.form.s4.value); s5=parseInt(window.document.form.s5.value); avg=(s1+s2+s3+s4+s5)/5; if((s1>=40)&&(s2>=40)&&(s3>=40)&&(s4>=40)&&(s5>=40)) { if(avg>=70) window.document.grade.value="distinction"; if(avg>=60) window.document.grade.value="a grade"; if(avg>=50) window.document.grade.value="b grade"; if(avg>=40) window.document.grade.value="c grade"; else window.document.form1.grade.value="fail"; alert("sorry u need to improve"); } alert("congratulations"); } function … | |
[code] void entry(int itemsales1[255][255], int itemcount1, string itemnames1[255]) { int count; char *days[]={"Monday", "Tuesday", "Wednesday", "Thursday", "Friday"}; cout << "Enter item's name: "; cin >> itemnames1[itemcount1]; for (count = 0; count < 5; count++) { cout << "Enter " << days[count] << " sales: "; cin >> itemsales1[itemcount1][count]; } return(itemsales1, … | |
I can't figure out what I have wrong in teh following program. I am trying to count total characters, vowels, and consonants. I have even worked through it with a friend and neither of us can figure it out. The code follows: [code=cplusplus] #include <iostream> #include <string> #include <cstring> using … | |
I am making a tic tac toe game, and for the grid, I had originally made 9 variables to represent the grid's spaces, but instead, I would now like to use a single char array. I can make the array and print certain parts, but I can't change them. For … | |
i've written a code for insertion in a linked list for all the 3 cases that is ...at the end,in the beginning & in between.....when i run this code then it runs successfully for insertion at end and in the beginning ,it is also showing no errors while compiling the … | |
| |
Hello. I have an ASP page that require printing. The page is about showing some data from database. I use the simple javascript printing : [B]javascript:window.print() [/B]The page design use some css templates. Well it does print. But it only prints the images and the texts. The print out seems … | |
Hi, i've got a component that displays two JSpinners with a JOptionPane but the JSpinners are stretched across the dialog window. Does anyone know how i can format the JSpinners so they're smaller? Here's some of the code [code] import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.text.*; public class TComponent … | |
I am creating a DefaultSingleSelectionModel subclass. Is there anyway to discover what component is the owner of the model from inside the model? | |
Hello i have an important homework assignment which is due up on mon 26th and i need a competent java programmer with netbeans expirence. Problem is as follows: It's a small project and i have basically designed all the forms and buttons needed etc. Now i need someone to link … | |
[COLOR=#000000]Hi ! I have a problem in connecting JSP pages with My SQL database using JDBC connector. I m using:[/COLOR] [COLOR=#000000] [/COLOR] [LIST] [*][COLOR=#000000]For TOMCAT -- apache-tomcat-5.5.23[/COLOR] [*][COLOR=#000000]For JRE -- Java EE 5 SDK[/COLOR] [*][COLOR=#000000]For database -- MySQL 5.0.37[/COLOR] [*][COLOR=#000000]For JDBC -- mysql-connector-java-3.0.17[/COLOR][/LIST][COLOR=#000000] [/COLOR] [COLOR=#000000]JSP pages other than database working … | |
Hi, I am making a small software. As a part of the Command Line Interface I am supposed to include the "tab help facility" .Incase the user is typing a command and in between he presses the Tab key, the software should display all the avavilable commands. I am unable … | |
As the code was entered on this forum, I spotted the damn error. Sorry for noobing it up. >_< | |
code of genertaing 100 arrays of size 10 with random numbers in it? in c++ | |
I have created the following stored procedure in sql server 2005.I m using asp.net with C# 2005. Can someone please rectify my errors why i m getting such type of the errors... [code] ALTER PROCEDURE CompanyStoredProcedure @uspcompanyid INT NULL, @uspcompanyname VARCHAR(20), @uspaddress1 VARCHAR(30), @frmErrorMessage AS VARCHAR(256) OUTPUT, @RETURNVALUE AS INT … | |
Hi, SELECT * FROM veriler WHERE (name LIKE '%in%') This line doesn't work in Ms Access, IN either. No error is given is well. But It works in SQL server. How can i do in Access? Thanks | |
I am trying to write the tic tac toa game using java.I have problems & in need of help....HELP | |
i have used a link button and write some code on click event of this. the application is working fine on my system but when i deploy it to server the link button click ebent not fired. can anybody tell me the reason? | |
For my C class, I have to write a program where the user enters how many fahrenheits he will be entering, but the fahrenheits have to be in an array. So a dynamic array seems the obvious choice. In main, we can only have initializations and function calls. For example, … | |
I've finished my assignment (messily) and it works well enough in the uni linux computers - but I can't make file input work at home under XP. I wouldn't have thought that the windows/linux change would make a difference with the JRE... (But then I'm new to this "com-puuuu-tah" stuff) … | |
[B]hi frinds this is ram, the following program is my problem, i don't know how to do this program plz help me [/B] create a GUI solution that displays a collection of some sort. The collection must minimally be 4 x 4 (four or more categories and then four or … | |
Hi all, I've been working on a program that simulates a racquetball match. The problem I am having is getting the match to end when one player is the clear winner of 'n' games. I've tried adding modules, altering loops, adding variables, etc. Is anyone able to help by pointing … | |
Hi I am having trouble creating a system to log in to a system. If you look at a picture its like this. User selects thier user name from a dropdown box, and then select thier Picture(instead of typing in a password to login. There can I get more info … | |
I have this class: [code] class Pizza{ protected: string desc; public: Pizza(){ desc = "unknown pizza"; } virtual string getdesc(){ return desc; } virtual double cost(){ return 0; } }; [/code] And one of its subclass: [code] class Small: public Pizza{ public: Small(){ desc = "Small"; } double cost(){ return … | |
Does any one know of a complier that supports the 80 bit long double?? Or do you have any idea how to get one on VC++ 6.0 Thanks | |
Hey all, I'm doing hw, and I did a desk-check for this program and got completely different answers than that of the computer when the program was put into the compiler. The question says to consider the function `defaultParam` void defaultParam ( int u , int v = 5 , … | |
Hi there, how can i Create non rectangular labels? I need to create a circular arena and the labels will be the seats. Thanks and Regards, Luke | |
I have this error but cant seem to see why. This code compiled would give 1 error. Anyone please advise, thanks. [code] #include <string> using namespace std; class Beverage{ protected: Beverage *beverage; string desc; public: friend class Bev_Iterator; Beverage(){ beverage = 0; desc = "unknown beverage"; } virtual string getdesc(){ … | |
Well, I happened to download Dev C++ on my laptop today ... I jus wrote a simple "Hello World" program .... but when I compile & run ... compilation is successful but the result window flashes & disappears ... Can anybody plz help me with this?????????? Also, how can I … | |
[COLOR=royalblue][B]hi [/B][/COLOR] [COLOR=royalblue][/COLOR] [COLOR=royalblue][B]i need help :lol: [/B][/COLOR] [COLOR=royalblue][/COLOR] [COLOR=royalblue][/COLOR] [COLOR=royalblue][B]how can i write a code (php) for "tell a friend" ?[/B][/COLOR] [COLOR=royalblue][B]i mean i want to tell a friend about a web page by sending an e-mail from the same page[/B][/COLOR] [COLOR=royalblue][/COLOR] [COLOR=royalblue][B]thanx in advance [/B][/COLOR] | |
When you output data to the screen do you recommend using cout or printf, I must admit when I first starting using C++ last week I really liked cout. Now I like printf better, It seems easer to format the output like you need it. I am not really sure … | |
How to sort a number of elements in stack1 ordering with the smallest is on the top of the stack, and you can use temporary stack 2?? What is the idia and time complexity of your algorithm? Can any one push me to idea?:eek: I can do it with 3 … ![]() | |
Hi there folks. I am a wannabe in Java. Can you guys help in recommending books (e-books preferably) I can get to jumpstart me. I have got quite an experience in other languages like vb.net and c# so where or how do I start? Thanks for the help! | |
I have an Excell file that I need to read to be able to bring the cells into a struct. I have tried using fstream and I get garbage. How can i go about this?? ![]() |
The End.