199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rugae

One function is pass by pointer which stores the reference, the other is just pass by a reference... are theses methods equvilent or does one method require more memory than the other? [code=c++]#include <iostream> using namespace std; void cubeByRef(int *num); void cubeByRef2(int &num); int main(){ int a = 2; cubeByRef(&a); …

Member Avatar for Ancient Dragon
0
125
Member Avatar for Ravenous Wolf

Hi. I need some help with arraylists. i can do a basic arraylist which uses integers and strings and so on. but what i need is an arraylist composed of something else. best would be an arraylist composed of arraylists. like a multi dimensional array. is it possible to create …

Member Avatar for tostrinj
0
149
Member Avatar for anga08628

Define a structure called Class with the following data: title (class title), units (number of units) and grade (letter grade received for the class). Define a structure called Student with the following data: name (for student name - can include spaces), gpa, and classes which is an array of Class …

Member Avatar for prushik
0
115
Member Avatar for MSC

Hello, I'm rather new to C# though I have extensive experience with C++. I need help displaying a couple XML documents that I've created on an ASP page. My intent is to display a table showing the contents of the XML document in table form initially. After that I want …

Member Avatar for tostrinj
0
109
Member Avatar for prushik

So far i have gotten GetPixel() to do pretty much exactly what I want it to do inside of the client window. But, is there any way I can get the color of pixels outside the client window? Heres my current code: [CODE=C++] HDC hDC; PAINTSTRUCT ps; hDC = BeginPaint(hWnd, …

Member Avatar for prushik
0
122
Member Avatar for GRaymer

I've been able to call a cmd process to run a batch file. It runs but I have no idea what it does bec' the window opens and closes too fast. I've used .WaitForExit(), but it doesn't help. I've been looking for more help and can find anything specific. I …

Member Avatar for tostrinj
0
321
Member Avatar for Triggerhappy41

The attached image shows my problem. When I create a GUI in netbeans, the preview of the GUI does not match the actual GUI shown when running in two ways. One (in a minor sense) is that it does not have the windows xp "look" for its buttons, borders and …

Member Avatar for peter_budo
0
151
Member Avatar for cl3m0ns

I have this program it allows the users to enter a name and a score it saves all the names to one array and all the scores to another. The program then displays all the names and scores in a list. I want to have the code for displaying the …

Member Avatar for WaltP
0
162
Member Avatar for Barefootsanders

Hey everyone, I was hoping you could help me out in choosing or not choosing java for an upcoming project I would like to do. I would like to have my media library streaming from my home computer. So basically you would input a directory and it would gather all …

Member Avatar for nschessnerd
0
84
Member Avatar for warpstar

Heres the problem, Ill try my best to explain this: If your given a 5x5 array whicih looks like: 1 1 1 1 1 0 1 1 1 1 0 0 1 1 1 0 0 0 0 1 0 0 0 0 0 Basically in each column below any …

Member Avatar for warpstar
0
90
Member Avatar for Ninad

[B]Is there any client side java-script to read local path like "c:\my documents\xyz.jpg" and then display image on web page I have an xml file which contains local file path and i want to display the thumbnail of all those files on my web page ... [/B] [I]This thing cant …

Member Avatar for MattEvans
0
1K
Member Avatar for cl3m0ns

I have a program that takes two arrays. One is a persons name. the other is their test score and displays it. I have an if statement nested in the for loop used to fill the array that allows you to enter stop as a name and it will put …

Member Avatar for cl3m0ns
0
126
Member Avatar for DemonSpeeding

This is my first time writing a bash script in Linux, basically I want to create a user but not use adduser or useradd. So, in the /etc/passwd folder I need to put data in, in this way. login:encrypted passwd:UID:GID:gecos:home directory:login shell I'm going to leave the gecos blank. Then …

0
122
Member Avatar for cl3m0ns

I am trying to write a program with two separate arrays in it. In the first array I will store all my Dads clients names. In the second array I will store all their address. If I wanted to do this how would I go about storing the arrays so …

Member Avatar for twomers
0
146
Member Avatar for vijay_choudhari

I am getting coredump on linux (Red Hat 3.4.6-8). I am using gcc (GCC) 3.4.6 20060404 compiler. The problem is I have used a static map inside a function (making the map local to the function). This function is in libStreet.so Now at run time another host application is loading …

Member Avatar for iamthwee
0
140
Member Avatar for drsmith

Having a strange problem with some PHP code. This code: [code] $filename = "/u2/text/TOPAShiftlog".$dateString."_AShift.rtf"; [/code] writes the file TOPAShiftlog2007-10-26_AShift.rtf to the /u2/text dir. I want it to write 2007-10-26_AShift.rtf to the /u2/text/TOPAShiftlog dir so I tried this: [code] $filename = "/u2/text/TOPAShiftlog/".$dateString."_AShift.rtf"; [/code] This code ends up removing my "submit" button …

Member Avatar for drsmith
0
284
Member Avatar for SerapH

I already have web pages written in HTML that give out Help info about various functions of the application. How do I get them to pop up when the user clicks a button on the VB.NET form ? Private Sub btnHelp_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnHElp.Click …

Member Avatar for SerapH
0
203
Member Avatar for tlgkumar

hi all, i have some requirements to scrollpane, i am attached my requirements, please give some idea to do my requirements thankyou ganesh

Member Avatar for Ezzaral
0
48
Member Avatar for Yasin786

hi ol my name is yasin and am currently working on this application that is an assignment for my diploma. i am creating the application in vbnet 2003 One of the tasks in the assignment is to capture and save the image on the form. I got this piece of …

Member Avatar for waynespangler
0
367
Member Avatar for balagangadharm

Hi can any help me how get page linksI mean if there are 10 pages contents. I would like to show certain amount of content in each page. At the bottom we do display 1 of 10 pages 1 2 3..<last>. how to write this code in java or javascript …

Member Avatar for Ezzaral
0
93
Member Avatar for disc

Hi all, This is my problem: [code] void StartRun( void ) { std::auto_ptr<Validate> val ( new Validate( "input.txt" ) ); val->DoIt( ); } // Destructor Validate::~WValidate( ) { if( mFileIn.is_open()) { mFileIn.close(); } if( mFileOut.is_open() ) { mFileOut.flush(); mFileOut.close(); } } [/code] The function DoIt() makes use of a DLL. …

Member Avatar for WaltP
0
88
Member Avatar for cms271828

Hi, I'm looking to update a MySql database from an applet. The 2 roots I was thinking were: Applet->php->database Applet->servlet->database But my webhost doesn't allow servlets/jsp, so I would like to try the php route. I've looked on the internet, but I can't find anything concrete to use, just lots …

Member Avatar for Ezzaral
0
137
Member Avatar for Annex

I don't understand cause of error [code] program Project2; {$APPTYPE CONSOLE} uses SysUtils; function Rus(mes: string):string; var i: integer; // number of processed character begin for i:=1 to length(mes) do case mes[i] of 'A'-'n' mes[i]:= Chr(Ord(mes[i]) - 64); 'р'..'я'// after first mes occur the Error(27): Operator not applicable to this …

Member Avatar for Annex
0
71
Member Avatar for pawan_1983

sir, i have appli.jar,mysql_connecter.jar, and two dll file,and i am using jdk1.5 how can i create .exe file for client. i want to create same enviorment on client machine. plz help

Member Avatar for Ezzaral
0
144
Member Avatar for clski1973

I am to use one loop to accumulate numbers (and later get average of) and to be a sentinal control (when the user wants to quit). I think it makes better sense to use 2 loops (nested) but the instructor has insisted on one loop. Could anyone give me a …

Member Avatar for WaltP
0
145
Member Avatar for BigDAlcala

So I used to know a bit of VB6 during the one year of college I took. I was unable to make it to class for all the database lectures (all the good stuff), though. I now have a copy of VB.net and a new registration on this forum I …

Member Avatar for waynespangler
0
208
Member Avatar for Sunny28525

Hi this is sunny, i have a form with 5 text boxes and 5 labels. now i want to zoom in and zoom out the form. actually i have no idea. please tell me the solutions.

Member Avatar for waynespangler
0
80
Member Avatar for JaedenRuiner

Is there a generic (built in either to windows or VB.Net) Find and Replace dialog, like the simplistic one that's in Notepad, or do I have to design and write the Form from scratch? Thanks Jaeden "Sifo Dyas" al'Raec Ruiner

Member Avatar for waynespangler
0
77
Member Avatar for tropical08

i got a little question hope you guys can help out i wanna copy a char array[8] to a 2D array , strcpy doesn't let me do it. how should i go about [INLINECODE] char letter[8]="abcdefg"; char temp[10][2]; for(int i=0;i<10;i++) strcpy(temp[i],letter[i]) [/INLINECODE] how do i get extract all the letters …

Member Avatar for tropical08
0
86
Member Avatar for desiguru

First of all this is a crazy thing I have just done.. so please sit back and read the whole post.............. Today I finished my math final and decided to learn a new programming language..... MYSQL. So I was able make my way to [url]http://www.freewebmasterhelp.com/tutorials/phpmysql[/url] using Google I followed most …

Member Avatar for SheSaidImaPregy
0
2K
Member Avatar for santhiks

i am new to c++ graphics.can anyone suggest a book name to study graphics for a beginner

Member Avatar for Xavier2k
0
79
Member Avatar for GLT

Hi guys! I've never used SQL Server before and I don't want to fall at the first hurdle. SQL Server is installed and connected to the server but how do I go about actually creating the database? I am developing a web based database using dreamweaver and asp.net. Do I …

Member Avatar for GLT
0
91
Member Avatar for kalaiselvi.v

I have created connection through URL. Now i want to validate user and password in the URl page.

Member Avatar for jwenting
0
79
Member Avatar for Zonr_0

Hi! Haven't posted on danniweb for awhile, but I'm hoping I can get some help. I am in the middle of learning Java, which will be my second language after python, and I have come across a problem, ordering a list of integers in an array. In python, there's a …

Member Avatar for jwenting
0
195
Member Avatar for rickshaw

I'm unsure if this is exclusively a unix/linux scripting forum but I need help writing a windows script (I'm more of a perl/unix scripter). I need to be able to periodically clean out the user profiles on a presentation PC in a conference room. Therefore I need a script which …

