199,114 Archived Topics
Remove Filter ![]() | |
i am trying to make a program where a user inputs two numbers. the first number needs to be less then the second. then the program needs to add all the numbers together that fall between those two numbers including the two numbers. for example number1 = 1, number 2= … | |
the largest negative and positive integers for n-bit 1’s and 2’s complement systems? What are these numbers for 32-bit registers? If (1000001110)2 is an integer in a 10-bit 2’s complement system, what is the binary code for it in 20-bit 2’s complement system? | |
Hello I would like to make some kind of download manager that you can feed a file of links which it would then download. I can make it work for one at a time but it takes like forever to do them all and my internet connection isn't fully used … | |
IF i write to file REGISTRATION NUMBER :1001 how can read back from the file the 1001. Thank you for all your help,i have gotten other hints but they don't seem to work | |
Could someone tell me what has to be changed to get the element name and text of my targetElement? I just get internal frame openFrameCount= 1 start obj() type= guide cmaj name: null value: null name: null value: null name: null value: null cmaj name: null value: null name: null … | |
I need to find how long it takes to execute a bunch of code. I've tried using clock() but it's just not accurate enough for the small functions (it says 0 cycles have passed). I heard of gprof but that only seems to be for Linux. The version of Visual … | |
How does Priority Queue work. This is my scenario, I have certain objects with priorities 1,2,..10. There could be multiple objects with same priority. I was thinking I can put them into a priority queue and let the pool() give me the objects with highest priority.. ? I m kinda … | |
Hi, I'm trying to convert a void pointer to a struct pointer.. that's seems very easy but my compiler give me error. Thanks. /home/subi/Personal/Projects/LinkedListUserInfo/main.cpp||In function ‘error_t parse_opt(int, char*, argp_state*)’:| /home/subi/Personal/Projects/LinkedListUserInfo/main.cpp|50|error: expected primary-expression before ‘)’ token| /home/subi/Personal/Projects/LinkedListUserInfo/main.cpp|50|error: expected ‘;’ before ‘null_pointer’| /home/subi/Personal/Projects/LinkedListUserInfo/main.cpp|48|warning: unused variable ‘null_pointer’| ||=== Build finished: 2 errors, 1 … | |
Here is my code atm [CODE]room_num = raw_input("Enter your room number: ") text_file = open("c:/roombookings.txt", "r") whole_thing = text_file.readline() if room_num in whole_thing: print "Room number found here is the information:" else : print "Room number not found." single_line = whole_thing.split('\n') for single_line in text_file.readlines(): if room_num in single_line: print … | |
I have a 2d array with x and y coordinates. I need to figure out the north most, south most, east most, and west most points and print them out. I figure the best way to do this is to find the minimum x value and the corresponding point will … | |
Hi, I have a question about ajax, php si mysql.. In mysql i have a table playlists and here is the code for php: [code] <?php $playlist_result = mysql_query("SELECT *, COUNT(playlist_id) AS NumOccurrences FROM playlists WHERE created_by=$user_id GROUP BY playlist_id HAVING ( COUNT(playlist_id) > 0 ) ORDER BY date DESC"); … | |
I have a series of of JOptionPanes pop up to get info from the user. However, if the user presses cancel, the machine gets an error (which is prevented). I'm trying to catch this and force the user to make a choice and press OK. MY code doesn't seem do … | |
[code] import java.io.*; import java.lang.*; import java.util.*; class CustomerInfo { public String name = new String(); public String accnNumber =new Sting(); public String accnType = new String(); public float balance = 0.0F; public float rateOfInterest =0.0F; public float interest = 0.0F; public float useBalance = 0.0F; public String password = … | |
Hi, My name is Ian, and I’m trying to make a put together an eCommerce website. The site is for selling boxes. We have an inventory of specific boxes of specific dimensions, specific styles, board grades, and so on. I’m using Dreamweaver and to try to make my life easier … | |
I am after making my program wait before responding to the users input, what code do i use for this and how do i implement it? [CODE]#include <iostream> using namespace std; int main() { char instuctions = 0; int A = 0; // user input 1 int B = 0; … | |
Problem: Use a 2 dimensional static array with 3 rows & 2 columns to the course number and number grade you have received in that course. The program should have three functions called get information, printinformation, and convert. You need to send array to getinformation and printinformation functions as parameters. … | |
Hi friends, I have a multi form(actually is one whole form, but split into multiple forms). From the image seen When i typed the name data in Form 1, and click the next button and go to Form 2... In Form 2 when i typed the Email data..and then i … | |
Please enter a integer for knick-knacking (pyhton question)? if the number is 1, with his thumb if the number is 2, with his shoe if the number is 3, with his knee if the number is 4, at his door this is what i have -_- [code] def main(): again … | |
Is there any advantage in declaring a variable local to a function const? i.e., I want to use a sine value a couple of times so I store it in a local variable. If I make it const does this facilitate any compiler optimizations... or anything beneficial? [CODE] double my_func(double … | |
Now...when done. the output should look like this: >>> main() Welcome to the game of BULLS and COWS. The objective in this game is for you to guess a 4-digit number The computer responds with how close your guess is to the target BULLS = # common digits with exact … | |
Hey guys I'm using Tiled (mapeditor.org) for the mapping in my game and I have made a few maps, and started implementing them in my game. The first thing I had to do was decode them from base64, then gunzip the string. Now I am on the last step and … | |
Why does this give the error "cannot reference this before supertype constructor has been called" I thought that is the first thing I did in the constructor. [code] /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package application1; import … | |
I was just wondering in general the limitations of having moving-game objects stored inside a vector. I was experimenting with general physics where each ball/particle is a class that contains directions and magnitudes of velocity and position. Increasing the number of particles means increasing the iterations of the for loop … | |
Hi, I'm trying to use a public webservice, which I have been using for years with other programming environment where you have to prepare everything at a lower level of coding, placing everything with hand( soap header, body, authantication etc). In VS2008 I have succeded referencing and accessing the web … | |
As the title states, I'm trying to learn how to create a custom GUI window for Windows. Basically I'm asking how I can output pixels to the screen without using any of the default windows gui classes. | |
Hi How can i know in java , pc is connected to internet or no (is online or offline) ??? thanks | |
Hi, I have little experience with writing to Http socket. I am trying to send data to another computer through Http protocol, just like having a chat between two application but instead of using Socket connection I want to use Http connection. The server writes to [I]http[/I] connection data and … | |
Hey everyone, I want to start learning socket programming. Ay references and advices will be greatly appreciated!! | |
I'm working on my first game in C++ and SDL. The game compiles and runs perfectly on both my boxes (Arch Linux and Windows XP). When two of my friends were to test the game, one of them (running Windows Vista) said his machine BSoD'd every time he ran the … | |
Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/redirect_index.php:20) in /home/mysite/public_html/redirect_index.php on line 38 I've converting as asp site to php. I'm a partial numpty in asp and complete numpty in php I keep being told this is a white space problem..... I can't see … ![]() | |
i m working with this program but dont know how to add counter in it in order to check running / execution time of program.please help me. and telll how and where to add code for this task?plz reply soon. public class InsertionSort{ public static void main(String a[]){ int i; … | |
Hello. I am constructing a database using GUI. I wanted to have all my containers to be on one window. I am having a problem on how to have these containers on one window. Any suggestions? I am very sorry if the code was seem weird. Here's the code: [CODE]public … | |
this is my code where i am putting values to the checkbox value by getstring i getting problem when displaying the value of checkbox value which displays"Undefined" please give some solution. where i want to get the value of my checkbox which i have been selected | |
hi masters.. anyone know what it shell? and how to do it? any code more helps... thx.. Best Regards | |
Dear all, I'm studying information systems engineering course (major in Programming). I'm currently preparing proposal of my final year project for my supervisor. But, I'm facing a problem in proposing a suitable system for my final year project. My partner and Me currently plan to do a Restaurant System ? … | |
hi guyz, i'm developing my own website, when creating news, i'm having this problem, i can't show news by id, i mean i have 5 news item in my db and they are stored by id 1,2,3,4,5... but when it comes to display the news they all display as a … | |
hi i wants to create an dll file for displaying selected data form database by using a gridview. for this iam creating a dll file , in that how to declare gridview1 ,,,, here my codeing is given below ..... please correct errors.... [CODE]Imports System Imports Microsoft.VisualBasic Imports System.Web Namespace … | |
This is my first post in the Dani community. I am brand new to java, 5 weeks into an intro to computer programming course. My assignment is to create 10 random numbers between 50 and 100. Then I am supposed to sort them from lowest to highest, find the average … | |
hi everyone!!!! I am currently working on a small vb.net project which consists of several windows. These windows consist of buttons and so on and if I click on one of these buttons, another window opens up and the previous window just closes up or hides itself. The problem is … | |
hello,i think this is just a simple question but im not really familiar with the basics of VB6.0 so i am asking it, can i ask how can i set integer value on text1.text without making the value visible on the textbox when i run the program? thanks like text1.text … | |
Hi all. This is probably quite a newbish question, but i have a input for a number. From the entered number, i want to extract the first digit in the number. So if the typed in number is 43, i want to extract the 4, but not the 3. In … | |
im working with this program for merge sort. i want to add a counter in it in order to check running / execution time ofd program. please help me. please reply soon. public class mergeSort{ public static void main(String a[]){ int i; int array[] = {12,9,4,99,120,1,3,10}; System.out.println(" Selection Sort\n\n"); System.out.println("Values … | |
Dear all, I am currently working on a mini-application using Visual C++, and it goes pretty much like this: The program, using mousehook, will retrieve the coordinates of the current mouse position using getcursorpos when a right click is executed, and it will return with a red dot on the … | |
How can i call (execute) a file (with ".c" extention) from the particular path without including it into main file ? Now the file which we have to call from particular path is containing only a function (without "main()")..... | |
I am developing a database whre people can register and connect with friends. I am stack at how to store friends. Should I create a Table Friends with fields Friend_ID, Reg_ID, Reg_ID_2. Reg_ID and Reg_ID_2 are values from the Registration table which is the primary key. Thank you for your … | |
i am having a small problem. I am having some problem getting variables from the first form into another form to be processed. in other words i am processing the same data i got from the first form twice but i want a break between the two blocks that processes … | |
![]() | My program is able to create the folder fine but I wanted to know if there is a way to put the date and time in the title? C++ and using Visual Studio 2008 for Windows. [CODE]system("mkdir %SYSTEMDRIVE%\\Blebble\\Blabble");[/CODE] ![]() |
My form Submit button has an onClick="myFocus()" call, which looks like: <code> theFocus = document.getElementById('warning'); theFocus.tabIndex = 'auto'; theFocus.style.background = 'red'; theFocus.focus(); </code> It works - briefly. Right after clicking Submit (top of form no longer visible when Submit reached), the focus goes to the target element and turns red … | |
Hey, WHen i load Dev-C++ a box comes up and says "There doesn't seem to be a GNU Make File in Path or in Dev-C++'s bin... " how do i make a GNU Make File? wilko1995 |
The End.