64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for dennis.wu

c++: Why the member functions of one class can access to private data member of other object? I use vs2008 and g++ compiler. the codes are list below: [CODE=c++] #include <iostream> using namespace std; class Integer { int i; public: Integer(int ii) : i(ii) {} const Integer operator+(const Integer& rv) …

Member Avatar for dennis.wu
0
146
Member Avatar for nikweb

Hi All, am a new web developer in ASP.NET, am developing an application that involves user Interface. In my application am assuming that there is already a database which consists of user profile e.g Username, password, Firstname etc., so I created a database and I manually put in values. the …

Member Avatar for nikweb
0
87
Member Avatar for WallyBags

"return type may not be specified on a constructor" I am getting this error in VS10. Here's my code: (the error appears on the word class) ComplexNumDec.h [CODE][COLOR="Red"]class[/COLOR] ComplexNum{ private: double real; double imag; public: ComplexNum(double x, double y); ~ComplexNum(); ComplexNum operator+(ComplexNum x); ComplexNum operator-(ComplexNum x); ComplexNum operator*(ComplexNum x); }[/CODE] …

Member Avatar for WallyBags
0
2K
Member Avatar for scranton

Hi I created a custom System.Windows.Forms.Panel so I could override the OnPaint event and make it draw a gray border, but the inside of the panel is picking up all kinds of gray lines when the window scrolls or anything moves over top of the panel. Does anyone know how …

Member Avatar for scranton
0
1K
Member Avatar for saj_amo

:'( i want know that i have developed a web site with using sql database backhand in asp.net nw how can i deploy it i mean i want to know process how to register it or host it from where ??

Member Avatar for saj_amo
0
91
Member Avatar for saj_amo

hi guys, in asp.net page i have designed a registration page few textbox are in that page i have set field validators on them but problem is that there are two buttons one is for register and the other is to go back to main page when i am clicking …

Member Avatar for saj_amo
0
162
Member Avatar for Crushyerbones

Does anyone here have any tips on using inb and outb for interacting with hardware on a Linux system? iopl(2) and inb(0x61) don't seem to work very nicely... Infact, inb(0x61) gives me a segfault. PS: My reliance on this forum is starting to become embarrassing :P

Member Avatar for Crushyerbones
0
190
Member Avatar for phpbeginners

Hi all I am new in php, I want to block the user to return on the previous page? suppose I have page1 when he/she goto page2 he/she cannot return to page1 (session of page1 expired) thanks to all.

Member Avatar for phpbeginners
0
136
Member Avatar for ayesha789

Hi, I am showing my output using this. It shows all the records on web page where month is July(07) But I want it show all the records like: there are 29 records found, I also need 3 records per page, How I will do paging for these. please guide …

Member Avatar for ayesha789
0
337
Member Avatar for lifeworks

Hi I have a small app, my first real ajax project, which gives you details for product availability, for each day. The user selects a day (from a calendar) and then a time slot within the day. The app then displays how many slots are available for purchase, on that …

Member Avatar for lifeworks
0
75
Member Avatar for vnanaji

Hi friends I am new to mysql . After Installing mysql-standard-4.1.22-unknown-linux-gnu-x86_64-icc-glibc23 in linux i am getting the error ./mysql_install_db ./mysql_install_db: line 85: my_print_defaults: command not found Could not find help file 'fill_help_tables.sql' in ./support-files or inside .. pl help me how to overcome it Thanks in advance

Member Avatar for vnanaji
0
116
Member Avatar for complete

I have MySQL running such that I can open a client command line and log on and make databases, tables, etc. I wanted to do some AJAX. Doing AJAX with ASP, SQL Server, etc is not advisable since both places where I am hosting my websites do not use the …

Member Avatar for Robert Plant
0
247
Member Avatar for Piya27

Hi All, I want to update a row in existing excel sheet using vb.net where the row identification is according to the textbox text and the first column entry of that row in the excel. I just can't find a starting hint. Any Help?

Member Avatar for kvprajapati
0
100
Member Avatar for kspicer

I'm supposed to write a function that takes an input, and then outputs a set number of digits based on an array. The code I have works for the numbers 1-10, but anything above that messes up because it goes on to a value that doesn't exist in the array. …

