199,114 Archived Topics
Remove Filter ![]() | |
i would like to make a client choose with words rather than numbers. Instead of the conventional way of using numbers to retrive commands i need to make a client write words for example they type in "add" to get 2 numbesr to add and so on. any help is … | |
i was wondering whenever you create a file in c++ where does it go cuz i've never seen anyone specify the root.. | |
Okay, i have written a code to figure out the area of all different shapes but i can't get it past hte pasrt where the client chooses what they want to find the area of. this is my code: [CODE]#include <iostream> #include <cmath> using namespace std; int getChoice(); int circle(); … | |
Hi all. How do you get values from an appended url string using JSTL? For example: redirect.jsp?pageid=23 -how would i get that value? Thanks. | |
[COLOR=DarkSlateBlue]undefined[/COLOR]pls!help me to my project in cs programming about in the smallest and biggest and to find it averages!!!!!!!!!!!!!!!!!!!pls!!!!!!!help me!!!!!!!!!!!!!!!!!!thank you!!!!! | |
i have to decide a program to "satisfy" my crazy private tutor .This program reads in 2 input extremely large postive integers. It will then output their sum. However , as C++ got limit in int, so i think i need to use string variables to represent the values..then use … | |
see the attachment Prac11 on how to write GUI | |
Hi all , I tried one simple animation in Swing . Here's what the program has to do : when a button called "play" is clicked a circle should be moved from upper left corner down to the lower right corner. [code=java] import javax.swing.*; import java.awt.event.*; import java.awt.*; public class … | |
Hello, I need to remove letters and characters from a request.querystring in order to convert it into an integer. This is only extra precaution from people screwing around in the address bar directly. I have enough protection in place to protect errors. Let's say that I want to retrieve a … | |
I am very new to C++ and one of my homework assignments involvemulti dimensional arrays. I was able to initialize and input and display the array (4x4) but the last step is to swap the data of the row to that of the column. Tried different ways and unable to … | |
So I've written a code to get an acronym of the phrase inputed by the user. The only problem is that it insert an extra line in the result which I don't need. I'm not sure what is causing it. Here is the code and the results: import string def … | |
I'm trying to get a grasp of inheritance in Python but am having problems. I am trying to create a derived class but want the derived class to only provide an initialized instance of the base class. Specifically I would like to inherit from [inlinecode]OrderedDict[/inlinecode] as shown in the following … | |
Hi everyone, I'm new to this site, and hope that the members can help me I need to write a pseudo code for a conversation between a user and a software agent. This should be like a conversation where the user will say something and the software agent will reply … | |
This is my assignment and im pretty confused. Our book is a horrible book, and i cant seem to understand much of it. So i was hoping maybe someone could point me in the right direction in getting started. tHis is what we are expected to do. Write a program … | |
I want to make a code that searches a text file and finds a certain string, and then changes that string to another string. First im going to have it input the whole file, and i am couting it too, so that i can make sure it worked. But it … | |
i am working on a cod of (attaxx game),and i have a problem with the buttons i can determine the co-ordinates (x,y) of the button and i want to change its background color but i do not have a reference of the jbutton object it self.is there is any way … | |
![]() | Hi I want to develop a online multiplayer game like Poker where anyone from anyone can login and play the game. Its like server client interactive game. I am confused on the software requirements. I mean what should I use and what not? Can anyone suggest what to use? Any … |
Write a TSR program that changes the background color of the screen to red every 5 second and then white next 5 second, And this continues until you press ‘Q’ It should not modify the text displayed on the screen. Hint: 1_ Intercept Keyboard interrupt (0x09H) 2_ Use video text … | |
I am very new to programming and am in a class that has quite the frustrating instructor. He gives very simple examples then asks very complex questions. Complex to me atleast. Anyone who could shed some light on these would be greatly appreciated. Write a program to play a number … | |
I have two slight problems I simply cant find an answer to anywhere, the first, only small. I have my database printing out items from a database into a select box, this is giving me blank options even though there are none in the database, I remember having this problem … | |
hi, i'm a final year engg. student of MU. I require a mini project based on SQL related to real system scenarios. PLZ HELP!!!!!! | |
i have a code of a projectile but... can these code be shorten or not??? i need new version of this and some times if i played this one some error was done hope you could help me to fing the error Option Explicit Dim Angle, Theta, y, x, t, … | |
Hai everyone, I need to find the Latitude and Longitude values for any one of the Particular location from the Google Maps, using pure java class. I know, it's done by using javascript, but i need to use pure java class not javascript. If we provide full address of the … | |
Hi, Friends In some websites i have seen that in a website called mginger.com in that invite tab when i keep a mouse over the Text field in the right hand side of it shows that please enter the name in a layer .It looks very nice .My friend says … | |
Says grade isn't initializing import java.util.*; public class Test { static Scanner console = new Scanner(System.in); public static void main(String[] args) { char grade; switch (56 / 10) { case 0: case 1: case 2: case 3: case 4: case 5: grade = 'F'; break; case 6: grade = 'D'; … | |
Okay so I'm supposed to read in grades from a file add them together and get the average the letter grade the minimum grade and the maximum...no setting variables to the read in...and the sentinel is -1 at the end of the sequence...I'm a bet messed up...this is what i … | |
I have been checking on others letter count programs and none so far are like mine so I'm now making my own thread. My assignment, which is due tomorrow! *Yikes* Is for me to make a text file in notepad and then important that to my code. Then, I has … | |
I have written the following code to retrieve image from mysql database: <?php include('dbinfo.inc.php'); include('../functions.php'); mysql_connect("localhost","username","password") or die("Failure to communicate"); mysql_select_db("db") or die("Could not connect to Database"); $query = "SELECT content,size,type FROM upload WHERE id=1;"; $result=mysql_query($query); mysql_close(); $content=mysql_result($result,0,"content"); $size=mysql_result($result,0,"size"); $type=mysql_result($result,0,"type"); header('Content-Type: '.$type); print $content; ?> It is working.. Now I … | |
I am doing a c++ assignment and just need a little help. I would just like to know how to get the ASCII code number after inputing an ASCII character. The user of this program should be able to input an uppercase letter and recieve the ASCII code value and … | |
Hi all, I would like to save my project's code in a text file when the project runs (so that I can keep track of any changes) I know how to open/print/write/close a text file, but how would I capture the code that is running? Any ideas/links/thoughts? Thanks. | |
Can any one help..... I am relatively new to programming and I would like to learn a bit of C++. I dnt want to purchase a book as yet (mainly because i cant afford one at the moment). Can any one refere me to a site from which I will … | |
Hello I have a string "c0024" How can i get rid of non numeric digits, so i am left with 0024 removed "c" I cannot think of a way of doing this | |
Hi i want a sample project on MDI . Plzzz help me | |
hello, i have write a program and when i compile it, it say that one of my variable 'advance', is a ambiguous symbol and cannot be used....why? after i change the 'advance' to other word, like 'advanced', it run nicely....but why 'advance' word is ambiguous in this program? [code=cplusplus] #include … | |
Hi, I am displaying a dialogbox to the user. If the user clicks the "Cancel" button I want to show a message box, then I want to continue displaying the dialogbox. The best I can come up with is...[code]Do comdia.Filter = "*.doc" comdia.InitDir = "C:\" comdia.filename = "file01" comdia.ShowSave On … | |
ive made a multiple choice quiz that gets a random question and a random choice the problem is i cant get the correct syntax that will determine if the answer i chose is correct my form is composed of 2label(1 for the question and 1 for the score when i … | |
I need help with the following: How do we calculate the sum of consecutive numbers from 1 to n and not from n to 1 by using recursion. Eg. if n = 10 it should be 1+2+...+9+10 and not 10+9+...+2+1. | |
Hey all, I am new to C/C++ and this week we just started object oriented C++. Before I dive into it I want to have a good understanding of simulating object oriented programming with C. Anyway, I believe I have doctored the code to where the queue and the Stack … | |
hi guys, well i have created a repeater control and have made it expand on mouseover by using javascript , also i have returned the value of an id in a label on mouse click. i want to make the datalist on the page visible ob this click and also … | |
i need to write a program that includes student names, test scores, and grades... but the cin.getline doesn't work, it simply skips to the next line... where did i do wrong? Thanks. [code] #include <iostream> #include <iomanip> using namespace std; char getLetterGrade(float grade); struct course { char name[30]; char *letterG; … | |
Hi I have placed two datepicker and one text box in the form one as [B]dt1[/B] and another as [B]dt2[/B] if I select say [U]12/12/2007 [/U]in dt1 and [U]28/12/2007 [/U]in dt2 then in [B]text1.text [/B]the number of days elapsed between the two days should be appeared. So will any one … | |
i would like some examples of simple c or c++ codes that can shut down a computer like say at exactly 9pm. could anyone give me a sample c code that can pop up on the screen warning that the computer will shut down in 20 minutes. | |
I'm very passionate about computers and I love programming so I figured that participating in testing software or being able to participate in some way could truly help me learn C++ better than any prgramming class. Can anyone point me in the right direction? Thanks! | |
[CODE] #include <iomanip> #include <cmath> #include <fstream> #include <string> #include<string> #include<iostream> using namespace std; int main() { int num1 = 0; int num2 = 0; char again = 'y'; while (again=='y') { cout<<"Please enter two numbers to compare "<<endl; cin>>num1>>num2; cout<<"The two numbers entered in order were "<<num1<<" and "<<num2<<endl; … | |
Hello, I've been trying to send html emails via the mail() function. I tried different combinations of headers configurations. and spent hours and hours on this with no luck. All I get is plain text, as if i did not define the headers. headers would be displayed in the message … | |
[U]main.cpp:[/U] [CODE]#include <stdio.h> #include "VeryLongInt.h" int InitializeFromFile(char* fileName, VeryLongInt* &x, VeryLongInt* &y); //void ShowScreen(); int main(int argc, char* argv[]){ char* inputFile; char* outputFile; if (argc < 2){ printf("Usage: LongIntDataType.exe [InputFile] [OutputFile]\n"); printf("Using default configuration: LongIntDataType.exe input.txt output.txt\n\n"); inputFile = "input.txt"; outputFile = "output.txt"; // "output/output.txt" } else { inputFile = … | |
Hello, i am a naive in C/C++ and pretty confused about how does the compilation process work in the background, can you explain in detail (or give me a link about it) ? in particular can you please tell me: how are declarations in header file associated with the definitions … | |
[code=language] <?php $username="151296"; $password="******"; $database="151296"; mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $last = $_COOKIE['ID_my_site']; SELECT 'Wing' FROM 'users' WHERE 'username' =$last; $CC1 = ['CC1']; $amount1 = $_POST['amount1']; $total = $CC1 + $amount1; $UPDATE FROM 'users' WHERE 'username' = $last SET `CC1` = 'CC1'+ '$amount1'; ("Location: arming.php"); } ?> … ![]() | |
Hello everyone, im new in vb.net..as of now im using msaccess as my back end.When i run the program in my pc..it run ok..but when i try to map so that other user can user the database..it cannot save..message is read only..any suggestion on how to use the msaccess for … | |
I'm writing a lesson on debugging for my students. They will have already had a lesson on how to read code and do walkthroughs, either manually or using the debugger. They currently know about [B]if[/B], [B]while[/B], types, math operators, and have some experience with but no formal training in functions … |
The End.