Member Avatar for Duoas
0
101
Member Avatar for warpstar

Can someone please explain to me how dynamic memory allocation actually works? For example whast going on in the piece of code written below? If you can respond asap, that would be great. Thanks in advance. [code]p = (float *) malloc ( n * sizeof( float ));[/code] And whats the …

Member Avatar for Salem
0
221
Member Avatar for atrusmre

Ok this may be a stupid questions. Is there a way to make a dynamic form? For example, if I wanted to create a form that took a users birthday, how do I make it so it would change the number of days in the month to correspond to the …

Member Avatar for hollystyles
0
88
Member Avatar for jaepi

Hello there, do you have any idea what is the corresponding function of this Win32 api (GetDiskFreeSpace) in standard library? Thanks. :)

Member Avatar for jaepi
0
236
Member Avatar for jordan1985

Anyone here can help me code a bubble sort algorithm code in C++ programming? I need to separate it in different file, which include the "h" file and the "cpp" file. The sorting display must be have 7 screen which the sorting is sort in step and show in step. …

Member Avatar for ndeniche
0
95
Member Avatar for pearly

morning everyone. i hope someone out there could really help me. im trying to store large numbers. as i need to complete my work under Dev-c++ environment but im not familiar with it as i just started using it recently. the following is my initial coding for my work. [code=cplusplus] …

