199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
[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; … | |
![]() | 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 … |
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. | |
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 … | |
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. | |
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> … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
help me how to select the record between two date........................................... | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
![]() | 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 |
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 | |
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? | |
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 … | |
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 … | |
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> … | |
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); … | |
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. … | |
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. | |
write a programme which will show you which programming language you used to write this programme | |
Hey guys, how can I add two numbers stored in asciiz format ? str1 db "2",0 str2 db "3",0 thx. | |
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 … | |
[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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 . … | |
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 | |
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 … | |
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 |
The End.