199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for redflame777

Can some one help me with the sort fuction problem I am having? I do not know how to fix it. It compiles right but will not run. Here is what I have so far: [code] public int compareTo(Object p) { final Product o = (Product)p; // make it a …

Member Avatar for redflame777
0
93
Member Avatar for animefun2

[CODE] program Q2 (Input,Output); var X,Y,T1,T2 : Integer; Flag1,Flag2,Flag3 : Boolean; SquareRoot,CubeRoot,Z,D1,D2 : Real; begin X := 1; Flag1 := True; Flag2 := False; Flag3 := False; while Flag1 do begin Y := X-1; SquareRoot := Sqrt(Y); T1 := Trunc(SquareRoot); D1 := SquareRoot - T1; if(D1>0) then Flag2 := False; …

Member Avatar for animefun2
0
1K
Member Avatar for kyeong

This project is mainly GCD and validating the error from user input. I got the GCD working correctly, but not the errors. Here's guidelines to validate the errors. [QUOTE]-Provide a function to get a nonzero positive integer from the keyboard and return it to the caller. int get_input() -If input …

Member Avatar for Aia
0
160
Member Avatar for serkan sendur

in visual c# i used to resolve namespaces by right clicking on the class name, do you know how to do the same in c++? thanks.

Member Avatar for Ancient Dragon
0
247
Member Avatar for mushbucket

I know this has been asked plenty, and I have tried many things but I can't get anything to work and codes that do seem to work look ridiculously large for the purpose I need them for. What I basically need is something that gets all the rows from a …

Member Avatar for Will Gresham
0
138
Member Avatar for panpanf

i am confused by pointers. How do we know the type the pointer points? Is it compiler specific? how do we implement delete[]? Are there any books or articles about this topic? Wait for your replies.

Member Avatar for grumpier
0
136
Member Avatar for dcparham

folks, trying to pass variable from test1.html to test1.asp. simplest code possible, even works on our ISP host, but not my web server. please help?? code for test1.html, which calls test1.asp: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>A.html which calls B.asp</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> …

Member Avatar for dcparham
0
256
Member Avatar for babusek

[COLOR="Green"][/COLOR][B][/B][B]HI Folks[/B] This is Question seems like scrap but look into this .. I have several files in a directory(Ex:c:\dir\) now i have to remove the First 3 Characters from the File names in that directory. Using any unix command .. Test Case 1: C:\dir\ 123file.txt 456newfile.mp3 57575unixfile.dat trarruniing.txt After …

Member Avatar for eggi
0
168
Member Avatar for Rainb0wDots

Hi,<br> i went to [U][url]http://www.javascriptkit.com/[/url][/U], i copy the HTML at this website [U][I][url]http://www.javascriptkit.com/script/script2/formfieldhints.shtml[/url][/I][/U] i put the codes at my blog. [i edited the codes.But i only edited those main title]<br> But the problem is how do i make the Form Validation to auto send to my email address, with a …

Member Avatar for Dani
0
125
Member Avatar for dcparham

our website opens a NEW registration window [target="_blank"], register1.asp which submits form data to register2.asp "write to database" and "thank you for registering" page, by way of js form validation function - >>>i need to cause register2.asp to open without the ability to hit the BACK button [ie, no menu …

Member Avatar for dcparham
0
193
Member Avatar for Neal_1037

I'm creating a table using a DO WHILE. The INPUT objects are named by an increasing variable. I'm using the GET method on the form and action is calling the same page. Need to set the value of each textbox with Request.QueryString using a variable. The following four lines produce …

Member Avatar for serkan sendur
0
293
Member Avatar for KingTheoden

This one is worth two gold stars. I am working out of Cristian Darie's PHP and MySQL Ecommerce 2nd edition book and am woefully stuck on chapter 6. For some reason, on the main page load (i.e., index pulling in products_list.tpl) I am getting a repeating option dropdown and all …

Member Avatar for Will Gresham
0
129
Member Avatar for buddha527

I am going back through some old code I wrote last year during school to try and refresh myself for upcoming classes. This one code I went back and tried to build it and I receive this following error: error C2059: syntax error : 'return'. I am not sure why …

Member Avatar for buddha527
0
262
Member Avatar for diyana

hi i have created a code that allows images from 5 picboxes to merge together. but i have a problem distinguishing them. after merging, i would want to have different greyscale values for the images merged into one picbox. my image is made up of [COLOR="red"]black and white[/COLOR] only. thus, …

Member Avatar for gbertoli3
0
1K
Member Avatar for mailtosridar

help me how to select the record between two date...........................................

Member Avatar for HI2Japan
0
99
Member Avatar for DLightman

For the sake of discussion, say I have a sphere class with a few public and private methods. Since I have this generic class I would like to define a second class that is more specific of the type, like balls, bearings, and so on. So for my second class …

Member Avatar for DLightman
0
335
Member Avatar for JustLearning

I am getting a syntax error when I try to compile. After I write a little code I try to compile to catch any of my mistakes. In this project I am to use a class queue template that is provided by my instructor here it is [code=cplusplus] #ifndef TEMPLATEQ_H …

Member Avatar for Alex Edwards
0
146
Member Avatar for jack1234

I am using Visual Studio 2005. Following two programs has the same code, just that one is CLR Console application and the other is Win32 Console application. I set a break point at int i=1 for both program, for CLR Console application, and when run to the break point, in …

Member Avatar for Ancient Dragon
0
746
Member Avatar for DemonGal711

I have to write a code that will produce a 2^n by 2^n board and then fill it (filling it isn't important, I think I got that down). Now, since my board is dynamic, any suggestions on how to deal with this. I'm passing my array from my main function …

Member Avatar for DemonGal711
0
122
Member Avatar for PaladinHammer

In case the guys who helped me with a "pass-by-reference" function didn't see it, thank you for your help! I've only got one problem right now and thats that my program will not send data to an output file. Here's the code: [CODE]bool checkInputFile(ifstream &fin); // checks the file input …

Member Avatar for Freaky_Chris
0
547
Member Avatar for oceanicblack

I have a C++ midterm due tomorrow that I can't figure out. Here is the assignment: [code] // Use the program BtoDsol.cpp located at: BtoDSol.cpp // which converts any byte to decimal // enhance the driver program to test an additional function DtoB with a prototype of: // string DtoB …

Member Avatar for stilllearning
0
229
Member Avatar for En-Motion

I'm trying to write a program to calculate a bill for a user after they enter in some details. It doesn't allow the user to enter in a value for the 'use code', instead skipping that step. Below is only a rough draft of the program, there's plenty still to …

Member Avatar for WaltP
0
148
Member Avatar for samarudge

Hi, I want to set a function that will count how long a button is held down for however when the button is released I need to run another function that will pass the length of time and a variable passed by the button on to a script usin AJAX. …

Member Avatar for scru
0
99
Member Avatar for 3Dees

Hey, Can someone explain to me how this function works in relation to a GUI output. Public Overrides Function ToString() As String My program do some calculation and conversions and displays the resluts in a list box. I need use this function but i am not sure how it affects …

Member Avatar for Teme64
0
190
Member Avatar for MaxManus

Hello, I am trying to make a program that takes input on the command-line and returns the result to textfile. The problem is that I get the error TypeError: can only concatenate tuple (not "str") to tuple WARNING: Failure executing file: <write_cml_function.py> [CODE]from scitools.all import * # imports numpy and …

Member Avatar for MaxManus
0
144
Member Avatar for yosi

Hi, I am looking for a code that will read the data from the SPD eeprom like memory type, speed etc. unfortunatly the wmi has no data on these items. I already downloaded some code from vbfrance but it does not work. Any help / hint / code will be …

Member Avatar for LizR
0
214
Member Avatar for cproud21

I have the following prgoramming challenge to complete.. I am confused with a few things.. I have created the three classes which I have attached. I am struggling with the following if anyone could help i would appreciate it. - Using and passing the DAY_SHIFT and NIGHT_SHIFT - How to …

Member Avatar for javaAddict
0
398
Member Avatar for sanaulla123

When i set a internal frame to visible i get Java Result: 1073807364 as the output. The systems hangs and will have to terminate the execution abruptly. What does this output stand for?

Member Avatar for sanaulla123
0
185
Member Avatar for MyRedz

about this program which wants only 0 and 1 integers in its input...if other digits it will say error/// how to determine it?? i don't know is it printf("enter a value\n"); scanf("%d",&value); if(value2=0; value%2=1,value++){ printf("error\n"); } else continue. how to do it..? i dont get the idea for geting only …

Member Avatar for Aia
0
106
Member Avatar for leegeorg07

hi again after watching the film 'war games' i decided i would try to create logic games, i want to start out simply with something like noughts and crosses. but i have no idea how to start so any advice would be appreciated. thanks in advance leegeorg07

Member Avatar for shadwickman
0
104
Member Avatar for leo_zidane

Hi all experts, I try many times to get the inorder traversal but still it is wrong. Can anyone help me on this?? Thanks alot

Member Avatar for ~s.o.s~
0
121
Member Avatar for sohamghosh

I am trying to make a bank C++ program but the problem is that when the program terminates, data is lost and when I start it again, it reinitializes. Can someone tell me how to save the information in my harddrive and not my RAM?

Member Avatar for sidatra79
0
142
Member Avatar for PaladinHammer

Hey guys, pretty confused about what a "pass-by-reference" function is and does. No one will put it into simple English for me and Google has become my worst enemy on the topic. What the Program has to do is convert the five-numbers of a zip code (for example: "64110") into …

Member Avatar for PaladinHammer
0
153
Member Avatar for saleem123

I want to make a program which ask the user to enter double values and stores it in a file. The inputs process ends when the user enters cntr+d. Can someone suggest how to do it ? i wrote the following code but it doesn't work ! [code]ofstream file("test.txt"); double …

Member Avatar for sidatra79
0
105
Member Avatar for mathrules

I am writing a program that reads in from a file (60,000) words. I think I got my code figured out except for the getline part. I will show you what I have ...what am i doing wrong with the getline part? [code] [code=c++] #include <iostream> #include <string> #include <fstream> …

Member Avatar for sidatra79
0
196
Member Avatar for anny**

hi to all it is a circle program not running , giving erorrs on my c language but it is working on my friend computer (c language) here is code ; [ICODE]#include<stdio.h> #include<conio.h> #include<graphics.h> #include<dos.h> int main () { int driver,mode, i; detectgraph(&driver,&mode); initgraph(&driver,&mode,"...\\ bgi"); setcolor(8); for(i=10;i<201;i++) { sound(i); circle(300,200,i); …

Member Avatar for devnar
0
227
Member Avatar for intelli

can anyone help me with starting this program i have no idea how to start it. Design and implement an application that reads an integer value representing a year from the user. The purpose of the program is to determine the year is a leap year in the Gregorain calender. …

Member Avatar for intelli
0
159
Member Avatar for panpanf

I am learning c# now. I am confused by reflection and event. I want to know the deep principle of reflection and metadata. How the metadata is stored and what is format of the .net executable file? I will appreciate receiving some propositions.

Member Avatar for LizR
0
131
Member Avatar for arupa

write a programme which will show you which programming language you used to write this programme

Member Avatar for LizR
0
108
Member Avatar for MaxDev

Hey guys, how can I add two numbers stored in asciiz format ? str1 db "2",0 str2 db "3",0 thx.

Member Avatar for MaxDev
0
98
Member Avatar for kasp4me

Hello, if anyone can help I'd greatly appreciate any input! I am of course another newbie and attempting to compile the Inventory program - it contains arrays and I am trying to create a method to calculate the total inventory which is contained within the array named sumInventory[] Here's the …

Member Avatar for kasp4me
0
150
Member Avatar for danfi766

[B]******************************[/B] [B]Sorry guys this works I tested with bad values[/B] [B]******************************[/B] Hello I'm having trouble with this function i have a list with dicts and I'm trying to make a search in the list. The problem is that my function doesn't return the list even though i know the values …

Member Avatar for Gribouillis
0
114
Member Avatar for BestJewSinceJC

Ok so lets say I have any GUI that needs its contents changed while it is running, so that it will re-display the new contents. An example would be a JTable that just lists things from an ArrayList. So if I had an ArrayList<GroceryList> my JTable might have Cheese Crackers …

Member Avatar for sanaulla123
0
7K
Member Avatar for viber101

hello everyone, is there any tool class or utilities class in java class library that can run/view .class file?. for example if i click a jbutton i can view a .class file.. Please help. thanks.

Member Avatar for stultuske
0
150
Member Avatar for Kev_McG

As part of my A-Level computing coursework i have to simulate an end user and design a programe for them. I have the code to allow for a listbox were you select from a list of usernames you want but for added security i want to ammend it so you …

Member Avatar for LizR
0
140
Member Avatar for bulawa2002

I've an ASP.NET app that scans the network for computers, printers etc and return information about them. Now, I was able to pull information like printer names, location, printqueus etc but it would be great if i can obtain information about the tonel level on a particular printer on the …

Member Avatar for LizR
0
109
Member Avatar for Eko

Hey guys , While playing with jquery i've come across the following situation : [code] $(document).ready(function(){ $("div")[0].css("background-color","blue"); }); [/code] I get an error everytime i try to call any method on a particular element from the wrapper set . I tried with the get() [code] $("div").get(0); [/code] Same stuff . …

Member Avatar for Eko
0
199
Member Avatar for nekt

I have doubt about MouseEvent consume(). And, what it is used for? As, I tried an example and I could not figure out what it was doing Please give your suggestions on this Thanks Nick

Member Avatar for nekt
0
150
Member Avatar for u3mo

I'm running this code in Visual C++ 6.0 and it won't run correctly.. need some expert help.. I don't know what's wrong with this code.. Thanks for the help in advance.. [code=cplusplus] # include <iostream> using namespace std; int main() { char one, two, answer; do { system("cls"); cout<<"\n\n\t\tSelect a …

Member Avatar for chococrack
0
114
Member Avatar for polo_coins

I want to round number for example number 2.8 to 3 and 2.4 to 2.5 how I made so in C# I heard something about Math.Round function but it doesn't work properly Thanks Sergey

Member Avatar for ddanbe
0
505

The End.