199,114 Archived Topics
Remove Filter ![]() | |
Here is my code: [CODE]#include <iostream> #include <string> #include <vector> #include <algorithm> #include <fstream> #include <stdlib.h>//(for atoi to work) using namespace std; void usage() { cout << "Usage: <input1> <input2> <output>\n"; cout << "\n see README for more details.\n"; exit(1); } int main(int argc, char *argv[]) { cout << "\nshmoosh … | |
Hey everybody :) I am writing a program in NetBeans to write an invoice... the user has to click a few buttons to add the values and then clicks the "add to order" button and the information is stored in a jTable (this is all working) when the user clicks … | |
Hello..,, I have read about a function used in file handling named as "peek". If anyone knows about this function then plz tell me..... | |
Hey all, I am on the verge of insanity and come to you on hands and knees. There is a long explanation and a short, this is the short: I need to install System.Web and System.Web.Extensions 3.5.0.0 into the GAC on my web server. I downloaded the latest install from … | |
Hello all, I am new to regex and need some help with my current code. Below's the code I am using and results I am seeing. What I want is for it to match just the line where it sees "ID:". Would be great if I can get pointers on … | |
What I have is this: [CODE=Java] public abstract class Ability { public class Action extends Ability{} public class Reaction extends Ability{} public class Support extends Ability{} } [/CODE] I have it like that so I don't have all of the Ability-extended classes in their own .java file (to save room … | |
In my application i have used DataGridView for displaying the data available in my table (SQL database). The form containing the datagridview is accisible from the menu in MDI Form. [COLOR="red"]Problem: [/COLOR]Every time i access the datagridview form, the same data gets appended to the old data in the datagridview … | |
I am trying to update a website after I uploaded the updated source files codes to the ftp site. When I try to access the site I get the following: "Server Error in '/' Application. Runtime Error Description: An application error occurred on the server. The current custom error settings … | |
How a function can modify an AnsiString passed to her (and how i can pass AnsiStrings to functions)? Someone can give an example? Im using borland c++ 5.0 | |
hai dani, pls anyone help me how to add data into filename actually i tried like this: $str|cat >> EmpFile for the above statement im not able to do coz even $str is also considere as command. how to insert the value? | |
Hi! I want to retrieve the password which is entered in the CreateUserWizardStep but it only returns empty string. When I try to retrieve CreateUserWizard.UserName it returns the username but when i try to retrieve CreateUserWizard.Password it returns an empty string. Thanks! | |
what's wrong about this? why when i compile,it come out expected primary-expression? what is that? [code=c] #include<stdio.h> #include<conio.h> main() { float Lab,Mid,Pro,Quiz,Final,Total; printf("\nEnter your mark for Lab:"); scanf("%f",&Lab); printf("\nEnter your mark for Mid Exam:"); scanf("%f",&Mid); printf("\nEnter your mark for Quiz:"); scanf("%f",&Quiz); printf("\nEnter your mark for Project:"); scanf("%f",&Pro); printf("\nEnter your mark … | |
Suppose I have these classes : [CODE=c#] class Square1 ////////// { private int side = 0; //private field public Square1(int side) //constructor { this.side = side; } public int GetArea() //public method { return side * side; } } class Square2 ////////// { private int side = 0; //private field … | |
Hi, the problem is that I don't want the code to insert the [B]script name[/B] in the database. So I added this [CODE] basename($path) != basename($file_path) [/CODE] but don't work and the name of the script is then inserted in the database. What this script do is read all the … | |
hi, i have two listboxes namely list1(contains countries) AND list2(contains places).. the flow is when i select a country in list1, the places will be displayed in list2. how do I add places into a selected country in list1? also how do i display the places in list2? im new … | |
Hi Everyone! I don't think this is a hard question for all of you well versed in javascript and jQuery, but I seem to be having some problems. I am building a forum and I am experienced in PHP, MySQL and even in jQuery now somewhat, but I have run … | |
Hi there, I'm working on an application for a lab project and I'm making it in C#. It's supposed to import results from a text file that is exported from the application we use to run the tests and right now, I've hit a road block. I've gotten the program … | |
Hi All, This is probably a stupid question, and I could have easily written a small function that loops over the values and selects the first match... but I'd prefer to use the built in way - if there is one. Is there a built in function to select a … | |
Hey guys im trying to do a query on our database, the pieces of information i need are in 2 tables within my database. table 1= customers - information i need from this table: customers_id (primary) customers_firstname customers_lastname customers_email_address table 2= orders customers_id orders_id (primary) both tables contain more fields … | |
I am new to regular expressions, but I do not get why this is not working : [CODE] import re inputstr = "HI\n//asgwrg\nasdg" re.sub("\/\/(.*)(\n)", "\n", inputstr) [/CODE] I am trying to substitute everything between "//" and newline with newline. Can someone tell me whats wrong? I am using python 3.1 | |
[COLOR="Red"]I connected a access database by usin codes, But when i add new data the data doesn't display in same time. it need to restart the programme. can I solve this?[/COLOR]:) | |
Okay so when I open a file and I would like to pickle something to the file you are supposed to open the file in 'rb' (read binary) mode to load stuff from it. If you want to dump something the file is supposed to be in 'wb' (write binary) … | |
hi all i got problem on JProgress bar. when i click on button progress doesn't show. it display after completing the progress [code] class A{ //button clic ProgressBar frame = new ProgressBar(); frame.pack(); frame.setVisible(true); frame.iterate( ); class ProgressBar extends JFrame //inner class of A { JLabel l1; JProgressBar current; Thread … | |
Hello Is it possible, to set up a system where if someone goes to google and types "test" and then clicks on my link, it automatically saves the string to my database, so i can see what he/she searched. Iv been looking around for a week, so would apericiate some … | |
Hi In my windows application i have a combobox() and textbox().I want to show a messagebox if cmb1 is 0 and txtbx1 or txtbx2 is empty.The below code doesnt work.It shows the Messagebox even when cmb1== 0 and txt1 is empty if ((cmb1.Text != "0" &&( txtbx1.Text ==""|| txtbx2.Text =="" … | |
hi everyone I hope you can help me with converting some c code into assembly code, i have tried much now, and i still don't get it. i'm new to programming ASM this c code gets two number from the user to draw an ellipse [CODE] #include<stdio.h> #include<graphics.h> #include<math.h> #include<dos.h> … | |
Hi, I've got structure like this class Object //abstract { virtual....=0; }; class Monster : public Object {}; //also abstract class Wumpus : public Monster {}; class Hero : public Monster {}; class Gun : public Object{}; class Cave : public Object { void add(Cave*); void add(Monster*); }; the second … | |
getting the following exception : [CODE] Object reference not set to an instance of an object. [/CODE] | |
How to make window active/inactive? I can't find this window property ( | |
hiiii how can I use 2 different select statement to insert 2 different values in same insert statement ???? | |
I am having difficulty accessing modified data from a dynamic tab control in VB.net. In this case I have a client record with a "one-to-many" relationship to an address table. I have created code that successfully generates and populates the tabs as required. When I attempt to read the individual … | |
Hi experts, I got problem in servlet. I have a web page that has two buttons (submit button and update button) , both buttons call the servlet. my question is how I let my servlet program distinguish the two buttons when one of the two buttons is pressed. the servlet … | |
Hi, I have made an application for rounding off any number to nearest tens,hundreds or thousands.... But for some values my code is giving wrong answer... Like , if i want to solve "25*89" ,in that rounding off 25 to nearest tens , the answer should be 30 (according to … | |
Hey guys, I'm having a small problem with getting a image map to work when I generate it with PHP. I'm using two separate files. The one is used to display the image which has the image map and the other file is the code I use to retrieve the … | |
Hi, I have got a little problem with __setitem__ method. It works fine in single class, but if class member is instance of the same class method __setitem__ doesn't work on class member but on class. Here is an example: Here is a class with __setitem__ method: [code="python"] class MyClass: … | |
Hi, I am new to the java world. I am getting the following error. ClassB.java:62: incompatible types found : int required: order.ClassB return Integer.parseInt(conString); This what I am trying to do.. I have two classes. Class A and Class B. Class A calls a method located in Class B (refer … | |
Hi!!! I am making a window application in which there is a textbox in which we have to enter only numeric values... How can I display a table on the form which has columns - ones,tens,hundred ,thousand,ten thousand,lakh , ten lakh etc. Now whatever number we enter in textbox that … | |
just a small query.. . . i just want to know how to enter fetched data into an array..!!! | |
good eveninh sir/madam, error is :- An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll Additional information: System error. code is : - Dim a, b As Date a = Date.Now.Date b = a.Now.AddDays(-7) Dim dataset2 As New DataSet Dim myconn As SqlConnection = New _ SqlConnection("server=;database=project3;uid=;pwd=") Dim obj_deletecommand As … | |
Image1.ImageUrl= "C:\\Documents and Settings\\Administrator\\Desktop\\4014_thumb.jpg"; This simple code is not working. What may be the problem. Its not displaying anything. If i give the url in the properties of the image button it works but if i assign like above it doesnt. | |
Hello all, I am a new member to this forum. I am learning C programming language here in my local place. I want to know how a while loop is written. I have been given a simple assignment to be done that is "to print even numbers from 1 to … | |
i have to use datetime control in my asp.net application .can any one help me out.send me control | |
Hi all. I'll outline my situation first of all: I work at a university, and we have a problem where students tend to lock their PCs and, being the free-minded youths that they are, just walk away and leave them locked, thus requiring an admin to go and unlock it. … | |
Please consider the below code. 1 #include <QApplication> 2 #include <QLabel> 3 int main(int argc, char *argv[]) 4 { 5 QApplication app(argc, argv); 6 QLabel *label = new QLabel("Hello Qt!"); 7 label->show(); 8 return app.exec(); 9 } Now, I'm abit doubtful about line 5. According to the book(from which I … | |
Hi guys, im trying to develop a library system.. i actually don't know how to implement/create a code on filtering a certain search for a certain book by using keywords.. any code snippets out there? | |
ok what i have users do is upload files to the server, the files gets renamed for conflicting issues, and then they choose a name they want to call the file. After it uploads it sends that info to the database. now i know that they are going to want … | |
I have developed a server/client application. Everythnig is cool but whenever the internet connection is halt or no connection. It show the error message from try/catch and if internet problem is ok and there is connection, program is continue normally but sometimes it is halt.If the error closed this application … | |
Hello friends! I want to know the way I can align my text in a hyper link. I got the way of aligning it horizontally but what I want is that it should be aligned vertically too. Can anyone help me please? Thanks in advance. | |
Hi All, I have a problem with this piece of code: [code] string fileName = Label1.Text.Replace(" ","_") + ".jpg"; string localImageUrl = Server.MapPath(@"Images\" + fileName); [/code] The image does not show. When I ommit @Images\ abn move the images to the root of the project the image does show. any … | |
Hello. I have sadly been trying to solve this since 1pm, (its now 9) Basicaly i have a single instance project when a user right clicks an image it trys to host it. i use this code (yes this really did take me all them hours to get) [code] Private … |
The End.