199,114 Archived Topics
Remove Filter ![]() | |
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); … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
hi all, i have some requirements to scrollpane, i am attached my requirements, please give some idea to do my requirements thankyou ganesh | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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. | |
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 | |
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 … | |
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 … | |
i am new to c++ graphics.can anyone suggest a book name to study graphics for a beginner | |
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 … | |
I have created connection through URL. Now i want to validate user and password in the URl page. | |
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 … | |
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 … | |
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 … | |
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 … | |
Hello there, do you have any idea what is the corresponding function of this Win32 api (GetDiskFreeSpace) in standard library? Thanks. :) | |
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. … | |
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] … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 <= … | |
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 … | |
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 … | |
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 … | |
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 … ![]() |
The End.