64,152 Solved Topics
Remove Filter ![]() | |
I am having trouble with my looping sequence in this program at the end of the program it will let the user choose if they would like to exit the program or start all over again and it exits for both chooses and sometimes it will continue on to the … | |
Hello :) i worked many time with the Point structure on my projects i noticed that there is a brother to Point calls PointF (its Point with floats as X & Y) the thing i dont understand is why i saw a lot of drawing functions that uses RectangleF and … | |
i am trying to make web browser control at my form.. my url is : www. gmail.com but, when i'm running my project..i'm getting error.. you can see the error at [url]http://i917.photobucket.com/albums/ad15/popopardede/abcd.jpg[/url] anyone can solve my problem? big thanks | |
#include <iostream> using namespace std; int main() { int n1,n2,n3,n4,n5; cout<<"input number\n"; cin>>n1; cout<<"input number\n"; cin>>n2; cout<<"input number\n"; cin>>n3; cout<<"input number\n"; cin>>n4; cout<<"input number\n"; cin>>n5; if (n1>n2 && n1>n3) return 0; } | |
#include<iostream> using namespace std; int main() { int n1,n2,n3,n4,n5; cout<<"input number1\n"; cin>>n1; cout<<"input number2\n"; cin>>n2; cout<<"input number3\n"; cin>>n3; cout<<"input number4\n"; cin>>n4; cout<<"input number5\n"; cin>>n5; if(n1 < n2) n1 = n2; if(n1 < n3) n1 = n3; if(n1 < n4) n1=n4; if (n1<n5) n1=n5; cout << "The largest number is\n" << … | |
Hey everyone, I'm wondering why I can't print the values that are in the array. I'm passing an array to the method below and trying to print the result.. the compiler says that "ArrayIndexOutOfBoundsException" What's the problem really? [code] public static int[] treble(int[] nums){ for (int i=0; i <= nums.length; … | |
Hey guys i tried getting CodeOrder snippet working but it really messup all my tables and such when i try to add for other groups sorting first 3 works fine but when i try to add more everything gets strange :S so if you can fix it ?? Here are … | |
Hi, I have a simple query I've used again and again previously, but in this case it's telling me that it is too complex. I've output this sql string into a message and cannot see any problems with the syntax, I'm completely baffled with this one so any help would … | |
im having trouble closing this class, ive been trying for 2 hours Its a huge collection of ifs [ICODE] package net.minecraft.src; import java.util.Random; import java.util.*; public class ItemTestItem extends Item { public int TimesShot; public ItemTestItem(int i) { super(i); maxStackSize = 1; setMaxDamage(50); } public void onUpdate(ItemStack itemstack, World world, … | |
Hi all , I am learning j2ee with the help of this forum, I learned jsp and servlet , what should be my next learning process because lot frameworks/ technologies there to learn. Structs , Hibernate, Springs,Ajax all are strange for me. what should I learn next pls suggest me. … | |
Hello there, submissiontime length finishtime remainingtime 1031 17:11 574.1025391 MB 1050 17:30 1 1326 22:06 536.0175781 MB 1343 22:23 2 2721 45:21:00 608.1279297 MB 2741 45:41:00 3 32 0:32 575.8115234 MB 51 0:51 4 1161 19:21 652.6259766 MB 1182 19:42 5 937 15:37 288.7597656 MB 946 15:46 6 3087 51:27:00 … | |
I have developed a Java GUI App.I want to connect that with mysql.I have already connected a seperate java file with mysql.That java class is also in the same package in my Netbeans project.I want to know is it possible connect DB by using that seperate java class? | |
I have a dropdown menu and some buttons below in my HTML: [CODE]<p> <select name="numberDrop" id="numberDropId" onClick="getButtons()"> <option value=""></option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> </select> </p> <p> <input class="answerBtns" name="answerA" type="button" value="A" /> <input class="answerBtns" name="answerB" type="button" value="B" /> <input class="answerBtns" name="answerC" type="button" value="C" /> <input class="answerBtns" … | |
Hi, I am a beginner (not a total beginner though) in C#. I am writing here because I want someone to give me advice on what to program in my free time in order to learn C# more. For example, I know how to zip/unzip files, read/write from xml files, … | |
Hi ppl... I have a piece of html code like this, to generate 10 radio button having values from 1 to 10. When the user selects a radio button, i want to print only that value. Any inputs on how i can achieve this is very much appreciated. [CODE] <!DOCTYPE … ![]() | |
I am not exactly sure what information is relevant, so my apologies for any useless/redundant information. On my Mac (Snow Leopard 10.6.8) with xCode (gcc) compiled and run through the terminal the following works fine (ignore code and continue reading): [CODE]#include <istream> #include <string> #include <iostream> #include <fstream> enum Year … | |
Hey guys, I wrote a program and this 2 lines came up with the same error declaration: [ICODE]Scanf("((%d/%d)*%d)", &Mark1, 40, 100; Printf("Average of marks is: %.3f", Avg);[/ICODE] Both these lines came up with these error comments below: Line 1: Function "Scanf" should have a prototype. Line 2: Function "Printf" should … | |
Dear enlighted ones. I happen to try to finsh a kind of a function library that my Main program can utilize. As of now, Everything work great... but. I would like to implement some kind of error handling. The way I do this also work, but the error is generated … | |
Hi guys, Question 1. I'm a pretty rubbish coder, haven't really done much of it in the couple of years since my degree, at work they've recently expressed an interest in getting me back into it. My problem is that i feel as though I've been taught the syntax (which … | |
I need to check if a databse user exists and if not, create that user. However, I do not know the statement to check if a user already exits. How to check if a user already exists in MySQL? | |
So I have 3 classes, matrix.h, matrix.cc, and shortestPath.cc shortestPath includes the .h file, which includes the matrix.cc file. In shortestPath I've tried to call a Get method I wrote in the matrix.cc file, but I can't figure out how to call the function on the object of that class. … | |
Hey all. Im just learning VB and i want to make a login screen for my program. there will be two textboxes and a command button. When you click the command button it checks the information with whats in the database and if its correct loads the next form and … | |
Hi guys. What my problem is basically either some typo, or I am doing something extremelly wrong. Can't think of something else. After some time off with C++ I got back with it, creating the simple project to see how well my memory serves me. I am pretty sure that … | |
Im having problem with this code I made for finding the average rain fall. When the program starts. it is suppose to go through each month and you are able to input the rainfall. When the months show up in the CMD it is just a bunch of numbers and … | |
Hello everyone, Ive been stuck with this little problem for quite some time and if someone could help id be much obliged. I have this code that contains an array with several numbers in put by the user and i don't want any of the numbers in the array to … | |
Hi Guys, I am trying to display a selected file name by user(using OpenFileDialog class and FileName property) as [CODE] if (dlgOpen.ShowDialog() == DialogResult.OK) { txtFileName.Text = dlgOpen.FileName; } [/CODE] but the problem is this return all path info which I do not need! Can you please let me know … | |
Hello all. I have never updated a single column in a specific record. I am using Apache derby embedded database. I have used the update prepared statement to up date a single field with the String value but it updates all the like of every record. How can I update … | |
// Loel Jolito Niño C. Bagabuyo package marathon; public class Marathon { public static void main(String[] args) { String[] names = { "Jessabel", "Jerome", "Kristine", "Rodel", "Grajen", "Reymart", "Kevin", "Sherwin", "Orniel", "John", "Kirk", "Jovert", "Rhea", "Mariella","Melart", "Michael" }; double[] times = { 341.0, 273.0, 278.0, 329.0, 445.0, 402.0, 388.0, 275.0, … | |
Hi guys, Hope you can help (and hope I can explain my problem OK!) I am designing a sports site which takes three values from a user to input match details: a date (text input), a versus (text input), and if the match is home or away (radio buttons). Several … | |
I had a given a assignment of java script as to form a script that changes the background image of the document after equal interval of time.as i am a beginner to programming I had formed a script that should change background and a loop stated for image name to … | |
hey i'm trying to make a traffic light that when the mouse rolls over a certain light the colour will show. then if the light is clicked the colour will either turn on or off... this is what i have so long. [CODE]<html> <head> <style type="text/css"> #trafficLight { border:1px solid … | |
Hey all, I'm trying to have a ListBox show a list of tables available in a database. This can then be selected to be used later on. My problem is getting the actual table name to show up. I have the connection to the mysql database working properly, but it … | |
Hello All ! I'm trying to write a Robot Class who have several methods. One of its methods is move() that move the robot the direction his looking at, one step ahead. I'm getting an error on this: [CODE]switch (Direction) {[/CODE] If some one can help me find the mistake, … | |
Hi All, Finally getting somewhere with this project and can see the light at the end of a very long tunnel.. I have one more hurdle to overcome so any help in pointing me in the right direction would be greatly appreciated. I have a bound datagrid which I fill … | |
hello I have a problem concerning of changing mark. I don´t understand why it doesn´t work...thought the old_mark is type LIST. It works for one student and not for more (for loop) Pls can you help me? Thanks Vlady [CODE]def change_mark(changed_mark): for student in changed_mark: old_mark=changed_mark[student] position=old_mark.index[old_mark] old_mark[position] = raw_input('new_mark') … | |
Hi again, I have a program which opens a file, searches for a string ("Performance Summary"), misses 3 lines then copies the following lines until there are no more. [CODE]# Extracts data from a files and saves it in a summary file with open("file1.txt") as file: for line in file: … | |
Hi guys, I'm making a program which reads all files in a folder with test data, these files are known as logfiles. With each read logfile, I then need to extract only the lines which have the keyword in them... for example 'PASSED'. Here lies the problem, when you open … | |
tampil_produk.php [CODE] //Langkah 2: Sesuaikan perintah SQL echo "<table>"; $tampil = "select * from produk order by id_produk desc LIMIT $posisi,$batas"; $hasil = mysql_query($tampil); $result=mysql_query("select * from produk order by id_produk desc LIMIT $posisi,$batas"); $no = $posisi+1; while ($data=mysql_fetch_array($result)){ $harga = number_format($data['harga'],0,",","."); $deskripsi = nl2br($data['deskripsi']); // membuat paragraf $isi = … | |
Dear All, I got a query where I would like to select the clientName from tblClient but with condition that this clientID does not exist in another table call tblCDSValidity. I tried like this but it failed. [CODE] SELECT tblClient.clientID, tblClient.clientName FROM tblClient,tblCDSValidity Where tblClient.clientStatus='a' And tblClient.clientID!=tblCDSValidity.clientID ORDER BY tblClient.clientName … | |
The code I have written so far only blinks constantly regardless of which switch is HIGH or LOW.. I can't seem to figure out how to make one switch faster than the others because it would either blink all switches at same rate or remain steady (doesn't blink). Could anyone … | |
The code below produced the error: OUT or INOUT argument 3 for routine mysql.getAuthentication is not a variable or NEW pseudo-variable in BEFORE trigger. Did I miss something?. [CODE] using System; using System.Data.Odbc; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using MySql.Data.MySqlClient; public partial class … | |
I need to print out the scores and the grades when entered and i do not know how to print the scanner. im sure i am probably missing other things as well. [CODE]import java.util.Scanner; public class Scores { public static void main(String[] args) { int count; int score; int total; … | |
Hey Guys, I have an issue with my checkbox and the values that are posted to the next page. The issue is that each time the checkbox is clicked it just adds another value. example - if i check it and uncheck it and check it again i will get … | |
Hello to All, I want to use basic jasper report utility.... But facing error as mentioned below, please help me.....I'm beginer of JReport [CODE] import java.io.File; import java.util.HashMap; import net.sf.jasperreports.engine.JRException; import net.sf.jasperreports.engine.JasperCompileManager; import net.sf.jasperreports.engine.JasperFillManager; import net.sf.jasperreports.engine.JasperPrint; import net.sf.jasperreports.engine.JasperReport; import net.sf.jasperreports.engine.*; import net.sf.jasperreports.engine.util.JRLoader; import net.sf.jasperreports.engine.util.JRSaver; import net.sf.jasperreports.engine.xml.*; import net.sf.jasperreports.engine.design.JasperDesign; import net.sf.jasperreports.engine.export.JRPdfExporter; … | |
Guys, I've been stuck on this for a while now. This is actually one of my assignments, and I'm really lost. This is the assignment: ------------------------------------------------------------------------------------------- You manage a .txt file containing the customer ID number and account balance of the members of a bank. Last week, a computing error … | |
[code]/* File: Rainfall.cpp Description: Write a program that reads in the average monthly rainfall for a city for each month of the year and then reads in the actual monthly rainfall for each of the previous 12 months. The program then prints out a nicely formnatted table showing the rainfall … | |
Hi Everyone, I am currently devleloping a web site in VB and ASP.Net... I have got a dropdownlist box that contains a lot of centre names (being retrieved from an SQL Server database). I want to end up so that a user selects the name from the dropdownlist, clicks to … | |
Hey!! I'm new to C++, this is the final program of my semester and I am stuck sooooo hard... I have the code laid out and it will compile but my functions wont work like I want them too. here is the code: [CODE] #include<iostream> using namespace std; void getlist(int[], … | |
Hello, I need to show the date picker in an input field that is inside a form. I have index.php which has the code for the date picker, I just need to link it to the input field. I have the form in another file as follows: [icode] <form id="inputArea" … | |
I've been searching the internet for a way to specify the size of a component within a JPanel, but I haven't been able to find anything that has worked. The best answer I came across was to override the getPreferredSize(), getMaximumSize(), and getMinimumSize() methods of the component, but the component … |
The End.