199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dzhugashvili

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 …

Member Avatar for Ancient Dragon
0
144
Member Avatar for GregStoltz

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 …

Member Avatar for GregStoltz
0
79
Member Avatar for sara khan

Hello..,, I have read about a function used in file handling named as "peek". If anyone knows about this function then plz tell me.....

Member Avatar for VernonDozier
0
217
Member Avatar for Endurance Man

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 …

Member Avatar for Ramesh S
0
66
Member Avatar for devi1977

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 …

Member Avatar for devi1977
0
110
Member Avatar for llemes4011

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 …

Member Avatar for llemes4011
0
115
Member Avatar for Vivek_1986

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 …

Member Avatar for Vivek_1986
0
217
Member Avatar for SHAWTY721

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 …

Member Avatar for Ramesh S
0
315
Member Avatar for mauriciomf

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

Member Avatar for beryllium9
0
564
Member Avatar for karpaklu

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?

Member Avatar for sknake
0
66
Member Avatar for Donish

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!

Member Avatar for Donish
0
124
Member Avatar for des6043

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 …

Member Avatar for des6043
0
158
Member Avatar for ddanbe

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 …

Member Avatar for sknake
0
77
Member Avatar for kako13

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 …

Member Avatar for kako13
0
117
Member Avatar for grazyah

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 …

Member Avatar for grazyah
0
102
Member Avatar for danielpataki

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 …

Member Avatar for hengzhe
0
152
Member Avatar for amgupt01

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 …

Member Avatar for sknake
0
184
Member Avatar for TomRandall

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 …

Member Avatar for TomRandall
0
964
Member Avatar for Andy_nexus

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 …

Member Avatar for cgyrob
0
9K
Member Avatar for blah32

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

Member Avatar for jlm699
0
90
Member Avatar for tdapower

[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]:)

Member Avatar for Vivek_1986
0
158
Member Avatar for smoore

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

Member Avatar for jlm699
0
149
Member Avatar for emint

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 …

Member Avatar for JamesCherrill
0
114
Member Avatar for NoID

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 …

Member Avatar for NoID
0
119
Member Avatar for Dimansu

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

Member Avatar for darkocean
0
87
Member Avatar for kiuhnmgtrdcv

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

Member Avatar for kiuhnmgrtdcv
0
976
Member Avatar for atch

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 …

Member Avatar for atch
0
122
Member Avatar for Arunabh Nag

getting the following exception : [CODE] Object reference not set to an instance of an object. [/CODE]

Member Avatar for samir_ibrahim
0
99
Member Avatar for belkobot
Member Avatar for belkobot
0
64
Member Avatar for q8_dreamy

hiiii how can I use 2 different select statement to insert 2 different values in same insert statement ????

Member Avatar for sknake
0
5K
Member Avatar for mbb1234

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 …

Member Avatar for mbb1234
0
270
Member Avatar for alsoumhi

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 …

Member Avatar for alsoumhi
0
233
Member Avatar for vinnijain

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 …

Member Avatar for vinnijain
0
169
Member Avatar for Cheeki

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 …

0
78
Member Avatar for vl4kn0

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

Member Avatar for vl4kn0
0
170
Member Avatar for beatonl

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 …

Member Avatar for beatonl
0
183
Member Avatar for avirag

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 …

Member Avatar for avirag
0
127
Member Avatar for sam023

just a small query.. . . i just want to know how to enter fetched data into an array..!!!

Member Avatar for kameswari
0
112
Member Avatar for Kartikey

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 …

Member Avatar for sujitkar
0
206
Member Avatar for coollife

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.

Member Avatar for kameswari
0
99
Member Avatar for compiler777

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 …

Member Avatar for lllllIllIlllI
0
77
Member Avatar for naresh_4785

i have to use datetime control in my asp.net application .can any one help me out.send me control

Member Avatar for kameswari
0
116
Member Avatar for auth_user

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

Member Avatar for sknake
0
178
Member Avatar for el33t

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 …

Member Avatar for el33t
0
124
Member Avatar for JerieLsky

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?

Member Avatar for JerieLsky
0
111
Member Avatar for itisnot_me

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 …

Member Avatar for itisnot_me
0
6K
Member Avatar for darkocean

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 …

Member Avatar for DangerDev
0
101
Member Avatar for sarmadirizvi

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.

Member Avatar for kvprajapati
0
73
Member Avatar for fradekie

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 …

Member Avatar for fradekie
0
140
Member Avatar for ident

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 …

Member Avatar for GeekByChoiCe
0
207

The End.