199,114 Archived Topics
Remove Filter ![]() | |
Hi, I'm currently working on an Eight Queens problem solving with recursion and backtracking. I have an output for my code, but it is not the desired output and I am having trouble figuring out what part of the code is wrong. Any advice would be appreciated. My header file … | |
Hi, In brief, I have written a program in C++ that reads data from a text file, does 'stuff' with that data and then writes the results to a number of separate file. Separately I've written a simple GUI for this program using Visual Basic (allows the user to select … | |
Howdy! I've searched the forums and Google for ideas but all the information/advice I found was either not helpful or inaccurate. So, perhaps someone here can help point me in the right direction. I'm heading off to University next year but, before I do that, I'd like to study some … | |
[ATTACH=RIGHT]22271[/ATTACH]It's official: Android now has a greater market share than iPhone across the EU5 countries of France, Germany, Italy, Spain and the UK. According to newly published data from the [URL="http://www.comscore.com/Products_Services/Product_Index/MobiLens"]comScore MobiLens service[/URL], nearly one in four smartphone users in the EU5 region were using smartphones running on a Google … ![]() | |
Hi guys, im workin on a little text based RPG using c++. It is a win32 comsole application and i am wondering what i could do to improve it! I have added my source code [code] # include <iostream> #include<ctime> #include<cstdlib> #include<cctype> using namespace std; struct monster { int strength; … | |
Hey, Is there a way to get the keycode from a char? I tried using KeyEvent.getKeyCode() but the KeyEvent class didn't have a constructor so it was freaking out. I've been searching for 2+ hours already and nothing. My goal is to have a char, convert it to keycode, and … | |
![]() | The last do..while loop only prints the 2^n of the number entered and n is user input. It does not print all 2^n from 1 to what ever value user inputted. [CODE]/** * * * @author * @version */ //import Scanner utility import java.util.Scanner; public class Loops { public static … |
Hello to all, I've designed a website to provide Software and all the data is coming into the gridview.The entries in database are...... [B]SoftName : [/B] Name of the software [B]SoftType : [/B] Type of the software (like windows,mac etc.) [B]SoftUrl : [/B] Path of the software file in the … | |
Hello there my friends, I was looking to the best PHP code generator in the market, i already take a look into some frameworks but before i buy it i wanted to take a look here to know if you guys have any sugestion. Any of you already have/use/bought any … | |
How can i set a fixed height detail section in crystal reports regardless of record count. I set the height of detail section to 10 records. If i put 8 records, the space for other 2 records should be white space. That is, total height remain the same. Please help … | |
I have a bcp output file from sybase that i need to parse using 'c' and write to a new file. A sample line from bcp o/p file is below 9890000501:74667:0:6::2:0000:0:6:0:5:0:0:0:0:0:0:0:::9890000501:1:1:0::::::::0:0:3::::::::::\202^B:\202^B^D:0:0 :1:0:0:0:0:0:0:0:0:0::::0:0:0:::::::::0::0:0:0:0: The file has ":" has the delimitor. I need to create a new file with a single line … | |
Hello, I hope someone can help me solve this: I am writing a script which can extract phone numbers from a peice of entered text which i can do fine but when there are other numbers it becomes more complex and i cannot seem to find away round it. All … | |
how can we create a password and change the password? thank you!! | |
HELP- I need to view my php files in the browser. I am running Apache server. I know only this much to put in the browser [URL]http://localhost/[/URL] /filename.php thanks | |
Hi, im new here, and i want to ask about "how to make a compiler". I'm a Computer Science and part of my subject wants me to create a compiler, and I had no idea of how to create one. Can anyone help me..... | |
hi i just want my form to connect to a database. and also i want my password in my textbox to be encrpted . i want it to check in the database if password and user = true then display next form and the login form should be close whenever … | |
Trying to define a function that dynamically creates a Student object and then prompts the user for the info and returns pointer to a Student object. [CODE]class Student{ private: string firstName; string lastName; string aNumber; double GPA; public: Student (); Student (string f, string l, string idNo, double gPoint); string … | |
I want to make node heights of JTree nodes to differ. I mean like the parents have different node height and childs have different node height. I tried to put myJTree.setRowHeight(30) while adding nodes but it doesn't work because it does not work for a single node but for the … | |
A little console application in C# to show you the IP address of your computer or the IP address of any website you like. | |
I have to deal with a program on arrays doing different things with such as finding out if the row contains a number in the first n rows, put all the numbers listed in the arrays without repeating numbers that are listed twice, finding numbers that are in common and … | |
Here is capital letter style caesar crypted message. We can simply try all possible shifts for first few words (ignoring punctuations, which is left as is). If both first words succeed we assume we cracked it. You could also use Vigenère encryption, but keeping non-letters is less simple, our Vigenère … | |
Early versions of Python used a hybrid of samplesort (a variant of quicksort with large sample size) and binary insertion sort as the built-in sorting algorithm. This proved to be somewhat unstable, and was replaced in version 2.3 with an adaptive mergesort algorithm. I am comparing several rudimentary sorting routines, … | |
Hi folks. I'm looking for a bit of help and guidance on what you think would be the most suitable DB for a project I'm working on. This isn't a web-based project but as I couldn't find a more suitable sub-forum to post this query, I thought I would ask … | |
I realize this will very likely be a short thread, but it is a question that has been eating at me for a while. I have just started taking a Java class (basic introduction) and so far I am loving it. Primarily I am a web programmer, so the only … | |
Can anyone help me to get the estimate value of float value 1001.27124 to 1001.27? Math.round(float) function return the int value. But I want to get float value result with 2 decimal point; Thanks in advance. | |
hey im trying to create a program to convert dec to hex , but this only lets me print either integers or chars , but not both , how do i fix that ? [code] int convertHex(int num) { quotient=(num / 16); remainder=(num % 16); if (remainder <= 9 && … | |
how to move a jframe which has no taskbar? [code] frame.addmousemotionlistener(this); public void mousedragged(MouseEvent e) { // What to write here } [/code] I tried setBounds of jframe but it flicker when we try to move the frame. | |
Dear sirs, I would just like to ask a quick question: What control would i use for creating a paint-like program but with layered features? It was a choice between GlassPane (but am not to sure how to use it despite the fact i have been up all night researching … | |
So I need help on how to calculate how much change to give back to a customer. I need the program to give change in the least bills and coins as possible. Ex. Customer's item costs $13.37. He/She pays $20. Program gives back: One $5 Bill One $1 Bill Two … | |
We are trying to build a simple basic search engine at [snipped] and we need help with page rank. Now the results are being shown in the order of relevance. Can someone plz help us with some algorithm, link or code snippet. Also is it possible to call a c++ … | |
Hello everyone! I've made the mistake of not asking my teacher for help when I had the time. Now I'm stuck and lost. I didn't do this because I felt I should be able to figure this out myself since this is my major. So, I'm giving up and needing … | |
In this course we are going to develop software for “School System” that will computerize all the necessary school processes. This software will facilitate the school management in running and managing the school. We will mainly focus on these aspects, 1. Teacher and Student Record Keeping 2. Student Grading 3. … | |
After installing tomcat 6.0 server into my machine iam not able to find "start up and shut down" files under bin directory pls tell how to solve this issue | |
Hi, I'm trying to set custom fonts, I can do it without problem with this code: [CODE] InputStream is = this.getClass().getResourceAsStream("/src/someFontName.ttf"); Font f=null; try { f = Font.createFont(Font.TRUETYPE_FONT,is).deriveFont(15f); } catch (FontFormatException ex) { Logger.getLogger(PanelLiquidacion.class.getName()).log(Level.SEVERE, null, ex); } catch (IOException ex) { Logger.getLogger(PanelLiquidacion.class.getName()).log(Level.SEVERE, null, ex); } txtPlace=new JTextField();txtPlace.setBounds(185,10,310,20); if(f!=null){ txtPlace.setFont(f); lblPlace.setFont(f); … | |
I need help understanding the increment operator and the output of this program. I am confused with the output of 'i' and 'm' According to me: i = 4 and m = 20 but, that is not what you get when you compile. Please explain. Thanks in advance. [CODE]#include <stdio.h> … | |
hi, i need to subtract one date form the other and take the difference in minutes or seconds.. i'm getting the first date from the data base in 'Y-m-d H:i:s' format and second date is the current date (same format). and i want to know the difference between them in … | |
hey all, im new at shell scripting and need to find out a simple way to create text files, with random words in them. then needing to input 3 of these files arranging their lines in alphabetical order and after that creating an output file with the last lines sorted … | |
[B]Sending email through PHP[/B] [B]Intro[/B] Thousands of websites use contact forms to communicate with their users. You will have almost certainly seen one if not used one to contact someone. The contact form will take the users information that he or she has filled in then send the data over … | |
![]() | This is my first GUI program in Java. If finds the day of the week for any given date which is after 1 January 1900. |
![]() | I've created a component (a replication of a JSpinner) with a JTextfield, and two JButtons. I've created ActionListeners on each of the JButtons to update the JTextfield. In my main program, I've create new objects based on my new component. I've added ActionListeners on my new objects.JButtons. My new ActionListeners … |
Hi all, I have three CSV file. First one include toname,toid and status.Second one has username and password and the third one include from,subject,content,reply to,cc etc.I want to read csv files and to send bulk amount email address. Also want to increase mail sending time. How will read csv file … | |
IT currently is set up for base 3, but should be able to make a couple of minor changes and convert to any base, thanks and hope it helps someone out. [code]#include <iostream> #include <cmath> #include <fstream> using namespace std; void convert_base(int v, int b); ifstream inputdata; ofstream outputdata; int … | |
Hi everyone I have a question to everyone. dim a as string ="preview=" dim b as string = "&" textbox1.text = a + "Random Code" + b result must be: preview=93a92& Random Code: I Need something that does not skip the text/number. Random Code can be everything. Example: 93a92,b3at2, 1256abcde … | |
I have a problem, i have two files with same name and it required to upload on site without renaming file both are jpg file, in one database it's my task how can i complete this task? | |
I have found this code in this forum: [CODE]Dim objForm As Form Dim sValue As String Dim FullTypeName As String Dim FormInstanceType As Type ' Form class name sValue = "Form2" ' Assume that form classes' namespace is the same as ProductName FullTypeName = Application.ProductName & "." & sValue ' … | |
[CODE]#include <iostream> #include <conio> void main() { int n; cout<<"Enter value of n:"; cin>>n; if(n>=0)&&(n<=10) { { if(n==0) Zfactorial=1; cout<<"/t/tThe value of Zfactorial for n"<<Zfactorial; else(n>0)!!(n<11) for(int n=0;n<11;n--) Zfactorial=Zfactorial*(n); cout<<"/t/tThe value of Zfactorial for n"<<Zfactorial; } else cout<<"Invalid value of n"; continue } getch(); }[/CODE] [B]question[/B] Professor Zoe has come … | |
can anyone tell me how to rotate the inner yellow star within the blue star [CODE=java] import java.applet.Applet; import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.geom.Path2D; public class app extends Applet { final static int OFFSET = 30; final static int OFFSETS = 30; public void paint(Graphics g) { Graphics2D … | |
I was doing a little playing around with some scrollbar controls and I noticed an odd behaviour that I was hoping someone could explain. I create three horizontal scrollbar controls, one for each primary colour. Possible values for each R, G or B are 0 to 255. When I set … | |
I am looking for query to select the last row of a table. Please help. |
The End.