199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mani_singh

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= …

Member Avatar for WaltP
0
255
Member Avatar for blamp

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?

Member Avatar for strmstn
0
141
Member Avatar for Japus

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 …

Member Avatar for toto10
0
81
Member Avatar for donelliewhyte

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

Member Avatar for jephthah
0
78
Member Avatar for ceyesuma

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 …

Member Avatar for ceyesuma
0
94
Member Avatar for Phloxicon

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 …

Member Avatar for Phloxicon
0
81
Member Avatar for xschecterx

Hello, I'm trying to print out on the screen the the sum of a perfect number, and i can't quite figure it out how to code it. For example I now 6 is a perfect number so i need [ 6= 1+2+3 ] to print out on the screen. Any …

Member Avatar for clutchkiller
0
102
Member Avatar for GradStudent

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 …

Member Avatar for GradStudent
0
162
Member Avatar for jBat

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 …

Member Avatar for jBat
0
135
Member Avatar for jabbadabba

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 …

Member Avatar for rueth
0
835
Member Avatar for ashkash

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 …

0
69
Member Avatar for bogdanxpose

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"); …

Member Avatar for Airshow
0
79
Member Avatar for BrianK123

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 …

Member Avatar for stultuske
0
2K
Member Avatar for DifficultUsrnme

[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 = …

Member Avatar for BestJewSinceJC
0
130
Member Avatar for IAuchmoody27

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 …

Member Avatar for Cartweaver
0
110
Member Avatar for nats01282

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; …

Member Avatar for Stefano Mtangoo
0
168
Member Avatar for fmma

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. …

Member Avatar for Lerner
0
152
Member Avatar for tryphy

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 …

Member Avatar for emhmk1
0
162
Member Avatar for denero1

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 …

Member Avatar for Tech B
0
75
Member Avatar for Kikazaru

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 …

Member Avatar for vijayan121
0
3K
Member Avatar for camigirl4k3

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 …

Member Avatar for Tech B
0
364
Member Avatar for PhiberOptik

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 …

Member Avatar for PhiberOptik
0
156
Member Avatar for ceyesuma

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 …

Member Avatar for ceyesuma
0
193
Member Avatar for sblass92

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 …

Member Avatar for sblass92
0
135
Member Avatar for snakay

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 …

Member Avatar for snakay
0
155
Member Avatar for Nicholas_Roge

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.

Member Avatar for Stefano Mtangoo
0
113
Member Avatar for mahdi68

Hi How can i know in java , pc is connected to internet or no (is online or offline) ??? thanks

Member Avatar for mahdi68
0
99
Member Avatar for Clawsy

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 …

Member Avatar for Clawsy
0
229
Member Avatar for tkud

Hey everyone, I want to start learning socket programming. Ay references and advices will be greatly appreciated!!

Member Avatar for Stefano Mtangoo
0
150
Member Avatar for SimonLarsen

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 …

Member Avatar for SimonLarsen
0
237
Member Avatar for kimphot

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 …

Member Avatar for diafol
0
204
Member Avatar for aaanchal

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; …

Member Avatar for darkagn
0
183
Member Avatar for chixm8_49

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 …

Member Avatar for darkagn
0
98
Member Avatar for sharathk60

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

Member Avatar for jwenting
0
278
Member Avatar for Sawamura

hi masters.. anyone know what it shell? and how to do it? any code more helps... thx.. Best Regards

Member Avatar for kvprajapati
0
488
Member Avatar for ting89_sam

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 ? …

Member Avatar for jwenting
0
163
Member Avatar for phpangel

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 …

Member Avatar for phpangel
0
204
Member Avatar for kanuri1

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 …

Member Avatar for kvprajapati
0
102
Member Avatar for jmguerriero

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 …

Member Avatar for jmguerriero
0
554
Member Avatar for avinash_545

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 …

Member Avatar for avinash_545
0
103
Member Avatar for lloydi12345

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 …

Member Avatar for student02
0
254
Member Avatar for spesseh

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 …

Member Avatar for spesseh
0
9K
Member Avatar for aaanchal

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 …

Member Avatar for -ordi-
0
303
Member Avatar for Enigmatic331

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 …

Member Avatar for Enigmatic331
0
171
Member Avatar for nirav99

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()").....

Member Avatar for WaltP
0
72
Member Avatar for kiel19

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 …

Member Avatar for kiel19
0
153
Member Avatar for cane23

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 …

Member Avatar for cane23
0
113
Member Avatar for DrewDodson89

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]

Member Avatar for DrewDodson89
0
228
Member Avatar for thorshammer

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 …

Member Avatar for thorshammer
0
118
Member Avatar for wilko1995

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

Member Avatar for abhi_elementx
0
119

The End.