Member Avatar for kspicer
0
107
Member Avatar for staticvoyager

My first task in this assignment is to create a datagrid view that can be used to fill in grades for students after each exam.... This is what I've coded so far - no Visual Studio assist used in this - and it works until I go to save the …

Member Avatar for staticvoyager
0
138
Member Avatar for kbarrett

I am extracting information from SQL and writing reports. This [I]should[/I] (I hate that word) be easy... but : All is fine as long as the formatted text fits on one page. However, if the report becomes more involved (more data in SQL) more than one page is required. I'm …

Member Avatar for DdoubleD
0
5K
Member Avatar for akulkarni

i have subject advanced java programming in my syllabus i will be learning socket programming servelets, corba,AMI,java beans etc. I have heard about apachetomcat server.How do i get the required software from net.thanks

Member Avatar for BestJewSinceJC
0
141
Member Avatar for java dummy

I'm trying to get a calculation done in a loop but don't want it to print until after all loop are done. It will print but the calculation isn't done. Please help. import java.util.*; public class FlipCoin { public static void main(String[] args) { String choiceString; final String HEADS = …

Member Avatar for BestJewSinceJC
0
180
Member Avatar for apease11

Hi, I had this working but after a few code revisions it has stopped. I am trying to set a variable; lets say I have [ICODE]$var[/ICODE] and am trying to set it to [ICODE]$_SERVER['REMOTE_ADDR'][/ICODE] with the code: [CODE]$var = $_SERVER['REMOTE_ADDR'];[/CODE] When I do this I receive a fatal error in …

Member Avatar for apease11
0
126
Member Avatar for the great

Hello! I am having a problem in this program.In it a have to calculate the value of π from the infinite series π=4-4/3+4/5-4/7+4/9-4/11+..... by using this formula i have to print a table that shows the approximate value of π after each of the first 1,000 terms of this series. …

Member Avatar for StuXYZ
0
278
Member Avatar for akulkarni

