199,114 Archived Topics
Remove Filter ![]() | |
I have this Instance of class A, which i first assign, then assign again, but the compiler calls the destructor AFTER they class has been constructed the second time, why? [code] class A{ public: int *Int; A(int b) { Int = new int(b); cout << "CONSTRUCTOR " <<endl; }; ~A() … | |
I'm fairly new to C++ programming and I would like to ask you a (maybe strange) question... The code below compiles correctly with both: - the latest MinGW-compiler - Borland C++ Builder Compiler 5.5 (from the free Command Line tools) However if I run the program (after compiling with the … | |
I made program take number from user then display the factorial of this number >>>> The program works well but if I enter 20 it crashes. I need help how to accept big number in my program ?????? This my program [CODE]#include<iostream> using namespace std ; long long Fact(long long … | |
This is a part of my homework. I have completed part 1. Part 2 asks that I re-write my part 1: [CODE]"Write a modified version of part A, in which the function is to be called as though it had the following prototype: void sumPowers(int n, int *pSum);[/CODE] is this … | |
This is program i made (basic mash); I want to make it so that the program will ask if you want to repeat it again. "n" = exit. and anything else makes it repeat.....can someone help me? I'm not sure how to do it ... [code=syntax] x = 0 import … | |
Hey i have a code where i want to add/subtracrt 2 big integer. But i don't know how to do the carry thing. Does anybody has an idea? Here is my Code: [code=c] #include <iostream.h> #include <string.h> #define SIZE 40 class Huge { public: Huge(); void menu(); void rules(); void … | |
Hey guys, I am trying figure out a way of updating my program. Since I am a newbie to programming I have no idea where to start. My first idea was to download a new jar, launch it, kill the old app, and then delete it with the new one … | |
Please provide me a method or script for opening remote connection to remote windows systems from a windows system for doing admin tasks like assigning a local user admin rights to the remote windows system. Well Win32 Net:Admin can be I think, used for getting local user properties or group … | |
Respected, Requirement is when body loaded there must be 1 increment in the variable. and total number of loading the body display on the button (document.button name.value=variable name) | |
I am trying to write a program that in it I have to search through some text and to find something and I dont know where to start I have some text in a String and for example I need to search through it and store everything between <title> and … | |
Im having trouble ending sessions for some reason :| Heres my code. Can anyone see what the problem is? [code] <?php include('includes/config.php'); unset($_SESSION['isLogged']); session_destroy(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> </HEAD> <BODY> <?php echo '<div class="nav">'.$navigation.'</div>'; ?> You have been logged out. </body> </html> [/code] | |
Hello All, I need to trigger an event on application.exit on windows application (vb.net).... how could I handle the applicatoin.exit event | |
Hi, I am trying to debug my shell script by bashdb. My script take as argument "--gdb", so I wrote [quote]bashdb myscript.sh --gdb[/quote] However, this way it will produce error that bashdb: [quote]unrecognized option '--gdb'[/quote] If I quote --gdb as [quote] bashdb myscript.sh '--gdb'[/quote] then I will end up with … | |
I have a problem in these code as the error message show that the m1 and 2 is unassigned local variables [CODE]using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { Console.WriteLine("Enter th number "); int x= int.Parse(Console.ReadLine()); RomNo(x); Console.ReadLine(); } static void … | |
Hello everyone I need a solution for my problem. The solution can be a simple PL/SQL block or a trigger I have a table called T_SBSTTN_VLTG_MSTR with following data SBSTTN_CD VLTG STTS DT_ENTRY FK_TM_ID 10111111 11 Existing 2/9/2009 19:32 10144 10111111 33 Existing 2/9/2009 19:32 10144 10111111 132 Existing 2/9/2009 … | |
Hi, I've searched this and other forums and found what are clearly the right answers for some people but not for me. I have a database with an item table. Item has a field called image that stores a path to an image. Here is an actual example of a … | |
I have a frame that includes a hidden <div> at first (before any action), the problem is that when opening the page, I have a white space, and i can't reduce the size of the frame because the content of the <div> will not appear! how to hide the white … | |
I am using C# 2005 and SQL Server Express 2005. My table "PreRegistration" has a field named "FormNo" of data type smallint. In my dataentry form, i need to display the next available FormNo in the text box. The program should find the last alloted FormNo, add 1 to it … | |
Hey. I'm currently working on a project where I'm suppose to read album titles including song names from a file into a 2d array. When I input the cd number, only that record should show up in the console. E.g. Cd number: 1 Album title Song 1 Song 2 Song … | |
hi i would like to store the data of a text area inside mysql, and for that i want a suitable dtatype For eg if the data in textarea is [QUOTE] hello hie are you i'm fine! [/QUOTE] currently i'm using varchar but th eproblem is that the data apperas … | |
hi, I am trying to learn how to upload multiple Music files to server then save information about them in database e.g. albumname, filename, type and maybe url. i have few questions: 1. would i be able to write the albumname in database as the folder i am uploading to. … | |
hi, I am trying to declare a 2D array in a member function in C++ , where its size changes everytime i run the program. but it is giving error like " a constant expression is required " but i cannot make the size constant, as i need to change … | |
I have some strings like '/home/dir/file1/file2' , '/export/home/file1' '/home/dir1/dir2/folder1/file' I want to only to print the values that come after first two occurences of '/' like for first string '/home/dir/file1/file2' I want to print 'dir/file1/file2' How to do this Thanks | |
Hi All Could anybuddy tell me how to rename/hide the title in the popup window. I found the below code from google. this code is working fine. Actualy I don't want to show the url to the user. Below code helps to hide the address bar. But still user can … | |
Hi, i wanted to link options selected from Comb box A (general) to specific options in combo box B (specific). I want to pick a word in Combo box A that has specific words/phrases in Combo Box B show. But not all the words to show in the combo box … | |
Hi All I am creating a url for a file, which is uploaded in content management server, in the jsp page and from this jsp, I am opening a new window for this file to show the content to the user. My problem is, I want to hide the url … | |
Hey everyone, My problem is that I have a program which is to be used for teachers. One of the functions I am implementing is a SearchStudent function. Basically it checks a multidimensional array I created called MyClass[MaxSize,MaxGrade], MaxSize being the amount of students that can input into the program … | |
Hey all! I have a gridview with multiple page, when i click on a check box in one page and proceed to the next page and click another check box in the previous page when I go back to the inital page the first check box click is cleared as … | |
Note: I debated whether this should go in ASP forum or SQL Server forum and I think it belongs here. Ok, I have a classic ASP web application, a custom intranet, which has been used in 7-8 different installs, 3-4 different servers with no issues. It uses a SQL Server … | |
I am passing a value through query string to a popup and then trying to pass it back to the main page... I store the value in a hidden input box [code] <input type="text" name="FromZip" id="FromZip" value="<% response.write(Request.QueryString("txtZipFr")) %>" /> [/code] and am passing it back through query string to … | |
this code is used to insert one record....how do i insert multiple records?? [code] Set connect = CreateObject ("ADODB.Connection") connect.open "DSN=OPTUMETL;Driver= Oracle in OraHome92;Server=urnts1.uhc.com;UID=OPTUMETL;PWD=OPTUMETL" Reporter.ReportEvent 0, "Database connection", "Successfully connected to URNTS1" Set objRecordset = CreateObject("ADODB.Recordset") ' Stmt to execute the code query="INSERT INTO STG_CARE.ASSESSMENTANSWER(ANSWERID, ANSWERGROUPID, ANSWERTEXT, DISPLAYSEQUENCE, ISEXCLUSIVENO, ISEXCLUSIVEYES, … | |
Hi guys, this is a brainteaser for me and I'm wondering if you could help. Lets say I'm looping through these results from MySQL, and the result set is as follows: ID------Name 4------ Anthony 76------John 31------Andrew 98------Sonia If I was on the 2nd row (with an id of 76, name … | |
Hi, Im trying to make a media player in Eclipse. Its just a simple thing not an advanced one but i cant get it to work. I have looked at some examples and tried to create a simular version. I could really use some hints on how to make it … | |
Hi, I'm trying to print two arrays to a file, these are pretty large. However I want to print them as two lists. This is an example of what my output is now: [ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. … | |
Hi I'm new in this community. I am working on a GUI using wxPython and I would like to embed an Image-to-Video converter in my program by pressing a button. Is this possible? If yes, can someone please send me a code? I will really appreciate it. Thank you so … | |
Hi Im trying to re-make one of those image galleries where you click the thumbnail and the whole browser window is blacked out with the larger image displayed in the middle. Ive gotten as far as finding a script to hide this black layer and reveal it onMouseClick... but if … | |
Can someone clarify me the difference between CHAR and VCHAR and which one is best to be default type in my all SQL queries? Is it VCHAR or CHAR? :D | |
Hi, I got this code from My trainner.He asked me to debug.I tried my level best to debug. but still it shows the K meanspoints class needed error. This alone i could not solve. I also tried with vector class, but it shows error. please help me. [code=java] /* Implements … | |
/* Problem statement... You go to a wedding reception, and there are a lot of people. All of these people 'know' the bride or the groom in some manner. Additionally, a lot of them may know each other in one or more manner. For example, let's take Ann and David, … | |
Hello there, I have some codes with me to plot my graph that looks like [URL="http://www.vanth.org/vibes/images/normalECG2.PNG"]this[/URL], but I can't really understand what is going on in the codes below that is used to calculate the Y-coordinate in order to plot out the graph: [CODE]Function findY(ByVal index As Integer) As Long … | |
I have a program that is supposed to draw circles every twentieth of a second every time a button is clicked. When the button is pressed, a function is called and a for-loop is executed 25 times. Within that for-loop, [ICODE]repaint ()[/ICODE] should be called. Within the [ICODE]paintComponent[/ICODE] function, random … | |
I have a thesis project in Visual Basic 6 using Bar Code Reader. This project is a convenient store that reads the bar code from the items or products in store. The cashier will point the bar code reader to the bar code of the items, then the barcode number … | |
I need to delete the row in access database through vb6.0... I am using the search button to search the records,and then i need to delete those from the database,using the delete button. In the same way i need to upadate/edit the info in vb form and update it to … | |
What would be the most efficient way to check that a series of text boxes are completed prior to allowing the execution of code since executing the code without values being completed errors out the program. | |
Hello everyone... Im really lucky to find this site..I have been struggling hard to start of my project, thats when my friend refered me to this site.. My project is basically a kind of search engine.. I have collected all the software required for this.. NOW MY PROBLEM IS IN … | |
i want to print string(given as input) as number(o/p) and i did it in c using switch case .i want to do the same in python... wat if python provides switch case??n do we have equivalent of it in python?? Examle: input:three hundred and fifty(string) output:350(number) | |
I use the following commands to save data in my database MydatabaseBindingSource.EndEdit() MydatabaseTableAdapter.Update(DBDataSet.mydatabase) When I enter data in debugging mode, and close the application, it wont keep the data, But, if I publish my application it will keep the data, is this normal? My plan is to save the data … | |
Hello, I am trying to design an application that creates an array of 10 circles, each circle having random left top and radius values. Then i want to print out the values of each of the 10 circles in the array in a table format. I have 3 classes, Circle … | |
Can we use ASP.NET website inside the Silverlight application? | |
|
The End.