199,114 Archived Topics
Remove Filter ![]() | |
I've ran into a problem :( Something is wrong between my functions. When I try to take 'num' from the main function and put it in the getFib() function, it turns into some crazy number, sometimes random. Why wont it stay the same number that was declared in main? Sorry … | |
[B]This is the problem.[/B] Reversing the elements of an array involves swapping the corresponding elements of the array: the first with the last, the second with the next to the last, and so on, all the way to the middle of the array. Given an array a , an int … | |
I'm working on a coffee shop project for my teacher that has 3 different forms and a module I thought I was done when she told me to. Declare an "AddToOrder" sub procedure to keep a running subtotal of regular and/or decaf coffee ordered. I then started to decipher what … | |
Hi, This clamshell menu code works fine in IE and Safari, but level 3 does not work in Firefox. When I click on 3-Level Menu - Level 2, the menu closes. Clicking on 3-Level Menu - Level 1 again shows the level 3 items were indeed opened. The 2-level menu … | |
Hello, I have heard a lot about SQL Injection. I was wondering how does an injector come to know about the table/column name when they cannot see the asp codes in a website? Can someone explain plz? Thanx | |
Heres the part of the code That i have: [CODE] #include <iostream> using namespace std; const int NUM_DIV = 6; //Number of divisions const int NUM_QTRS = 4; //Number of quarters void divisionSales(double [][NUM_QTRS], int); void divisionChange(double [][NUM_QTRS], int); void quarterSales(double [][NUM_QTRS], int); void quarterChange(double [][NUM_QTRS], int); int main() { … | |
I want to get out put as folows: [code] 100 HE01 {number of line in this file} {file created on time stamp} 200 LTXS {number of line in this file} {file created on time stamp} (if the file does not exist then it should say FILE NOT AVAILABLE [/code] to … | |
Hi all... How can I control any postfix expression is valid or not??? I controlled it using a stack(the code is below) and it worked but I 'm using the stack again after clearing it for evaluation the postfix expression to the infix expression.I'm using the stack twice and I … | |
Hi. I have extraordinarily limited knowledge of (in?) PHP. Anyway I was trying to fiddle with my website and I did something such that when I click on a menu item on my website I get this message: Parse error: parse error, unexpected ':' in /home/mercurys/public_html/preview.php on line 46 Other … | |
i have made the following but the user should get 10 chances to guess the right number. after the 10 guesses or if the the guesser gets it correct it should ask if the player wants to play again and react accordingly. [code=cplusplus] #include <iostream> #include <cstdlib> #include <ctime> using … | |
hi, how to validate email id in php...please send some code....lydia | |
Hello! I'm just new here, and I have just completed a short pascal tutorial. So, in this n00by thread I wanna ask some simple stuff, and sorry about the incovience (you will face many questions lol) but understand that this is my only way to learn something I really love … | |
We have an Access database that another department is taking over and considering switching over to FileMaker and using on our website (which we manage) with Sequel but - we have heard there are problems with using FileMaker with Sequel....does anyone know if this is true? and if so what … | |
Hi all, I have a very weird problem. I develop a game on Nintendo DS using DevKitPro. I have a method that get a value in an XML file : [code]sscanf(xEffect.getChildNode("mpmodif").getAttribute("value"), "%d", &mpModif);[/code] With the values I have get, I instanciate a new Effect : [code]Effect *test = new Effect(durationTime, … | |
Ok, I made some changes. I am down to 1 complilation error and I can't figure out what to do. Here is the error message: C:\Documents and Settings\Triffee\My Documents\Math316.java:87: reached end of file while parsing } //end CountPlusFive method ^ 1 error Tool completed with exit code 1 [COLOR="Red"]I have … | |
hi, I am going through this tutorial and i am stuck, here is my problem i can read the images from the db but it displays the same image(the first image inserted). here is the code: [CODE] <script runat="server"> Public Sub Page_Load(sender As Object, e As EventArgs) ' Create Instance … | |
Ok, I am getting 2 errors on line 65 it says class or interface expected and again on line 65 saying { expected. The assignment is to Modify the Payroll Program so that it uses a class to store and retrieve the employee's name, the hourly rate, and the number … | |
Hello, I hope someone has the time to help me. I have a form that lists a variable price in <input type=hidden name=price value=1> I have a drop down box letting the user choose a quantity in <select name=quantity> <option value=1>1</option> <option value=2>2</option> etc... I have a html form input … | |
Hi I am currently taking an XHTML class and we are now dealing w/ JavaScript and for some reason I am having the worst time trying to set this assignment to where the scrollbar color is what I set it to. I am using internet explorer 7; for some reason … | |
Hi All, I want to access rptImageControl at runtime to change the image displayed in the control. Is it possible? I'm getting error "Object does not support this method". Also how to display the image from the database on rptImageControl? | |
I am new to web development. Can somebody advise me on how I can pass an ArrayList from my JSP to action class. I have the following link in my JSP which links to an action class. <li> <A href="inboxMsg.do">Link to action</A></li> Can I pass the arraylist in the above … | |
Hi all My friend sent me this C++ program that opens up notepad and starts typing, its a joke he made to scare his little brother, I tried to modify it to display more of the message "Im watching you" but when I do it wont compile and I dont … | |
i have a code for complex number but when i key in 7+i3 and 5+i2 into the operator+ it should return me the result of 12,5 but i receive 430. What is the problem wif my code? [code] class Complex { friend istream& operator>>(istream&, Complex&); friend ostream& operator<<(ostream&, const Complex&); … | |
1. Create a file with the following data: No of students on file – type integer Then for each student Student ID Number-type long Student name- type integer[81] Total credits- integer Grade Point Average- float Sample data: 3 0558899 Roger, R. 12 3.8 5646489 Jack, J. 24 2.5 1641564 John, … | |
this is the homework I have to do [QUOTE] This homework is due in week 3. You must work on the program outside the formal laboratory sessions. The program must be ready to be executed at the start of the scheduled laboratory session. Remember you may be asked to explain … | |
i'm new to c++....i'm making a project here but i have a problem with this: reading values as type char and converting it to type int...such that 54 can be read as '5' and '4' but after that it will be read into type int...can anyone please tell me how? | |
I have a question on an assignment that has me confused. The question is how many times does the following loop execute? For I = 1 to 10 PRINT I End For (I) Now I am not sure if this is a trick question or not. I do not see … | |
Hi, I'm basically just trying to submit this whole page into an email when I press submit at the bottoM...any suggestions? [code] <%@ page language="java" %> <%@ page import="trader.webservices.util.Utils" %> <%@ page import="trader.webservices.data.UserInfoDAO" %> <%@ page import="trader.webservices.data.UserDataVO" %> <%@ page import="java.util.*" %> <%@ page import="java.text.*" %> <% String theAcctName = … | |
Hi,every one I am going to find whether the given number is a armstrong number or not and I have done my level best and I need your help in one thing,If any mistakes,please reply and I need your other views to develop my C skills.hope help from you all … | |
Can Any One Tell Me How To Handle Registers In C ,while We Are Dealing With Mouse Handling ... Can Any One Explain With Some Example. | |
Hey, Iam working with PDB files, and have some problems with extracting and calculating... a PDB file look like thise for those how dont know: see attached file What I want is to read the whole file, find were there are lines with CA atoms and calculate the distance between … | |
Hello guys, I have tried unsuccessfully the following problem with sed and awk grep commands: [B]- Try to find a specific word in a text file, and when you find it, [B]add [/B]after that word the number of occurrence of that word, but leave the first match unchanged, i.e. no … | |
Hi to all am new to asp and am parcipating a project on asp in our company... here i got one prob that passing the parameter thru onclick.. i tried a lot but nothing materialize.. i have 5 buttons here.. for all buttons same function that i have to submit … | |
Hello there. Is there anyway that you can convert the '\n' in windows which is 2bytes to the '\n' 1byte so that the linux could read it? | |
hello, why the output below produce number 0, eventhought there is no 0 in the array? [code=c++] #include <iostream> #include <conio.h> #include <cstdlib> #include <cmath> #include <cstdio> #include <ctime> using namespace std; int i; int x[7]; int A[7], B[7], C[7], D[7], E[7], F[7]; int Min( const int *A, const int … | |
Hope there are some good gurus out there that can lend a hand to this discussion. Can anyone here give me some advice on methods and strategy for maintaining and upgrading existing Access DBs as my VB6 (not NET) application develops and/or grows? The story goes like: MyApp.exe and my … | |
I get the following error when I run the script: `Parse error: syntax error, unexpected '{' in /home/rjbind/public_html/cert/score.php on line 61` Here is the script syntax: <p align="center"> <a href="http://serverpg.com/clients/"> <img border="0" src="http://www.rjbind.com/cert/header.jpg"></a></p> <?php /* ServerPG Certification v1.1 Copyright (c) 2006 serverPG.com This is not intended for redistribution Do not … | |
Hi, I have this code. It works fine using PHP 4 and MySQL 5.0. but it doesn't work at all on my webhost (php4 mySQL 4) and I cannot for the life of me figure out why. Here's my code: /<? // Connect database. include("connectdb.php"); //if "Submit" button is clicked … | |
Hi guys. I know that the web has this magical thing called JavaScript which makes making some types of web pages much easier. I was wondering if you could help me by providing a code snippet or something for this situation: I am making a site for my art teacher … | |
Hello, I've been trying to figure this out but still no luck, can anyone see what im doing wrong here?, the if statement just isn't working! Thanks, [code] <% String name = request.getParameter("username"); %> <% if ("name" == null) { %> <jsp:forward page = "invalid.jsp"/> <% } %> [/code] | |
can someone tell me why my getline statements aren't working correctly? My compliler seems to just skip over them in my functions... here's my code: #include <iostream> #include <string> using namespace std; void locate(string[],int&); void substitute(string[],int&); const int MAX_LINES=7; int main ( void ) { char command; int i,currentLine; string … | |
hello I am using a program called MPLAB-SIM and I am trying to test my interrupts on a 16F class pic my interrupts registers are setup like this movlw b'11001000' ;sets up INTCON, with PEIE and PORTA interrupts allowed movwf intcon ;uses w to set intcon interrupt control movlw b'00011110' … | |
I have a problem. I spend hours each week typing data from Excel in one format in excel into another format in excel! My theory is that if data is in excel at no point should I have to do any manual data entry to manipulate data into my desired … | |
Could someone find an obvious reason this while loop performs once and then breaks? I don't think the condition on the while loop is dropping it out. I must be when I call the formatted writers but I 'm not sure how to make it stay in the while loop. … | |
Well I did not have a problem with my last program assignment which involved me making the Student class that I attached below, But in my new assignment i have too Write a program that will use the Student class developed in the previous assignment to provide a menu-based interactive … | |
Heres the situation: I am taking a C++ course online. I had a PC up until about a week ago when i got a Mac. Now i must do all my work on the only computer i have, the Mac. I turn in my work at the end of the … | |
I have a systems programming problem. Its a group of small programs that interact with each other to implement a mutual exclusion problem. I was wondeing if somebody could comment them to help me understand them better. Would be very much appreciated. They are toilets shared by boys and girls. … | |
I'm using a class to generate a list of primes. Im checking a series of numbers being incremented by two against the current vector of primes to see if any primes divide into the number evenly. If no primes divide into it I add the number onto the end of … | |
I know this is simple, but I need a bit of help. I need to write a program that will prompt the user to enter three integers, and should then print the numbers in ascending order. The hint the teacher gave was to use scanf three times? I'm just confused... | |
Hi, I have never used a forum like this before but I am stuck! I have to write a C++ program that allows the user to enter up to 20 students info. It must include Nem, Exam 1 grade, exam 2 grade, Homework average, final exam average. For each student, … |
The End.