64,152 Solved Topics
Remove Filter ![]() | |
This Is My Code:- [code] Begin gotoxy(31,1); write('Peters Petrol Pump'); gotoxy(31,2); write('=================='); gotoxy(0,4); write('Welcome To Peters Petrol Pump...Here Are Your Options:-'); gotoxy(5,6); write('1. Console'); gotoxy(5,7); write('2. Petrol Pump'); gotoxy(5,8); write('3. Exit'); gotoxy(0,10); write('Please Select An Option...'); read(StartingAnswer); if StartingAnswer =1 then Begin clrscr; gotoxy(30,11); write('Under Construction'); repeat gotoxy(30,12); write('Press Enter … | |
Hi everyone, I'm new to the forums and having a problem that I can't seem to fix, so it would be great if someone could help me out! Everything in the following code works except for the while loop. When it gets to the "Input another product? (y/n) :" line, … | |
Trying to have a user input their grades as letter values and then assigning the letters numbers to be saved in an array. For some reason I can't get case 1 to work correctly. All it does is ask for the lab and then the grade, but once you input … | |
Hello again everyone. I've been trying to finish this code that calculates the eigen digit (i.e. 2349 is 2+3+4+9=18=1+8=9. It wont give me a single answer though. And we are supposed to do it through a recursive function. The code looks like this: [code=c++] #include <iostream> using namespace std; int … | |
[code=php] <?php session_start(); session_unset('YourVisitID'); session_destroy(); header("location:index.php"); ?> [/code] I've use the code above to destroy my session after login, but instead of destroying it, It creates another session called 'PHPSESID'. I'm using XAMPP localhost. Please advise.* * page redirection works fine | |
In class weve been shown how to read from a binary file and read from a text file but Im unsure how to write text to a binary file? Heres my attempt so far, Can you help? [CODE] #include <iostream> #include <stdio.h> using namespace std; int main() { FILE *namefile … | |
HI I am software tester and want some small project which made in MS-sql server 2000 for the testing even if you have some corrupted file (not virus infected)please provide me . THANK YOU | |
I've been working with a class module to make my connection codes abit shorter but when i removed my connection from the class and made it public it was not working anymore. The way I use the class lcon = New ADOcon lds = New DataSet Dim ltb As DataTable … | |
I'm trying to design my UML diagram but I'm not sure about something. If I have a derived class that belongs to two other classes will the two other classes inherit the features of the base class? For example class Vehicle_Details inherits features from class People[I](is-a relationship AKA inheritance)[/I] while … | |
Is there any reason why the code below won't work (I mean as far as writing output to file, not as far as writing the correct output to the file): [CODE] #include <cstdio> #include <iostream> #include <fstream> using namespace std; int main() { ofstream fout ("ride.out"); ifstream fin ("ride.in"); char … | |
This is the first program I have had to do in 5 years so please don't be surprised by some of the mistakes. I am creating a program that will open a file and sort the integers inside that file using Insertion sort. There are 12 files and each as … | |
I wonder what the correct syntax is to delete All contents like below: [B]2D vector string vector double vector[/B] These 3 look like this: [code] std::vector<std::vector<string> > Word2(100, std::vector<string>(100)); std::vector<string> Word1(100); std::vector<double> Number1(100); [/code] Is it correct to do this: delete[] Word2; delete[] Word1; delete[] Number1; Thank you | |
I have a file named numbers.txt that looks something like this: 1243#74656453634#6356#56456456#565#1212121#78384 83#457#090#720347###24273#18712#478230478#57117 58125671#47464#74647#46474647#19192938#828##2583 5#2948284#6010203040# I need to replace all of the '#' symbols with '!'. Then I need to replace 3 of the'!' symbols to '@' but not knowing which ones. It could be the 2nd, 5th, 15th or … | |
hi ..... i'm making an animation but am having a problem Tkinter. the problem is that when i open the file with python 2.5 and execute the code then it works but by just double clicking on the file icon the program don't not work properly.its does not show the … | |
I am a noob that is currently trying to learn C++ for a programming class in highschool, and I am having difficulty with a particular project. Basically, I have to create a number guessing game that lets the user play as many time as he or she wants, while telling … | |
Hello all, I'm trying to write a program that will compute the real roots of the quadratic equation ax^2 + bx + c = 0 given by: x1 = (- b + sqrt (b^2 - 4ac)) / 2a and x2 = (- b - sqrt (b^2 - 4ac)) / 2a. … | |
Hey people! I have been using VB2008 since it came out now, and have also used the 2005 version, but I was just wondering, if there is ANY way to create a Chat Application, or any way to create an IM service. Please help me :) Thanks x | |
I have a design like this: CREATE TABLE moving ( id char(10), itemsList integer, .... ) CREATE TABLE itemsList ( id integer, itemID integer, quantity integer, describtion char (40), ... ) the id in itemsList will be repeat for each different item. I think it very inefficent, so is there … | |
I am currently working on something where I have to make two shapes which extend to a class called 2d shape. I am currently working on my Triangle class which is this: [CODE]lass Triangle extends TwoDShape { String style; Triangle(double width, double height, String style) { super(width,height); } private double … | |
Hello all, I have a form that contains checkboxes to update a database with either "Yes" or "No" based on the user selection. The check boxes are in an array with the values set to a "LinkID" example: [code=php] <?php //find the user's assigned links $rowlink=$row_rsUpdate['LinkID']; mysql_select_db($database_mambo, $mambo); $query_rsAssignedLinks = … | |
[code=php] <?php // connection to MySQL server mysql_connect('localhost','root',''); mysql_select_db('administration'); if (isset($_POST['submit'])) { $loginUsername=$_POST['username']; $loginPassword=$_POST['password']; $MM_redirectLoginSuccess = "validated.php"; $MM_redirectLoginFailed = "admin.php"; $MM_redirecttoReferrer = true; mysql_select_db('administration'); if(empty($_POST['username']) && empty($_POST['password'])) { die('<div class="error_up">Both field was blank</div> <br><br><div class="footer_padding"> © Copyright Cycle Tracks <span>®</span></div> '); } if(empty($_POST['username'])) { die('<div class="error_up">Username field was blank</div> <br><br><div … | |
Here's the problem: Ask the user for a floating point number until the user enters a negative number or zero. After each number the user enters print the highest and lowest number so far, and the average so far. Do not print the highest, lowest, and average when the user … | |
i'm having a syntax error when trying to use switch condition: control cannot fall through from one case label to another... my code is [CODE]public override Boolean intersect(Shape s) { switch (s.GetType().Name) { case "RealPoint": { s = (RealPoint)s; if (!(this.gspos > s.gspos) && !(this.gspos < s.gspos)) return true; } … | |
I have another question for my homework. Here is the problem: Keep inputting numbers from the user until the user enters a 0. After each number, print a "running average". That is, print the average of the last three numbers entered. Be careful how you handle the first two numbers … | |
Hello Friends I ran into a syntax error updating a form, I have added a comment to the line below, Please could anyone tell me what I did wrong!!!! [code]<cfquery name="update student" datasource="#Request.super#"> UPDATE student SET studentfirstname='#Trim(Form.studentfirstname)#',. studentlastname='#Trim(Form.studentlastname)#',. address='#Trim(Form.address)#',. city='#Trim(Form.city)#',. state='#Trim(Form.state)#',. studentage='#Trim(Form.studentage)#',. studentclass='#Trim(Form.studentclass)#',. studentstartdate='#Trim(Form.studentstartdate)#',. studentgraduationdate='#Trim(Form.studentgraduationdate)#',. comments= <cfif Len(Trim(Form.comments)) GT 0> … | |
Hi, I have a DetailsView on my page that connects to a SQL server D/B and shows its data.However, It is not visible on my page when I launch my browser. Any ideas or past experience with this? Thanks for reading. | |
Hello, In my java class we've been asked to create a painter program that allows the user to draw on the screen (as with a paintbrush). I had no trouble creating the program and having it perform up to standards with what was asked, but something that troubles me and … | |
Hi i am developing a voting system. i want to show the result as in image. plz help me. [ATTACH]5243[/ATTACH] i am blanck. Can't think how to achive this... | |
Here are the tables in my database. [code] music ( id int(11) NOT NULL auto_increment, catid int(11) default NULL, song_title varchar(255) default NULL, artist varchar(75) default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1; [/code] Category [code] category ( catid int(11) NOT NULL auto_increment, name varchar(30) default NULL, PRIMARY … | |
Hi i m trying to get the values from database and put it into the select options.. i m using code- [code] <?php $con = mysql_connect("localhost","cdccpl","d123"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("cdccpl_aus", $con); $result = mysql_query("SELECT * FROM bak_bill_cust"); while( $row = mysql_fetch_array( $result ) … | |
Can anyone tell me why this is happening? All the code and input files are below. Stack.h [code] #include <iostream> #include <vector> using namespace std; const char FILE_NAME[] = "palindrome.txt"; typedef char StackElement; class Stack { private: vector<StackElement> myVec; public: bool Empty() { return (myVec.size() == 0); } void Push(StackElement … | |
Looking for the best way to search a string for project that must test for bad input. Must be able to detect wrong characters, letters, etc. | |
I assigned String ^ Box1 like this. [code] String^ Box1; Box1 = comboBox1->SelectedItem->ToString(); [/code] What I am trying to do now and wonder is if it is possible is to put [COLOR="Green"]"comboBox1->SelectedItem->ToString()"[/COLOR] to a vector. For the std:: it would look like this: [code]std::vector<string> StdVector; StdVector[0] = "comboBox1->SelectedItem->ToString()"; [/code] My … | |
What would need to be done in order to make an application go full screen? this means NO task bar, or Title bar. I did find a small bit of code (a while back), but it didn't work. Any ideas/solutions would be great! :) Thanks! | |
Hello EveryOne I need Help here ,i have been trying to view this GUI but it keeps showing me this erroe `NoClassDefFounderError`. Anyones help would be appreciated. import java.awt.*; import java.awt.event.*; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.Statement; import javax.swing.*; public class HeartLandHomeFinance2 extends JFrame { JPanel Panel; JLabel … | |
Good day all! I have been working on a project that requires me to to the following: Select a user from a list, on submit go to next page. The next page contains the session variable $id of the selected user. On this page, I am assigning menu permissions. I … | |
Can someone through this forum help me out to design Financial Accounts System including Ledger posting, or provide me a copy of the database design or allow me to download such a database design I will realy appreciate the cooperation. Thanks my e-mail is [EMAIL="amjad_munir@hotmail.com"]amjad_munir@hotmail.com[/EMAIL] if some one wish to … | |
Hello, I have dynamically allocated memory that I would like to share across threads. More specifically, I have an ACE thread pool, which I use to process requests on dynamically allocated ACE_Method_Request objects. These objects are created once at startup, and then processed throughout the system's running state (i.e. the … | |
I need to build a simple integer caluclator that perform arthmetic functions of addition, subtraction, multiplication, modulus and disvision. The calculator contains an Accumulator that stores the current result. The Accumulator is also involved with each operation. Make sure that you define a class for this program. Once started, the … | |
Here's a problem we're supposed to do for my class: Input five numbers from the user and print the highest, the lowest positive number, the highest (closest to zero) negative number and the lowest number. If the user enters all positives or all negatives, print "none" for the missing output. … | |
Hi All, I'm a complete novice when it comes to ASP, so please bear with me. I have a GridView bound to an Access Table that has no sorting on it (which is as it should be) and a Combo Box bound to the same table that is sorted on … | |
Hello Every time i input the character [B]'[/B] and [B]%[/B] in the textfield it generate an error in my query. [B]The error:[/B] Syntax error in query expression 'Title LIKE '%' %%';'. [B]My code:[/B] [CODE=asp]adoList.Open "SELECT * FROM qryOPAC WHERE Title LIKE '%" & varExp & "%';",CoNN,3,3[/CODE] tnx in advance.. | |
Hey can any one help me i'm doing a hangman program and want to display blanks where a to z is. how can i do this? I've got it replacing "a" but can't get it to replace the rest i.e. b to z any help would be appriaciated. [code] show … | |
Hello everybody. I want to ask for some help. I need to type program that calculates areas of rectangle, triangle, circle and ellipse ( user input: rectangle = lower left corner point, length and width; triangle = top point, height, base; circle = radius and center point; ellipse = center … | |
I dont clean the unnecessary namespaces that .net automatically generates. Is there any problem with that? | |
how do i disable the BACK button of IE.can it be done using session.if so can anyone please explain me how it works and give me a bit of information about this session thing as i have no idea about it and when i searched the web it left me … | |
hi everybody..... i'm using an array to make a program but i'm not able to find the size (length) of the array.can anyone tell me how to do this? | |
private static int readFile (String filename, String[] capacities) the file whose filename is given as a parameter, and fills array of strings representing capacities. Error checking: Each line of the file should be checked for the following errors. Lines of the file that contain errors should not be put in … | |
Hi everyone I have a simple yet annoying problem. I'm trying to change the selected color in a stringgrid, ie when selecting a cell the background must change color. The grid has no fixed rows or columns and only one column (like a simple list editor). I've overridden ondrawcell for … |
The End.