Member Avatar for pearly
0
1K
Member Avatar for bcm

I have created child nodes in app.config.xml file: <applicationSettings> <XML.My.MySettings> <setting name="Astrology" serializeAs="String"> <value></value> </setting> <setting name="Cricket" serializeAs="String"> <value></value> </setting> <setting name="ForiegnCurrency" serializeAs="String"> <value></value> </setting> <setting name="Jobs" serializeAs="String"> <value></value> </setting> </XML.My.MySettings> </applicationSettings> I want to insert values in this child nodes Astrology=6:00 Cricket=7:00 ForeignCurrency=8:00 Jobs=9:00 How to read and insert …

Member Avatar for ptaylor965
0
106
Member Avatar for Novice181249

I have a form that has several radio groups that is used as a multiple choice test for users. Currently the form data is submitted to the educator via email. The poster receives and auto-reply email confirming the test was received. I would like to include the results of the …

Member Avatar for MidiMagic
0
120
Member Avatar for stokes323

I'm trying to write a program for a homework assignment and basically have no idea what to do now... if anyone could help me by pointing me in the right direction it would really help.... Write a C++ program that includes a function called "find_a()". This function will take a …

Member Avatar for Ancient Dragon
0
88
Member Avatar for lakshya

I want to display the search results of any search engine on my webpage... my webpage wud hav a textbox n with the user entering something in my webpage's textbox.. i want to have search results of google ..actually m workin on search engine optimisation ..so i will use dese …

Member Avatar for kreitje
0
111
Member Avatar for SheSaidImaPregy

Can someone please help me figure out what I am doing wrong here? It is supposed to find the checkboxes per dataitem and see if that specific dataitem needs to be deleted. And if it does, to delete them all after adding it to one SQL statement. Please look below …

Member Avatar for SheSaidImaPregy
0
110
Member Avatar for Duki

Hey guys, I'm supposed to write a program that will calculate the Nth fibonacci number, without using recursion. I have the recursion problem written already, but am having a hard time doing the iterative one. here's my recursion function: [code]int fib ( int n ) { if ( n <= …

Member Avatar for Duki
0
759
Member Avatar for warpstar

Each of the following program segments might have syntax, logic or other kinds of errors. If there are errors, correct, otherwise answer "no error". Assume all function headers are correct. Function copy_array receives an integer array a and its size length, as parameters. It copies the array a into another …

Member Avatar for Ptolemy
0
165
Member Avatar for jonbuckets

Need to figure out what is going wrong with my source code. When I imput the values of 72, 69, and 2.8 respectively I should output pdf=0.85801, however I am not getting that value. I don't know why. I am doing the adaptive simpsons method to find the probability density …

Member Avatar for jonbuckets
0
96
Member Avatar for Panarchy

Hello! I was wondering if anyone has a forum backend, in java? I know a bit of python myself, but I want the backend (working backend for a forum) I am going to make the frontend myself (in html, not php, has to be html) Please provide it! Thanks in …

Member Avatar for Panarchy
0
157
Member Avatar for leroytrolley

Hi I've been trying to get a email form which allows my users to send photos as an attachemt via a "upload" button. I've got it working i.e. the form is sending me the data plus the photos, but I'm still getting this error when "submit" is pressed. [B]Notice: Undefined …

Member Avatar for fatihpiristine
0
286

The End.