199,114 Archived Topics
Remove Filter ![]() | |
I was trying to make a for loop count down backwards using this loop, but when it gets to zero, instead of realizing that decrementing will bring the number below zero, it tries to make the unsigned short (-1), which is actually 65535 as unsigned. of course, this code produces … | |
[CODE] import java.util.*; public class sSone { public static void main ( String[] args ) { Scanner scan = new Scanner ( System.in ); System.out.print ( "Enter an integer number from 0-128" ); int inInt = scan.nextInt [/CODE] PURPOSE: program that receives an integer number from 0-128 and displays the … | |
hi, here is my data base structure: [ATTACH]17124[/ATTACH] i try an sql command that return for each examen its number of tests, so i tried: [CODE]Dim sqlQRY1 As String = "SELECT Int_Exa,count(*) as 'TOTAL' from TEST T1,TEST T2 where T1.Int_Exa=T2.Int_Exa"[/CODE] that`s did not work, so i tried to do that: … | |
One of my assignments is to write a factorial function. I have no clue how to start this program. HELP!! This is my assignment.. Example Outputs Enter the number: 5 The factorial of 5 is 120 Enter the number: 0 The factorial of 0 is 1 Enter the number: -8 … | |
I need to create a list which contains objects of a particular class. I am having problem in retrieving the objects back from the list. Here is my code for insertion into list- import java.util.LinkedList; import java.util.ListIterator; public class listchek { int i; String name; public listchek(int k, String n) … | |
I have a text file that I am reading into my program. The data looks as follows: Last Name, First Name, Current Salary, Raise Percentage iller Andrew 65789.87 5 Green Sheila 75892.56 6 Sethi Amit 74900.50 6.1 Ge Robert 81990.23 3.3 Smith David 43221.33 5.5 Jones Mary 33345.12 2.3 Goodman … | |
I'm supposed to write a program in C++ to show someone a grade criteria. I need some major help with it! I'm so so so confused! :( here is my assignment. please help me! A >= 90 B >= 80 C >= 70 D >= 60 F < 60 The … | |
Dear Forum, I've been searching for quite a while for something which comes close to my question - and [I]freiheit's[/I] thread back in May 2010 entitled [B]'Sorting data asc and desc using a jump menu'[/B] came the closest. Whilst pointing me in the right direction, I need to take it … | |
i made a browser with Favorites and the Favorites save in XML file. when i open the program and i put there some favorites its open the program realy slow like after 9 - 15 seconds/ and i delete the all favorites its open like its should (1, 2 seconds) … | |
I'm writing a function that stores an integer as separate bytes in an array, see [URL="http://www.daniweb.com/forums/thread25312.html"]here[/URL]. I've got to the part when I detect a button push, and increment the digit over the cursor. If this digit gets to 9, the next push should reset it back to 0. The … | |
can we make the maze game using header files of conio.h and iostream.h | |
Somebody was so kind as to indicate to me an interactive Python learning program. I started using it, but lost the URL. I cannot find it back in the threads i started. Can this Python forum member remember me of his suggestion? Thanks | |
Firstly i know your gonna say "OMG this guy just want to make his homework using our help" "Wow, this guy is so stupid not knowing this" Yes, i dont know this.. and yes this is my homework.. i'm not asking a direct answer atleast just teach me while pointing … | |
Here I have another one: The program that should first read in two values from the keyboard, a starting value and an ending value. It should sum all the even numbers between those two values including the endpoints and display the sum. If the ending point is less than the … | |
Hi! I have a code that generates the table with 6 columns, and 6 textfields. Textfields are used to filter the table, and they are assigned to columns. Everything works normally, but looks badly. Attached you will find a picture to see what I mean. I don't like that textfields … | |
(BEGINNER) problem: i need a program that reads a 4 digit integer and adds all the digits in the integer. example: input=1234, output==10 | |
I'm making a program that allows me to control my other computer from this one by encoding and streaming the commands I enter into a console to the destination, which then decodes it and does what the command says and encodes the result and streams it back, then my side … | |
hi... i want to play wav file on my form. ex : media file on windows -> C:\WINDOWS\MEDIA\TADA.WAV how can i do this?? please help me thanks. best regards :) | |
a 'challenge' question by my teacher asks me to look in my C++ book, and do a question. it asks me to: write a function powfun() and make it raise an integer number passed to it to a positive integer power and returns the result to the calling function. it … | |
I'm working on a PIC project, and my brain has almost exploded! I'm hoping that by writing down my problem, that the answer will come to me, but please feel free to help! Background (mostly irrelevant to an outsider): I'm storing a number in a variable (say r, an unsigned … | |
Hello again everyone, How are you all doing? I am an fairly familiar with C/C++. I have five books on my shelf about programming in C/C++ but none could provide me with a satisfactory solution to this one problem. I would like to graduate from the Hello World project in … | |
[code=c] #include<stdio.h> main() { int a=5; printf("%d,%d%,d",++a,++a,++a); } [/code] the output of this is 8,7,6 instead of 6,7,8 y it is so... | |
hello i have a datagridview (Dg) with 7 columns. i have a RowValidated event which tests if the validated cell is the first (index = 0) then sets the focus on the third cell with columnIndex = 2 BUT the cell that's getting focus after the row is validated is … | |
Hello I am going into my final year in september and need to come up with a topic for my final year project. I am studying Software Engineering. Any assistance will be highly appreciated. Kind regards | |
I have the following table: [CODE] mysql> describe LEVEL1_CUSTOMER; +---------------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +---------------+--------------+------+-----+---------+-------+ | CUSTOMER_NUM | char(3) | NO | PRI | NULL | | | CUSTOMER_NAME | char(50) | YES | | NULL | | | BALANCE | … ![]() | |
Hello, I'm just looking for an answer or idea. I plan to connect vb.net to mysql (which is done) and also the PHP connected to the mysql. But I'm confuse with something. VB.NET is use for offline things (which people will come to store and buy), but PHP is buying … | |
Hi, I would like to know how to write a "Console application" in dll form for a patch installer so that I could call it from the installers and find out the installation of a program. I have created a VB.NET class project and checked the COM Interoperation or sort … | |
[code=syntax]from __future__ import division from math import sin from math import cos from math import tan from math import radians a = raw_input("enter 1 for sin, 2 for cos, 3 for tan") if a == 1: degree1 = int(raw_input("Type in angle value: ") radian = radians(degree3) sin = sin(radian) print … | |
Hi, I try to communicate with equipment through serial port. It is slightly order equipment so it requires to send command in a specified format ends CHECKSUM (Like start with 'STX' and end with 'ETX' etc and the command looks something like '020T025F00R000000000000000'). [B]Issue with Python:[/B] For my case they … | |
![]() | I just finished writing a string class that includes functions for generating random string (why I don't know, as I have never really needed random strings before). Basically the user can pass the function an enum citing what kind of string that'd like (i.e. AllUpperCase or AllNumeric). There is also … |
Hie guys i have just started php development and i want to be professional developer.I hope if there is an experienced php developers who are willing to guide me in my quest to be a highly skilled developer who will be able to give back to the php development community. | |
I have been doing some research on the net, and found many ways of doing this, but it all leaves me with the same question. Wich one is the better to use? What i want to do, is a simple yet stable configuration system for any of my projects that … | |
hey am creating a quiz(examination) which randomly selects questions from a database,and each question has 4 options,out of which 1 is correct.....also i need to show the final result of the number of ques correctly answered,wrong and those not attempted.... im at loss at MySql...don't know how the design of … | |
I trying to read in from a file but getting runtime errors can some one help find the .txt file as an attachment [CODE]#include<iostream> #include<set> #include<stack> #include<queue> #include<algorithm> #include<fstream> using namespace std; int main() { const int size= 7; char input[size]; fstream nameFile; nameFile.open("words.txt"); if(!nameFile) { cout<<"error cannot open file"<<endl; … | |
Hello! I have a small doubt about formal specifiers. I have seen in many programs of printf statements,writing "%2d".What is the use of writing an integer before d or any formal specifiers. Thanks in advance | |
Elaborating on the title, I'm trying to complete an exercice in K.N. King's [i]C Programming: A Modern Approach[/i] which requires me to accomplish the task in the quote below. My idea works, but the program does not return control to the OS. I've nailed the problem down to the do/while … | |
Okay...I'm back again for the next program...here's what i have so far [CODE]print "Euclid's Method" a= raw_input(("Enter first number ")) b= raw_input(("Enter second number ")) def euclid(a,b): while b != 0: a, b = b, a%b return a[/CODE] My question is, how do I get it to print out the … | |
Imports System.Data.OleDb Public Class frmLogin Dim cn As OleDbConnection Dim cmd As OleDbCommand Dim add As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\User\Documents\Visual Studio 2008\Projects\DietTrainer\DietTrainer\DT.mdb.accdb" Dim dr As OleDbDataReader Dim SID As String = "admin" Dim SPSW As String = "admin" Dim LoginID As String = Me.txtID.Text Dim LoginPassword As String = Me.txtpsw.Text … | |
I have completed a program and it compiles fine. When I run it, it seems to run fine. The only thing is that I am missing element data for two of the objects I am printing out in the text area of this JFrame. I an array called printerProduct[5], that … | |
hey guys, i am looking for new topics related to vb.net (DATABASE PROJECT). can anyone help me in this research?? | |
Hello Im going to make a program that is much like a calender. I havent started coding anything yet because I would like some advice on how to make the program "alive". - I wont it to be able to start up automatically when windows starts. - Run in the … | |
Hello, So I am just starting to really use Make files in Linux, and I am getting the following error when I try to "make": c++ -c main.cxx In file included from main.cxx:2: LinkedList.h:39:26: error: LinkedList.cxx: No such file or directory make: *** [main.o] Error 1 Here is my make … | |
I know how to write messages and save it as a .txt file (using Input/Output streams). What I want to do now is to be able to click a button and have notepad open the .txt file. How can I do this? | |
I have written some code that compares two "BufferedImage" rectangles by doing a pixel by pixel comparison. These BufferedImages are of "playing cards" with rounded corners so I would like to exclude those corner areas during the image comparison process since the varied background could cause the comparison to be … | |
Hello all, I dont know if this is the right area but anyway Heres my situation: I have a software that updates 2 devices firmware's, the software communicates with the devices via Serial Cable(RS-232) , my problem is: I only have 1 serial(COM) port in my motherboard, and i need … | |
I am writing a Java application that "passively" interacts with a Windows Desktop Application. What I mean when I say that it interacts "passively" is that I perform screen captures to determine the location of "buttons" displayed by this Desktop Application and I use "absolute" x and y coordinates to … | |
ok so i have a time that i need to order by but i dont know how to make it order, in order by am then pm. Ex: i have to events that i put in the calendar one for 6:00 am and one for 9 pm. I put order … | |
I just installed eclipse and Pydev. but I can't I can't add Python 2.7 as the interpreter for Pydev. I couldn't find the interpreter file at 'mac/usr/local/bin/' I only see /python 3.1 and some others. Is it because of I have installed 3.1 and 2.7 both? Even then I click … | |
Hi there...... I have received a domain from a customer which is showing me very strange things..... When I tried to login via FTP it showed me empty directory.... The server is apache and when I try to login via cpanel it gives me this error "Not Found The requested … | |
I'm having problems getting this button to work here is the HTML [CODE]<head> <script type="text/javascript" src="Objects.js"></script> <title></title> </head> <body> <form> <input type="button" value="Go Searching!" id="work_car" /> </form> </body> </html>[/CODE] And here is the JavaScript: [CODE] function car(seats,engine,theradio) { this.seats=seats; this.engine=engine; this.theradio=theradio; } var work_car=new car ("cloth","V8","Tape Deck"); b1.onclick=work_car(){ document.write=("I want … |
The End.