199,114 Archived Topics
Remove Filter ![]() | |
Good Morning, Having all kinds of problems with my programs. Seems as though is trying to read the StudentList file but cant. Im confused. I run the program and it goes to the StudentList.java and gives the errors below after the code. PLEASE HELP! project is past due and the … | |
Hello, I have a div (#disclaimer) that has the css property of "display:none." The following jquery script is supposed to show it when the #test select option is clicked. The #quest,#comp,and #other divs are supposed to hide it again. It works fine in FF but does not work in IE. … | |
Hey guys, I recently wrote this program and it compiles and works but I have two issues that need addressing and I'm a bit confused on how to solve them. Question 1) [CODE]System.out.println("What's your name?"); name = Scan.nextLine(); System.out.println("How old are you?"); age = Scan.nextInt(); [/CODE] I always thought Scan.next … | |
I need to do a program that the user will input a letter from alphabet then the program will show the alphabet that starts with the inputted letter. for example Letter: B B C D E F G and so on.. please help me guys.. ive been doing this almost … | |
Hi, I am in a unusual situation and cannot get my JavaScript to work. I need to have all of my JavaScript in one external file that I link to in the header. However, some of the JavaScript in that external tag needs to appear in a certain place in … ![]() | |
This might be dumb... but I'm having problems raising e to a negative number and I can't figure out what is going on. [CODE]>>> math.exp(((-23*(23-1))/730)) 0.36787944117144233 >>> math.exp(-506/730) 0.36787944117144233 >>> math.exp(-.69) 0.5015760690660556 >>> math.exp(-(506/730)) 1.0[/CODE] For some reason I keep getting different answers when they should all be the same... … | |
I m trying to get it work in php but i cant, since i m new in PHP :( i was wondering if someone can help and i would really appreciate it!! :* Description: In a php page i want to choose from a drop down menu (Houses) a choise … | |
i am trying to write a code in php in which user select state on that selection user able to choice city which are retive as array from the table, on that selection retieve set of final data. i am confused how to handle and send data for query depanding … | |
As i am new to use mouse interface in c. Please tell me how can we check mouse is connected or not. How can we get co-ordinate from computer screen when we clicked it. i just want that how can we store co-ordinate of screen in variable when we clicked … | |
Hi, I'm working on one sites and having troubles with these: I have tables catecogires and subcategories in database. When user add article, he select categorie from select tag and under that tag appears another select tag with subcategories of selected category. Code in jquery: [CODE] $("#ka").change(function(){ function PostaviPodatke(podaci){ $("#pka1").show(); … | |
I'm having trouble displaying a string and integers through the use of stringstream. The code below displays fine as is but say I put in << endl after name. When I compile this it only displays the name string and thats it. If I add a space in any of … | |
[CODE]import math class Vector2(object): def __init__(self, x = 0.0, y = 0.0): self.x = x self.y = y def __str__(self): return "(%s, %s)" % (self.x, self.y) @classmethod def from_points(P1, P2): return Vector2(P2[0] - P1[0], P2[1] - P1[1]) def get_magnitude(self): return math.sqrt(self.x**2 + self.y**2) def normalize(self): magnitude = self.get_magnitude() self.x /= … | |
please help me, in applet.. how to make a square..? and how can i move it..like a rectangle movement..? ![]() | |
i do believe my code in update is wrong because saving it is working but having trouble with the "Edit". help anyone? [CODE]<?php include 'conn.php'; $flag=$_GET["flag"]; if ($flag=="1") { $id = $_GET["id"]; $lname = $_GET["lname"]; $fname = $_GET["fname"]; $mname = $_GET["mname"]; $age = $_GET["age"]; $sex = $_GET["sex"]; $course = $_GET["course"]; … | |
Hi ... Friends ... I have to develop one project in php for my project work. Our college has said that we have to use any one framework of php to develop our project. I am going to develop forum. Which frame will suits best for my development. I dont … | |
I have an exercise again and I got blocked again. The exercise is: Daphne invests $100 at 10% simple interest. That is, every year, the investment earns 10% of the original investment, or $10 each and every year: interest = 0.10 × original balance At the same time, Cleo invests … | |
hi guys, i have a few questions which is actually my assignments, but i'm still confuse about stack and implementations using pointers in C. this is the questions: 1. write a function to find if the stack is empty or not. 2. write a function to find the number of … | |
this is a program that my teacher gave me in the class. but i didn't understand it....please explain it to me step by step... [code= c++] #include<iostream.h> class queue { int element; queue* next; public: queue* enqueue(queue*,int); queue* dequeue(queue*); void queue_display(queue*); }*head,*tail,object; queue* queue::enqueue(queue* head,int key) { queue* temp; temp=new … | |
In PHP, how can I print the list of directories and their sub-directories? Files should not be printed. | |
Hi I have just written this code (am just starting out with c++ so took a while :s) Works fine.... untill character 2 is created. When the program is run the character 1 is fine and every time the users is asked "Please enter x" they can and it is … | |
Hello, I am trying to write a program that reverses an array with integers. Here is what I have so far: driver.asm [CODE] # Test driver for reverser.asm # .data tsize: .word 10 tdata: .word 2, 3, 5, 7, 11, 13, 17, 19, 23, 29 .text main: la $a0, tdata … | |
I'm writing a deque implementation with ArrayList as required by my instructor. So far the body of the class looks like this [code=java] try { while (!endOfFile) { character = inputFile.readChar(); while (!character.equals('\u0003')) { if (character.equals('\u0008')) deck.removeBack(); else deck.addToBack(character); } } while (!deck.isEmpty()) { character = deck.removeFront(); if (character.equals('\u0003')) System.out.print("\n"); … | |
Hi everyone! Can anyone help me how to create an application that updates an Access 2007 file from another computer? I am in great need for knowing it. It is a part of my thesis and until now, I still can't find relevant answers from the internet. I hope this … | |
I'm fetching data from database but problem is if i leave my field blank then result is shown like attached file... I want that if field is empty then auto value set into "N/A" . Is it possible from phpMyAdmin-2.11.10. Please reply Thanks Farhan. | |
I have been told to sort an array of structure(student) depending on one of its members(per) using bubble sort. I need to sort the 'student' structure in descending order of 'per'. Please help. I'm stuck!! [CODE] #include<stdio.h> #include<conio.h> struct student { char sname[20],dept[25]; int rollno; float per; }s[30]; void accept(int … | |
Hi, i have this HTML page that contains an image, some text, and a save button. Now what I want is, when i click on the save button, the image on my site, and all the text will be saved as a PDF file. is that possible using PHP? | |
Hi, I'm trying to write a shell script to show me the number of Readable, Writable and executable files in a directory. I have no idea how I can do that. Any help??? Thank you. ![]() | |
I wrote this program for a class, the only problem is that it returns the anwser for assessmentValue twice. I can't figure out what to do to fix it...please help!! [code=php] def main(): #Get the actual value for the property. actualValue = input ("Enter the actual value of the property:$") … | |
Hey! I just startet fildeling around with c++ a week or so ago. I have some experience in Java and python. Anyways, i wanted to make this simple hangman game; [code] #include <cstdlib> #include <iostream> #include <string> #include <fstream> using namespace std; void exit(int exitcode); char hus[] = {'h', 'u', … | |
First off, I do want to state that I have read the forums and have not found an issue directly regarding this exact problem, though it is possible I may have overlooked it or something and if so please just point me in the right direction and I will leave … | |
[B]I have completed a VB.NET project and I want make a installer for this project by coding. so I don't know how coding ! can you help me. please!! thanks![/B] | |
you can do this dim i as integer = 0 Public Sub Addtab() Dim browser As New webbrowser browser.Dock = DockStyle.Fill 'docking it browser.ContextMenuStrip = main.cms 'adding a context menustip to it Dim tab As New TabPage tab.Controls.Add(browser) main.Tabs.TabPages.Add(tab) 'IMPORTANT you must select the tab main.Tabs.Select(i) i += 1 End … | |
Good day all! Please I need someone to help me out by telling me what or how will I call up an Applet from a separate Java file that has a main method in it...thats to say, I will compile and run the Applet code from the other class with … | |
I would like to write a class that handles a series of timed events for an object. I would need to deal with class properties not being set, and therefore making no change to the object. I've gone with the "?" nullable operator for my first attempt but I would … | |
I was wondering how I could start to program. I have looked up some information on the topic and it seems that C++ would be the most usefull to learn. However as it seems a complex thing to learn I was wondering if there was another language to learn first … | |
Write a program that lets the user enter loan amount and loan period in numbers of years and display the monthly and total payments for each interest rate starting from 5% to 8%,with an increment of 1/8. Your program should have at least [b]2 methods[/b],method for calculation and method to … | |
Hello, I'm completely new to JavaScript. My project requires to display path from pointA to pointB on GoogleMaps using gps coordinates. For now all I'm trying to do is to display google maps webpage to start off. Using an online editor I was able to do that but when put … | |
Hi! I'm developing a simple file manager. So, I have two components: JTree & JTable. When I open some folder in JTree, then JTable is updated according to the content of that folder. JTable contains 3 columns: file_type, file_name, file_bytes. The code works correctly. Now I need to add some … | |
Hello all, I am a beginner in C programming and have come up on a problem. I need to create 4 functions, 3 of the functions will get the users input (the 3 inputs will be the length of the sides of a triangle) and 1 function will be displaying … | |
hello guys.. can u help me in my code that if i change the value of empno all the corresponding data in the empno the empname, empaddress and so on will also change because i can't figure out that when i change the value it will also change all the … | |
Dear all, I am having a very frustrating problem with a project in Visual Studio 2008 C#. I have tried everything, I have searched everywhere, but it seems that nothing works. I would appreciate if someone gave me some directions or suggestions, as to where to look for the solution. … | |
hi, I have a table called shoutbox, i created it this way: [CODE]CREATE TABLE `shoutbox` ( `id` INT NOT NULL AUTO_INCREMENT , `ip` varchar(20) NOT NULL , `name` varchar(30) NOT NULL , `url` varchar(30) NOT NULL , `message` varchar(50) NOT NULL , `date` date NOT NULL , PRIMARY KEY ( … | |
Hi, I'm new to VS 2008. And as a uni project, we had to create a doctor surgery databases as a group. However, when one of my group member sent me part of her work and when I tried to open it in my VS 2008, I failed to open … | |
Hello all, I'm having a little melt-down trying to work out how to call a method of a dynamically loaded control... My setup is this: Admin.aspx CustomControl.ascx Admin.aspx has the following code to load CustomControl.ascx: [CODE] UserControl UC = (UserControl)LoadControl("~/admin_custom_controls/howComments.ascx"); modulesPlaceHolder.Controls.Clear(); modulesPlaceHolder.Controls.Add(UC); [/CODE] CustomControl.ascx has a method: [CODE] public void … | |
i am making a project on speech recognition and i want to integrate it with window. i can open the active window by runtime class by voice but can't close that active window by voice .. like how can i invoke alt-f4,back_space and other special key for window without keypess... … | |
Ok, I have code that needs to forever loop, and process. My code in the windows procedure has a case WM_LBUTTONDOWN: . I left click on the client area of the window and it processes the code accordingly. Now so that it keeps processing code at the end of the … | |
i want the array to run from one place in diagnol to another place in the array. i set the arguments. here they are [CODE] int rowStart=3; int rowEnd=5; int columnStart=3; int columnEnd=5; int columnX=columnEnd-columnStart; int rowY=rowEnd-rowStart; [/CODE] here is the single loop that i prepared: [CODE] if (rowY>0 && … | |
Hi, In Vb i have a form for login and many forms.After i login the username is displayed in all the forms. I can add,update and save the records in database table. But i now want to store the Username to these records so that to check who has entered … | |
Hello Readers I am trying to create Categorytree.In which i want to display subcategories under its parent category.I got the code to develop category tree that display using <ul><li> but i want to display it in dropdown. How can i do that? For Example Parent1 __Child1-Parent1 __Child2-Parent1 __|__Child1-Child2-Parent1 Parent2 __Child1-Parent2 … |
The End.