i have a code with me [code] import java.applet.*; import java.awt.*; /*<applet code="DialogTester" width=400 height=400></applet>*/ public class DialogTester extends Applet { public void init() { Container container=this.getParent();//this ;why not create object of the class and call the function while(!(container instanceof Frame)) { container=container.getParent(); } Frame parent=(Frame)container; Dialog myDialog=new Dialog(parent,false); myDialog.setLocation(320,240); …

Member Avatar for VernonDozier
0
116
Member Avatar for ryancfc

Hi all, I am having trouble in finding out how to point to a private member variable. E.g. : [CODE] #include <iostream> using namespace std; class Angry_Dude { private: int health; int attack; } [/CODE] I want to point to the address of health. I know about the homework policy, …

Member Avatar for VernonDozier
0
94
Member Avatar for goody11

Hey, I was working on a program that would ask you a question and you had to put an answer. Well, when I went to compare the answer the user inputs with the right answer, it always comes up wrong and I was wondering if I did these lines of …

Member Avatar for goody11
0
146
Member Avatar for stuckinmud

hi there could anyone please tell me how i would change this html to use php to email without opening microsoft outlook please? this is my html [code=html]<FORM encType=text/plain action=mailto:recipient@mydomain.co.uk> <TABLE border=0 cellSpacing=0 cellPadding=4 width="90%"> <TBODY> <TR> <TD width="30%"> <DIV align=right><B><FONT color=#ffffff face=Candara>Name:</FONT></B> </DIV></TD> <TD width="70%"><INPUT name=name> </TD></TR> <TR> <TD> …

Member Avatar for stuckinmud
0
116
Member Avatar for the great

Hello! I am having a problem with my program.I have to write a program that find all pythagorean triples for side1, side2 and hypotenuse all no longer than 500. I have to use a triple-nested for loop that tries all posibilities. I know that the sum of squares to two …

Member Avatar for Salem
0
885
Member Avatar for manutd4life

hello press save, i got and error and said ExecuteNonQuery: Connection property has not been initialized. Here's the code: [code=vb.net]Private Sub cmdSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSave.Click Dim com As New OleDbCommand com.Connection = con com.CommandText = "insert into Sales values('" & txtSalesId.Text & "','" & …

Member Avatar for manutd4life
0
109
Member Avatar for the great

Hello! I am having a problem with my program.I have to write a program that uses repitition and switch statements to print the song "The Twelve Days of Christmas." One switch statement should be used to print the days (i.e "First","Second" etc). A separate switch statement should be used to …

Member Avatar for the great
0
1K
Member Avatar for f_atencia

Hi peoples. I have a button: [icode]<asp:Button ID="nextView4" runat="server" Text="View Summary" CommandName="NextView" />[/icode] ...a label... [icode]<asp:Label ID="LastNameResult" runat="server" Text="">[/icode] ...and a textbox... [icode]<asp:TextBox ID="TextBoxLastName" runat="server"> </asp:TextBox> [/icode] And basically i need to get the text written in the textbox into the label when the button is pressed. As you can …

Member Avatar for becooler
0
67
Member Avatar for Nogat21

I'm having a bit o a problem with inheritance. The context is this assignment i have in which we have to read from an mp3 file, extacting the informations within it as well as provide other informations not explicitly contained in it (for instance the total audio time of the …

Member Avatar for Nogat21
0
203
Member Avatar for scias23

i'm generating a dynamic form using php. but my problem is how to store each field values into a multidimension array of unknown size. to be clear: 1. i enter the number of entries i wish to submit 2. php will then generate a single form, but with specified number …

Member Avatar for scias23
0
319
Member Avatar for Yee

OKay... I have a newbie question. [code=c++]#include <stdio.h> class Test{ public: Test(int x); }; int Test::Test(int x=0){ } int main(){ Test test(1); printf("%d", test.x); } [/code] My question is how to make the x variable of the constructor public. I have tried to add : [code=c++] public: int x = …

Member Avatar for mrnutty
0
106
Member Avatar for nkarvi

Hi everyone! I have an application in C#, that at some point calls a [code=c#] Microsoft.Office.Interop.Word._Application [/code] Problem is that when that point is reached, it takes ages to load the word app. I thought of creating a thread at the beginning of the program, so that the word app …

Member Avatar for kha0s
0
103
Member Avatar for kaio-ken

[code=c] #include<stdio.h> #include<conio.h> typedef struct { int rno; char name[10]; float marks; }stu; stu stu3; void getf(stu * stutmp); void show(stu * stutmp); void main() { clrscr(); getf(&stu3); show(&stu3); getch(); } void getf(stu *stutmp) { scanf(" %d",&stutmp->rno); printf("%d\n",stutmp->rno); scanf(" %s",stutmp->name); printf("%s\n",stutmp->name); scanf(" %f",&stutmp->marks); printf("%f\n",stutmp->marks); getch(); } void show(stu * stutmp) …

Member Avatar for kaio-ken
0
535
Member Avatar for mansi sharma

I have two textboxes textbox1 & textbox2..I use compare validator,Suppose I enter 12992 in textbox1 & textbox2 text is left blank,& when i click on button, then y the page is postback.Cz page is not postback,untill all the validators are satisfied!!!!!!!!!!!

Member Avatar for kvprajapati
0
93
Member Avatar for cougarclaws

Is there an easier way to understand what this is doing step by step? I get very confused here, and I wonder if any of you fine people have a trick for breaking this down. I really want to get this, and understand the pattern, but what happens in the …

Member Avatar for cougarclaws
0
111
Member Avatar for ashish2234

i am new to swings and i don't properly know where and how to use drawString in swings !! please help!! import java.awt.Graphics; import java.awt.*; import java.awt.Graphics2D; public class Main extends javax.swing.JFrame implements Runnable { String m1="hello"; Thread t =null; boolean flag; /** Creates new form NewJFrame */ public Main() …

Member Avatar for VernonDozier
0
106
Member Avatar for Questions???

Hello, I have a question about array lists, specifically how to pass array lists to a method. Then once in the method how to do simple algorithms. My example is I have three array lists, two of which have static double numbers and the third who's numbers are the end …

Member Avatar for Questions???
0
77
Member Avatar for dzhugashvili

hey, I am writing a password cracker. But I now have been thinking about separating the word generator from the actual encrypt and check function (for the sake of flexibility and convenience). I noticed John the Ripper does some operations like this. I was thinking something like this: [CODE]wordgen --stdout …

Member Avatar for dzhugashvili
0
323
Member Avatar for applefat

I realize that Java doesn't literally allow you to pass functions as arguments. And I've seen threads that address this topic with regular members, but I can't seem to adapt it for static methods. I have two classes that act kind of like two different "datasources" (A and B). They …

Member Avatar for applefat
0
2K
Member Avatar for itsrahulk

Hi Folks !! i have a string like this. [ICODE]"../images/gallery/New-Goa-Park-in/86ffbca77051448489aec640d288153a.jpg"[/ICODE] from this path i want only [ICODE]../images/gallery/New-Goa-Park-in/[/ICODE] how can i do it? Please help Thanks.

Member Avatar for somedude3488
0
108
Member Avatar for malugirl4

I have just completed my java code for the game engine maze I have been working on. We are told to download MARS and from java code it in assembly. I have never learned assembly. So I am completely lost. I so far downloaded MARS and uploaded my java code. …

Member Avatar for wildgoose
0
5K
Member Avatar for llemes4011

Before I say anything else, I do realize that there are numerous threads on this topic, but I haven't been able to fix my problem. Okay. Well, here's my problem. I'm writing a map editor for the game that I'm working on, and the map is oftentimes much larger than …

Member Avatar for llemes4011
0
132
Member Avatar for nunos

Hi I would like to know if there is any way to obtain a float result from a division between two integers other than using "from __future__ import division"? I am not looking for the .0 'trick'. Example 4/5.0 = 0.8. I want to be able to do 4/5 = …

Member Avatar for nunos
0
186
Member Avatar for mansi sharma

I have one custom validator, one textbox & one button..I m checking the length of data entered in textbox. VB CODE [code] <asp:CustomValidator ID="CustomValidator1" runat="server" OnServerValidate="ValidateThis" ErrorMessage="The username must be 8" ControlToValidate="TextBox4"></asp:CustomValidator></td> [/code] [code] <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script …

Member Avatar for mansi sharma
0
268
Member Avatar for Syllabus

Hi! I'am trying to make a program that dispalys a label with a image, but the rest of the program is "invisible", The problem I got is when I set the opacity, it affects the whole frame. This was ofcourse excepted, but I have not yet been able to make …

Member Avatar for vegaseat
0
1K
Member Avatar for giddyupgirl

Hi there I am currently completing a uni assignment using php and I thought it was finished until the lecturer dropped a bombshell and added another requirement. I have a contact us page which was basically just a shell (dead) page, he nows tell us that we have to do …

Member Avatar for giddyupgirl
0
169
Member Avatar for esesili

Hi everyone, I have a problem about inheritance and I can not solve it since Monday. I have two classes [B](Student_Patient and Emp_Patient) [/B]inherited from [B]Patient[/B] class. [B]Patient [/B]class and [B]Doctor [/B]classes are inherited from [B]Person [/B]class. The [B]Doctor[/B] class has a member function[B]double get_fee_of_doc() const;[/B] which returns a double …

Member Avatar for NathanOliver
0
126
Member Avatar for ddanbe

Hi all, I'm trying to implement a C-style union in C#. Found things on the web, but I have a problem. Depending how I initialize the fields in the union I get different results. Can anyone tell me what am I doing wrong here? Here is my code: [CODE=c#]using System; …

Member Avatar for ddanbe
0
103
Member Avatar for adel_elrefaey

#include <time.h> // double RAND_MAX = 4294967296.0; //2147483647; // void aleatorio(); void warmup_random(double); void advance_random(); int flip(double); double randomperc(); double aleatorios_0_1(); long rnd(long, long); double Rseed; /* Random numbers seed */ double oldrand[55]; /* Array of 55 random numbers */ int jrand; /* current random number */ /* Initialize random …

Member Avatar for adel_elrefaey
0
742
Member Avatar for snakay

Hi everyone, I'm having the error msg. "ıbmdadb2" E_FAIL(0X800004005) when I try to delete a row on the dataset. I populate the table in many combination of selections, no problem. But when I try to delete a line, I can do it on gridview but I cannot do it on …

Member Avatar for DdoubleD
0
506

The End.