64,152 Solved Topics
Remove Filter ![]() | |
I am currently having problems updating a public data member that is a vector of pointers. I have a class called node, that has a public data member called list. list is [icode]std::vector< node<T>*>[/icode] and should contain pointers to other [icode]node<T>[/icode] objects. I am trying to overload the assignment operator, … | |
i need a third way to do it at compile time without command line but using visual studio editor. at : [url]http://www.csharphelp.com/archives/archive36.html[/url] two ways are as follows: 1.Define in your C# program 2.Define them at command line on compile time Here is example for first way: Example: [CODE]#define TEST using … | |
anyone here who can help me on this? I need to create a program that can output the location of 5 inputted values. sample input/output; enter 5 values: 4 5 9 8 3 enter no to search: 8 8 found in location 4 HOPE YOU GET IT> pls give me … | |
I have some more basic questions about using overloaded operators. This is just a hypothetical question. Say I have 2 overloaded operators functions defined for a class. The overloaded operator= function and the overloaded+ function. Now I want to create the overloaded operator+=. Can I define that function in terms … | |
hi guys wondering if you can help i have thrown together a rough and ready project using winsock, now it is just thrown together to see if i could get it to work the problem is (well it does work first of all) when i receive data it is in … | |
the program im trying to make will select a random movie from a list of movies and tell the user which 1 he should watch. first the program will ask how many movies there are. it will then ask for the titles of each movie and then it will output … | |
[B]Need Help To Make First Letter Of All Words In A Textbox To Uppercase[/B] so, i have this code to convert first letter of word to uppercase: [CODE]Private Sub txtFields_Change(Index As Integer) txtFields(Index).Text = UCase$(Left(txtFields(Index).Text, 1)) & LCase$(Mid$(txtFields(Index).Text, 2)) txtFields(Index).SelStart = Len(txtFields(Index).Text) End Sub[/CODE] but, this was before i realize … | |
Hello there! So I have created a project for school. I have this program running without errors. The problem is it doesn't perform the math. Any ideas or suggestions? Here is the output when ran...and the code as well. Please choose your operator : + (addition) - (subtraction) * (multiplication) … | |
help needed to solve this series E(x)=1-x^2/2!+x^3/3!-x^4/4!+x^5/5!+.................... | |
I am facing a problem when i tried to run the python code. The error is " Name error:global name 'receive' is not defined". May I know how can I solve the problem? I am using this code in my mobile phone to communicate with microcontroller to control ON/OFF ports … | |
I found a demo version of a jQuery accordion menu that I liked. I want to implement it on my soon to be published home page, What it does not do is that it pushes and pulls the content below it, as down as the accordion expands and contracts. I … | |
Hello everyone, I need help. I have two table name: Table 1: resortid resortlocation Table 2 resortid resortname Now I want to get the maximum of resortlocation then getting the name of that specific resort also. I am having a hard time. Can someone please help me? Thanks. | |
Hi I had a database and a column called "details" in it. I need to select data from that column and show only limited characters of it. For eg: Original : The quick lazy fox jumps over a lazy dog. Display : The quick lazy ... How can I do … | |
Right now Im still beggining to learn the idea of pointers,basically I just want to ask a question about the code I have found, I mean I want to know what is happening right here...the comments on the code serve as my question just look at below... [CODE=cplusplus] #include<iostream.h> struct … | |
Hello dear forum friends. I know that this subject has been dealt with before. I read the threads about this issue in this forum however I still couldn't make it work. So I'm bringing this up again and hopefully you'll find it in your hearts to forgive and help me. … | |
![]() | Greetings, I have reached a point where I need some help. I have a tivo at home, and I'm trying to script something that will allow me to 1.) pull the XML off of the tivo, and save the file, 2.) Take the text in the XML, and pull out … ![]() |
Hey! I'm pretty new to programming, and since I'm a little too young to join any sort of course, decided to self-teach myself, and decided to start off OO programming through Java, seeing as I'll be picking up Computer Science next year as a subject, and it has quite some … | |
Accorting to MySql manual and web site I modified the environment variable for installing JConnector for mysql as follows : CLASSPATH C:\Program Files\Java\mysql-connector-java-5.0.7\mysql-connector-java-5.0.7-bin.jar where my MySql connector Folder is placed on Java folder in program files (I put there willingly) But actually when I want to do any testing program … | |
hi, i have a table with customer information(name, date of birth etc) i have created a windows form in c# and binded it with the database. the thing i want is retrieve the DOB from database and calculate the customers current age n display in a label in the form;; … | |
Hi, I am goint to create a very large array but have this error when running this code [code] #include <iostream> #include <limits.h> #include <cstddef> #include <cmath> using namespace std; int main() { cout << UINT_MAX << " " << ULLONG_MAX << endl; cout << pow(pow(24,2),4) << endl; unsigned long … | |
do you know how it is useful to use dataset.begininit method? Thanks | |
I've seen a few questions about this floating around here (mostly from me :) ) but I finally got this is into a nice working form - maybe it will be useful for someone. It is called like this: [code] void TestParallelSort() { vector<double> Numbers; Numbers.push_back(3.4); Numbers.push_back(4.5); Numbers.push_back(1.2); vector<string> Names; … | |
I need to keep track of odd and even number which will be accepted from the user 10 time after the user entering them I have to print something like odd number = "The number of odd numbers from what she/he is inputed" and even numbers = "The number of … | |
Hi, i`ve made a simpel media player that can open and play mp3 tracks. And now i wanna try to make it open/create and save playlist. any hints on how to start?? Apreciate your time! =) the code for the player is here [url]http://www.daniweb.com/forums/thread177216.html[/url] | |
Hi, There is a problem with session ID haunting me for a couple of days. In Mozilla Firefox, the session ID changes every time the page is refreshed. But in IE it does not change and is working correctly. Is this because of some browser settings? Since I am checking … | |
I'm new to C++ and I'm having a hard time with classes the question is [COLOR="green"]int main(void) [COLOR="Green"]{ Point ary[5] = { Point(1, 2), Point(3, 4), Point(5, 6) }; Point sum; sum.SetXY(sum.GetSumX(ary, 5), sum.GetSumY(ary, 5)); sum.Print(); return 0; }[/COLOR][/COLOR] for this main function how do I make a Point class … | |
i have been getting this error, <identifier> expected System.out.println("Enter the name of the lab this computer is located: \t"); room = scan.nextLine(); while (room.length() == 0) { System.out.println("Error: This field cannot be empty"); System.out.println("Enter the name of the lab this computer is located: \t"); } room = scan.nextLine(); } System.out.println("Enter … | |
Hello Experts, I need to use JOptionPane a lot in my Java exercises. Instead clustering each Java files with this JOptionPane syntax plus the parameters, I've decided to use sort of class called showFrame which has the method to show message dialog and input dialog. At the moment, im putting … | |
hi i need some help. i have to do a linked list using XOR and i don't know how to do it. thanks | |
HI I installed Visual Studio 2008,but I only installed C#.I want to create new database connection,so what I did is in Database connection->Add connection->select Data source But MS Sql server compact 3.5 and MS sql server database File are avaliable in here I cant find the sql native client,only MS … | |
Greetings from Greece. We got a Hangman assignment for my Class at Java. I m just a begginer.And the whole input/output thing is done either by console (system.out.println) or with JOptionPane. So here is my code [code] import javax.swing.JOptionPane; import java.util.*; public class Hangman { public static void main (String … | |
My program is getting hung up somewhere in the function [ICODE]evolveRealization[/ICODE] and while it is stuck its memory usage is increasing by around 1MB per second! While it is building up generations, it was designed to only use the most recent one, and the old ones should be freed. So … | |
I am working on finished up a program using stacks. I am getting some funky errors when I attempt to rebuild&compile, so I am certain something in the code is not right. [B]Program Objective[/B]: Just to brief, I am using main and a .h file with classes. I am supposed … | |
Hi everyone, i am very very new to c++... i have just finished a c++ in 21 days course but still rather in awe of the expanse of how it works. I was wondering if anyone on here had any spare time to help me get used to using the … | |
I am trying to use the rand function to generate numbers from an array containing 3 ranges. This is unfortunately not working. I know I am doing something wrong, either with rand() or with my array declaration. Can someone please correct me: [CODE=perl] my @numbers = [48..57, 97..112, 65..90]; $num … | |
Here's the problem: One of my scripts allows users to upload MS-Excel files. When uploading the file, users are also required to enter details related to the file - details like start date, stop date, a description of what the file contains, and the file ID#. This Excel file contains … | |
Hello all - I need homework help. This part of the assignment is to create a struct, called StudentRecord, the first attribute of which needs to be size 20. My implementation of this is at (1). After instantiating a StudentRecord named MyStudent, I'm to assign some value to it. I … | |
Hi, [code] A= [1,3,5] B=[12,24,36,48,60,72] [/code] Here list A is a list of the elements in list B i want to remove. How can I do this so that I would get list B to then look like: [code] B=[12,36,60] [/code] Thanks in advance, Zach | |
Hi all. Is there any way to extend maximum timer count value above 0x7fffffff i.e. 24.8 days? [code] #include<windows.h> #include<stdio.h> VOID CALLBACK TimerProc( HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime ); void main() { UINT time MSG msg; ::SetTimer(NULL,0,time,TimerProc); GetMessage(&msg,NULL,0,0); } VOID CALLBACK TimerProc( HWND hwnd, UINT uMsg, UINT_PTR … | |
Hi everybody, I have the following URL to grab: [url]http://www.mysite.com/profile.php5?id=43534&mode=photo&pic_id=3453432#pic[/url] I need the 2 ids. But it doesn't seem to work. [CODE=JSP] var url = "http://www.mysite.com/profile.php5?id=43534&mode=photo&pic_id=3453432#pic"; var exp = new RegExp("^http:\/\/w?w?w?\.?mysite\.com\/profile\.php.?\?id=(\d+)&mode=photo&pic_id=(\d+).*?$"); if (exp.test(url)) { var found = exp.exec(url); alert("found0: "+found[0]+" found1: "+found[1]); } [/CODE] What am I doing wrong ? … | |
This is the code i m using for updating table,which the user is entering through textbox in vb form Con.Execute "update Details set NAME='" & txtName.Text & "' and DT_OF_BTH='" & txtDOB.Text & "' and DT_OF_JOING='" & txtDOJ.Text & "' and SALARY_ACC='" & txtAccountNo.Text & "' and REMBSMNT_ACC='" & txtRmbr.Text … | |
I have the following C++ code: [code=syntax] void f(int* x) {...} void f(char* x) {...} int main() { ... f(0); ... } [/code] I understand that this has a problem interpreting which function to call. I also think I can get rid of this problem by giving it two different … | |
Hi all! ...jup.. I'm back again.. This time I seem to have troubles with my array, I want it it to do a fairly easy job, but I can't figure out the syntax of how to do this. I have a form with several sorted TextBoxes, named accordingly: tb_dec[1-6] tb_bin[1-6] … | |
The readlines() method for file objects return the lines as a list (or is it a tuple?) however each element contains the \n character which prevents the element from being used in another function. How do I remove the \n character from the elements? I have made some code which … | |
Good Morning Friends, I have a SP that is Supposed to Restore a Database from a Backup. In some Clients this works well but in those particular client its a Problem. The version is SQL 2005. Here is the Code that fails [CODE] set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go … | |
I am creating a project in which I have to show all the columns of database table named LMTS_compatibility in a datagrid. How can I do it in [COLOR="Red"]VB.NET[/COLOR] I am able to connect but cannot enter the values in datagrid and display it. Please Help!!!!!!!!! :icon_cry: | |
Good day! Im so confused of auto incrementing a receipt number format. example i have a starting receipt no. (00000) in a mysql field called or no. when the paymentfrm load, the textbox that contains the receipt no will be added by one so that it will become 00001. I … | |
Hi all, Im learning PHP & SQL very quickly, but still have issues with counting this, and incrementing that.... so if someone could help, you'd be(proverbially) teaching a man(woman in my case..lol) to fish.... Im constructing a form which in part, allows user to input instructions. I would like the … | |
Hello I know I may receive some grief for not inserting code correctly it is my first post... My question is this: I am reading a huge list of values from a file and I need to store these elevations into an array so they can be used to calculate … |
The End.